Skip to content

Commit

Permalink
chore: use yarn workspaces
Browse files Browse the repository at this point in the history
To prepare removing lerna, keep lerna but enable workspaces.
All lerna alternatives (changesets, rush) rely on workspaces.
yarn hoists all dependencies to the root node_modules with a single
yarn.lock.

Install and testing is much faster. The issue with hoisting might cause phantom
dependencies (a package is able to import packages not in their
own `package.json`).
  • Loading branch information
ludofischer committed May 25, 2021
1 parent d593565 commit 70332cb
Show file tree
Hide file tree
Showing 41 changed files with 418 additions and 2,753 deletions.
1 change: 1 addition & 0 deletions lerna.json
@@ -1,5 +1,6 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
"publish": {
"ignoreChanges": ["yarn.lock"]
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -17,6 +17,7 @@
"deploy": "cd site && GIT_USER=anikethsaha yarn deploy",
"publish": "lerna publish"
},
"workspaces": ["./packages/*"],
"engines": {
"node": "^10 || ^12 || >=14"
},
Expand Down
118 changes: 0 additions & 118 deletions packages/css-size/yarn.lock

This file was deleted.

85 changes: 0 additions & 85 deletions packages/cssnano-preset-advanced/yarn.lock

This file was deleted.

82 changes: 0 additions & 82 deletions packages/cssnano-preset-default/yarn.lock

This file was deleted.

27 changes: 0 additions & 27 deletions packages/cssnano-preset-lite/yarn.lock

This file was deleted.

27 changes: 0 additions & 27 deletions packages/cssnano-utils/yarn.lock

This file was deleted.

0 comments on commit 70332cb

Please sign in to comment.