Skip to content

Commit 06452c3

Browse files
committed
fix(build): Update contributing.md and fix npm ci
Changes: - Update CONTRIBUTING.md to use npm ci - Add a preinstall task to install all of the sub packages closes aws-powertools#415
1 parent 844633f commit 06452c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"packages/*"
99
],
1010
"scripts": {
11+
"preinstall": "(cd packages/commons && npm ci); (cd packages/logger && npm ci); (cd packages/metrics && npm ci); (cd packages/tracing && npm ci);",
1112
"init-environment": "husky install",
1213
"test": "npm run lerna-test",
1314
"commit": "commit",
@@ -26,8 +27,7 @@
2627
"docs-buildDockerImage": "docker build -t powertool-typescript/docs ./docs/",
2728
"docs-runLocalDocker": "docker run --rm -it -p 8000:8000 -v ${PWD}:/docs powertool-typescript/docs",
2829
"docs-generateApiDoc": "typedoc .",
29-
"docs-runLocalApiDoc": "npx live-server api",
30-
"preinstall": "(cd packages/commons && npm ci); (cd packages/logger && npm ci); (cd packages/metrics && npm ci); (cd packages/tracing && npm ci);"
30+
"docs-runLocalApiDoc": "npx live-server api"
3131
},
3232
"repository": {
3333
"type": "git",

0 commit comments

Comments
 (0)