-
Notifications
You must be signed in to change notification settings - Fork 609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace install-test-workspace with usePnpmSyncForInjectedDependencies=true #4530
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
be4a3bb
feat: enable pnpm-sync
g-chao d508ed1
fix: remove subspace
g-chao 2da685f
fix: rush change
g-chao 36b035e
fix: move to a top level folder
g-chao 33b6c31
fix: remove unnecessary packages
g-chao 1b50c0d
fix: update readme
g-chao 57b1701
fix: update build script
g-chao 9fca352
fix: bring back rimraf
g-chao 30cba5b
fix: remove unnecessary change comment
g-chao 9e1e0c2
fix: use Herf to build the install-test projects
g-chao 1a6ae2c
fix: remove rimraf
g-chao aafc7ba
fix: based on code review
g-chao f95f5c1
fix: use rig.json
g-chao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
...e/typescript-newest-test/config/heft.json → ...s-subspace/rush-lib-test/config/heft.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
// The "rig.json" file directs tools to look for their config files in an external package. | ||
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package | ||
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", | ||
|
||
"rigPackageName": "local-node-rig" | ||
} |
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,42 @@ | ||
{ | ||
"name": "rush-lib-test", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "A minimal example project that imports APIs from @rushstack/rush-lib", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "heft build --clean", | ||
"start": "node lib/start.js", | ||
"_phase:build": "heft run --only build -- --clean" | ||
}, | ||
"dependencies": { | ||
"@microsoft/rush-lib": "workspace:*", | ||
"@rushstack/terminal": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"local-node-rig": "workspace:*", | ||
"@rushstack/eslint-config": "workspace:*", | ||
"@rushstack/heft": "workspace:*", | ||
"@rushstack/heft-lint-plugin": "workspace:*", | ||
"@rushstack/heft-typescript-plugin": "workspace:*", | ||
g-chao marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"@types/node": "18.17.15", | ||
"typescript": "~5.3.3" | ||
}, | ||
"dependenciesMeta": { | ||
"@microsoft/rush-lib": { | ||
"injected": true | ||
}, | ||
"@rushstack/terminal": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft-lint-plugin": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft-typescript-plugin": { | ||
"injected": true | ||
} | ||
} | ||
} |
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
File renamed without changes.
File renamed without changes.
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,25 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json", | ||
|
||
"extends": "local-node-rig/profiles/default/config/heft.json", | ||
|
||
"phasesByName": { | ||
"build": { | ||
"cleanFiles": [{ "includeGlobs": ["lib", "dist"] }], | ||
|
||
"tasksByName": { | ||
"typescript": { | ||
g-chao marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-typescript-plugin" | ||
} | ||
}, | ||
"lint": { | ||
"taskDependencies": ["typescript"], | ||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-lint-plugin" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,7 @@ | ||
{ | ||
// The "rig.json" file directs tools to look for their config files in an external package. | ||
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package | ||
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", | ||
|
||
"rigPackageName": "local-node-rig" | ||
} |
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,42 @@ | ||
{ | ||
"name": "rush-sdk-test", | ||
"version": "0.0.0", | ||
"private": true, | ||
"description": "A minimal example project that imports APIs from @rushstack/rush-sdk", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "heft build --clean", | ||
"start": "node lib/start.js", | ||
"_phase:build": "heft run --only build -- --clean" | ||
}, | ||
"dependencies": { | ||
"@rushstack/rush-sdk": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"local-node-rig": "workspace:*", | ||
"@rushstack/eslint-config": "workspace:*", | ||
"@rushstack/heft": "workspace:*", | ||
"@rushstack/heft-lint-plugin": "workspace:*", | ||
g-chao marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"@rushstack/heft-typescript-plugin": "workspace:*", | ||
"@microsoft/rush-lib": "workspace:*", | ||
"@types/node": "18.17.15", | ||
"typescript": "~5.3.3" | ||
}, | ||
"dependenciesMeta": { | ||
"@microsoft/rush-lib": { | ||
"injected": true | ||
}, | ||
"@rushstack/rush-sdk": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft-lint-plugin": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft-typescript-plugin": { | ||
"injected": true | ||
} | ||
} | ||
} |
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
File renamed without changes.
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,7 @@ | ||
// This is a workaround for https://github.com/eslint/eslint/issues/3458 | ||
require('@rushstack/eslint-config/patch/modern-module-resolution'); | ||
|
||
module.exports = { | ||
extends: ['@rushstack/eslint-config/profile/node'], | ||
parserOptions: { tsconfigRootDir: __dirname } | ||
}; |
25 changes: 25 additions & 0 deletions
25
build-tests-subspace/typescript-newest-test/config/heft.json
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,25 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/heft/v0/heft.schema.json", | ||
|
||
"extends": "local-node-rig/profiles/default/config/heft.json", | ||
|
||
"phasesByName": { | ||
"build": { | ||
"cleanFiles": [{ "includeGlobs": ["lib", "dist"] }], | ||
|
||
"tasksByName": { | ||
"typescript": { | ||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-typescript-plugin" | ||
} | ||
}, | ||
"lint": { | ||
"taskDependencies": ["typescript"], | ||
"taskPlugin": { | ||
"pluginPackage": "@rushstack/heft-lint-plugin" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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,7 @@ | ||
{ | ||
// The "rig.json" file directs tools to look for their config files in an external package. | ||
// Documentation for this system: https://www.npmjs.com/package/@rushstack/rig-package | ||
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json", | ||
|
||
"rigPackageName": "local-node-rig" | ||
} |
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,36 @@ | ||
{ | ||
"name": "typescript-newest-test", | ||
"description": "Building this project tests Heft with the newest supported TypeScript compiler version", | ||
"version": "1.0.0", | ||
"private": true, | ||
"main": "lib/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "heft build --clean", | ||
"_phase:build": "heft run --only build -- --clean" | ||
}, | ||
"devDependencies": { | ||
"local-node-rig": "workspace:*", | ||
"@rushstack/eslint-config": "workspace:*", | ||
"@rushstack/heft": "workspace:*", | ||
"@rushstack/heft-lint-plugin": "workspace:*", | ||
"@rushstack/heft-typescript-plugin": "workspace:*", | ||
"typescript": "~5.3.3", | ||
"tslint": "~5.20.1", | ||
"eslint": "~8.7.0" | ||
}, | ||
"dependenciesMeta": { | ||
"@rushstack/eslint-config": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft-lint-plugin": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft-typescript-plugin": { | ||
"injected": true | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
// This is a workaround for https://github.com/eslint/eslint/issues/3458 | ||
require('@rushstack/eslint-config/patch/modern-module-resolution'); | ||
|
||
module.exports = { | ||
extends: ['@rushstack/eslint-config/profile/node'], | ||
parserOptions: { tsconfigRootDir: __dirname } | ||
}; |
1 change: 0 additions & 1 deletion
1
...space/typescript-v4-test/config/heft.json → ...space/typescript-v4-test/config/heft.json
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
File renamed without changes.
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,35 @@ | ||
{ | ||
"name": "typescript-v4-test", | ||
"description": "Building this project tests Heft with TypeScript v4", | ||
"version": "1.0.0", | ||
"private": true, | ||
"main": "lib/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "heft build --clean", | ||
"_phase:build": "heft run --only build -- --clean" | ||
}, | ||
"devDependencies": { | ||
"@rushstack/eslint-config": "workspace:*", | ||
"@rushstack/heft": "workspace:*", | ||
"@rushstack/heft-lint-plugin": "workspace:*", | ||
"@rushstack/heft-typescript-plugin": "workspace:*", | ||
"typescript": "~4.9.5", | ||
"tslint": "~5.20.1", | ||
"eslint": "~8.7.0" | ||
}, | ||
"dependenciesMeta": { | ||
"@rushstack/eslint-config": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft-lint-plugin": { | ||
"injected": true | ||
}, | ||
"@rushstack/heft-typescript-plugin": { | ||
"injected": true | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be fixed in a separate PR, but this log notice can be improved.
Like the build cache notices, it should only be shown when invoking
rush build --verbose
.Also I would suggest to improve the formatting of the message:
It seems
pnpmSyncCopy()
is printing this message directly to the console. We should improve the API to provide a messaging callback that allows the output to be redirected and (ideally) optionally reformatted. Something like this:This would ensure that Rush (and in the future PNPM) has full ownership of its CLI UX.
@g-chao @iclanton
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiktok/pnpm-sync#14