Skip to content

Commit

Permalink
Copy loom-common node_modules when building
Browse files Browse the repository at this point in the history
  • Loading branch information
TranquilMarmot committed Jul 28, 2020
1 parent 8500654 commit 947714a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion loom-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.3",
"private": true,
"scripts": {
"build": "rm -rf out && tsc -p ./ && cp package.json ./out",
"build": "rm -rf out && tsc -p ./ && cp package.json ./out && cp -r node_modules ./out/node_modules",
"test": "jest",
"lint": "eslint --config .eslintrc.js --ext js,ts,tsx ."
},
Expand Down
5 changes: 0 additions & 5 deletions loom-extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions loom-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@
"dependencies": {
"loom-common": "file:../loom-common/out",
"rimraf": "^3.0.2",
"sanitize-filename": "^1.6.3",
"typesafe-actions": "^5.1.0"
"sanitize-filename": "^1.6.3"
},
"jest": {
"preset": "ts-jest",
Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
"loom-editor": "file:loom-editor",
"loom-extension": "file:loom-extension",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"typesafe-actions": "^5.1.0"
"react-dom": "^16.13.1"
},
"scripts": {
"install": "lerna exec -- npm install && lerna bootstrap",
"build:common": "lerna run --scope loom-common build",
"build:editor": "lerna run --scope loom-editor build",
"build:extension": "lerna run --scope yarn-spinner-loom build",
"build": "npm run build:common && npm run build:editor && npm run build:extension",
"clean": "lerna clean",
"test:common": "lerna run --scope loom-common test",
"test:extension": "lerna run --scope yarn-spinner-loom test",
"test:editor": "cross-env CI=true lerna run --scope loom-editor test",
Expand Down

0 comments on commit 947714a

Please sign in to comment.