Upgrade to lerna 5 to speedup build

This commit is contained in:
Hung Viet Nguyen 2022-06-30 18:49:26 +07:00
parent 5aad18547b
commit ed833ec2d7
No known key found for this signature in database
GPG Key ID: 5BCE6E47F46293F2
6 changed files with 1187 additions and 657 deletions

View File

@ -1,9 +1,7 @@
{
"version": "4.2.2",
"packages": [
"packages/*",
"examples/*"
],
"packages": ["packages/*", "examples/*"],
"npmClient": "yarn",
"useWorkspaces": true
"useWorkspaces": true,
"useNx": true
}

18
nx.json Normal file
View File

@ -0,0 +1,18 @@
{
"implicitDependencies": {
"package.json": "*"
},
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build"]
}
}
},
"pluginsConfig": {
"@nrwl/js": {
"analyzeSourceFiles": false
}
}
}

View File

@ -102,11 +102,12 @@
"jest-circus": "26.6.3",
"jest-cli": "26.6.3",
"jest-watch-typeahead": "0.6.5",
"lerna": "4.0.0",
"lerna": "5.1.6",
"lint-staged": "10.5.4",
"lodash": "4.17.21",
"msw": "0.42.3",
"npm-run-all": "4.1.5",
"nx": "14.3.6",
"plop": "2.7.6",
"prettier": "1.19.1",
"qs": "6.11.0",

View File

@ -141,5 +141,14 @@
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
},
"nx": {
"targets": {
"build": {
"outputs": [
"./build"
]
}
}
}
}

View File

@ -90,5 +90,14 @@
"engines": {
"node": ">=14.19.1 <=16.x.x",
"npm": ">=6.0.0"
},
"nx": {
"targets": {
"build": {
"outputs": [
"./build"
]
}
}
}
}

1797
yarn.lock

File diff suppressed because it is too large Load Diff