Skip to content

Commit

Permalink
feat: reduce postinstall time (#1172)
Browse files Browse the repository at this point in the history
## Proposed change

Removing @o3r/workspace build on post install (as the task are now
handled by the linter only)

## Results

Before:

![image](https://github.com/AmadeusITGroup/otter/assets/2467012/03739391-a096-4e33-8188-4eac2015a377)

After:

![image](https://github.com/AmadeusITGroup/otter/assets/2467012/5fc0acad-eca0-4f4b-8036-3f1631367757)
  • Loading branch information
kpanot authored Dec 21, 2023
2 parents b919021 + c6fc724 commit 0ab973f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"build": "yarn nx run-many --target=build --parallel $(yarn get:cpus-number)",
"build:affected": "yarn nx affected --target=build --parallel $(yarn get:cpus-number) --output-style stream",
"build:tools": "yarn nx run-many --target=build --projects=eslint-plugin,workspace --parallel $(yarn get:cpus-number)",
"build:lint": "yarn nx run-many --target=build --projects=eslint-plugin --parallel $(yarn get:cpus-number)",
"build:swagger-gen": "yarn nx run-many --target=build-swagger --parallel $(yarn get:cpus-number)",
"prepare:publish": "prepare-publish $(yarn workspaces:list | shx sed \"s/^(.+)\\$/\\$1\\/dist/\")",
"publish": "yarn run prepare:publish && yarn nx run-many --target=publish --parallel $(yarn get:cpus-number) --nx-bail --access=public",
Expand All @@ -22,7 +23,7 @@
"test": "yarn nx run-many --target=test --parallel $(yarn get:cpus-number) --cacheDirectory=$(yarn get:current-dir)/.cache/jest",
"test:affected": "yarn nx affected --target=test --parallel $(yarn get:cpus-number) --cacheDirectory=$(yarn get:current-dir)/.cache/jest",
"test-int": "yarn nx run-many --target=test-int --parallel 2",
"postinstall": "husky install && yarn build:tools && yarn harmonize:version",
"postinstall": "husky install && yarn build:lint && yarn harmonize:version",
"build:storybook": "yarn doc:generate:json && yarn ng run storybook:extract-style && build-storybook",
"clear": "rimraf -g './{packages,tools,apps}/{@*/,}{amaterasu/,}*/{dist,build,dist-*}/'",
"set:version": "yarn o3r-set-version --placeholder 0.0.0-placeholder --include '{apps,packages}/**/dist/package.json'",
Expand Down Expand Up @@ -247,6 +248,9 @@
"@swc/core": {
"built": true
},
"es5-ext": {
"built": true
},
"esbuild": {
"built": true
},
Expand Down
2 changes: 2 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7590,6 +7590,8 @@ __metadata:
dependenciesMeta:
"@swc/core":
built: true
es5-ext:
built: true
esbuild:
built: true
fsevents:
Expand Down

0 comments on commit 0ab973f

Please sign in to comment.