Skip to content

Commit 3a89437

Browse files
authored
install node modules on up, delete root node modules on clean (#328)
1 parent e3d15c6 commit 3a89437

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

dev.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ up:
77
- node:
88
version: v20.11.1
99
yarn: 1.22.22
10+
- custom:
11+
name: Install NPM dependencies
12+
met?: ls -l | grep node_modules
13+
meet: |
14+
yarn
1015
- custom:
1116
name: Install gems
1217
met?: (cd sample/ios && bundle check)
@@ -49,9 +54,9 @@ commands:
4954
clean:
5055
desc: 'rm -rf all generated directories'
5156
run: |
52-
yarn clean
5357
yarn module clean
5458
yarn sample clean
59+
yarn clean
5560
echo "✅ Cleaned root, module and sample workspaces"
5661
5762
fix:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"modules/**/*"
1616
],
1717
"scripts": {
18-
"clean": "watchman watch-del .",
18+
"clean": "rm -rf node_modules; watchman watch-del . || true",
1919
"sample": "yarn workspace sample",
2020
"module": "yarn workspace @shopify/checkout-sheet-kit",
2121
"pod-install": "(cd sample/ios && bundle install && bundle exec pod repo update && bundle exec pod cache clean --all && bundle exec pod install --repo-update)",

0 commit comments

Comments
 (0)