-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pnpm in build-tools instead of npm (#12236)
This PR switches the build-tools release group to use pnpm instead of npm to install and manage dependencies. I made fluid-build changes in #12874 to keep it working when some release groups use pnpm and other release groups use npm. With these changes you can run `fluid-build --install` and it will install using pnpm for those release groups that use it, and npm elsewhere. ### Summary of changes - Added some missing devDeps that pnpm's strictness exposed. - Removed unneeded node types in tsconfig. - Update root prettier configs to use import sort plugin. - Updated scripts in release groups' root package.json to remove excess `--`.
- Loading branch information
1 parent
ed6edfb
commit 45302e4
Showing
23 changed files
with
11,899 additions
and
29,646 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Temporary, because otherwise pnpm fails due to peer dependencies not being satisfied | ||
# with our current dependency graph. | ||
strict-peer-dependencies=false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"packages": [ | ||
"packages/**" | ||
], | ||
"version": "0.6.0" | ||
"version": "0.6.0", | ||
"npmClient": "pnpm", | ||
"useWorkspaces": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,14 +31,14 @@ | |
"clean:docs": "rimraf **/_api-extractor-temp docs/api/*/**", | ||
"clean:nyc": "rimraf nyc/**", | ||
"commit": "git-cz", | ||
"format": "lerna run format --no-sort --stream -- -- -- --color", | ||
"postinstall": "npm run postinstall:lerna && npm run build:compile", | ||
"install:root": "npm install --ignore-scripts", | ||
"format": "lerna run format --no-sort --stream", | ||
"preinstall": "npx only-allow pnpm", | ||
"install:root": "pnpm install --ignore-scripts", | ||
"layer-check": "node packages/build-tools/dist/layerCheck/layerCheck.js --root ..", | ||
"layer-check:doc": "node packages/build-tools/dist/layerCheck/layerCheck.js --root .. --md", | ||
"lerna": "lerna", | ||
"lint": "lerna run lint --no-sort --stream -- -- -- --color", | ||
"lint:fix": "lerna run lint:fix --no-sort --stream -- -- -- --color", | ||
"lint": "lerna run lint --no-sort --stream", | ||
"lint:fix": "lerna run lint:fix --no-sort --stream", | ||
"policy-check": "cd .. && npm run policy-check", | ||
"policy-check:asserts": "cd .. && npm run policy-check:asserts", | ||
"policy-check:fix": "cd .. && npm run policy-check:fix", | ||
|
@@ -53,10 +53,10 @@ | |
"test:bail": "npm run test:mocha:bail && npm run test:jest:bail", | ||
"test:copyresults": "copyfiles --exclude \"**/node_modules/**\" \"**/nyc/**\" nyc", | ||
"test:coverage": "c8 npm run test:report", | ||
"test:jest": "assign-test-ports && lerna run test:jest --concurrency 4 --stream --no-bail --no-sort -- -- --color", | ||
"test:jest": "assign-test-ports && lerna run test:jest --concurrency 4 --stream --no-bail --no-sort", | ||
"test:jest:bail": "assign-test-ports && lerna run test:jest --concurrency 4 --stream", | ||
"test:jest:report": "assign-test-ports && lerna run test:jest --concurrency 4 --stream --no-bail --no-sort -- -- --ci --reporters=default --reporters=jest-junit", | ||
"test:mocha": "lerna run test:mocha --stream --no-bail --no-sort -- -- --color", | ||
"test:mocha": "lerna run test:mocha --stream --no-bail --no-sort", | ||
"test:mocha:bail": "lerna run test:mocha --stream", | ||
"test:mocha:report": "lerna run test:mocha --stream --no-bail --no-sort -- -- --reporter xunit --reporter-option output=nyc/mocha-junit-report.xml", | ||
"test:realsvc": "lerna run test:realsvc --stream --no-bail --no-sort", | ||
|
@@ -108,5 +108,6 @@ | |
"rimraf": "^2.6.2", | ||
"run-script-os": "^1.1.6", | ||
"typescript": "~4.5.5" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.