Skip to content

Commit

Permalink
Chore(repo): Build web* packages in serial to the rest
Browse files Browse the repository at this point in the history
  * lerna should determine paralelization based on dependencies or
    devDependencies, but this do not work 🤷
  * we can use `yarn lerna run build --concurrency 1` to disable this
    but it is slow and takes a long time
  * `design-tokens` must be build first so I have splitted up the `web*`
    packages to be build after the rest of the packages
  * problem can be test by simply running `yarn lerna run build
    --scope=@lmc-eu/spirit-design-tokens
--scope=@lmc-eu/spirit-web-react`
  • Loading branch information
literat committed Jan 8, 2024
1 parent e3eee15 commit 6335a67
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
],
"scripts": {
"start": "yarn packages:start",
"build": "yarn packages:build",
"prebuild": "yarn packages:build:libs",
"build": "yarn packages:build:web",
"es:lint": "eslint ./",
"es:lint:fix": "yarn es:lint --fix",
"commit:lint:test": "yarn commitlint --from HEAD~1 --to HEAD --verbose",
Expand All @@ -41,7 +42,8 @@
"packages:start": "lerna run start --parallel",
"packages:test": "lerna run test",
"packages:types": "lerna run types --no-sort",
"packages:build": "lerna run --ignore @lmc-eu/spirit-web-twig-demo build",
"packages:build:libs": "lerna run build --ignore=@lmc-eu/spirit-web*",
"packages:build:web": "lerna run build --scope=@lmc-eu/spirit-web*",
"packages:publish": "lerna publish",
"packages:diff": "lerna diff",
"packages:changed": "lerna changed",
Expand Down

0 comments on commit 6335a67

Please sign in to comment.