Skip to content

Commit

Permalink
Swap prepare with prepublishOnly script (#241)
Browse files Browse the repository at this point in the history
* swap prepare with prepublishOnly script

* add yarn as devDep for the root package

* move yarn to deps and not devDeps
  • Loading branch information
Edoardo Gallo authored Aug 13, 2021
1 parent b5d2a72 commit bdbdc63
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 6 deletions.
23 changes: 23 additions & 0 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"jest": "^27.0.6",
"prettier": "^2.3.2",
"typedoc": "^0.21.2",
"typescript": "^4.2.3"
"typescript": "^4.2.3",
"yarn": "^1.22.11"
}
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"start:node": "sw-build --dev --node --watchFormat=cjs",
"build": "tsc --project tsconfig.build.json && sw-build --web && sw-build --node",
"test": "NODE_ENV=test jest",
"prepare": "npm run build"
"prepublishOnly": "npm run build"
},
"dependencies": {
"@reduxjs/toolkit": "^1.6.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"test": "NODE_ENV=test jest",
"example": "(cd examples && npm run dev)",
"docs": "typedoc --options typedoc.js --readme README.md",
"docs:watch": "npm run docs -- --watch"
"docs:watch": "npm run docs -- --watch",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@signalwire/core": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"start": "sw-build --dev --node",
"build": "tsc --project tsconfig.build.json && sw-build --node",
"test": "NODE_ENV=test jest",
"prepare": "npm run build",
"prepublishOnly": "npm run build",
"docs": "typedoc --options typedoc.js --readme README.md",
"docs:watch": "npm run docs -- --watch"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"start": "sw-build --dev --node",
"build": "tsc --project tsconfig.build.json && sw-build --node",
"test": "NODE_ENV=test jest",
"prepare": "npm run build"
"prepublishOnly": "npm run build"
},
"dependencies": {
"@signalwire/core": "3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/webrtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"start": "tsc --watch --project tsconfig.build.json",
"build": "tsc --project tsconfig.build.json && tsc --project tsconfig.cjs.json",
"test": "NODE_ENV=test jest",
"prepare": "npm run build",
"prepublishOnly": "npm run build",
"docs": "typedoc --options typedoc.js --readme README.md",
"docs:watch": "npm run docs -- --watch"
},
Expand Down

0 comments on commit bdbdc63

Please sign in to comment.