-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow opting out of required package manager (#8738)
### Description Give users the ability to opt out of the required package manager if they feel strongly. This is still highly discouraged as this prevents proper usage of daemon package watching and leaves us dependent on system configuration to infer the correct package manager. Reviewer notes: Each commit can be reviewed on it's own. The second commit just adds back code deleted in #8017 ### Testing Instructions Added unit tests where applicable for configuration. Quick manual verification of the config options: ``` [0 olszewski@chriss-mbp] /tmp/no-pm $ turbo_dev build WARNING No locally installed `turbo` found. Using version: 2.0.7-canary.0. × missing packageManager field in package.json [1 olszewski@chriss-mbp] /tmp/no-pm $ turbo_dev build --dangerously-disable-package-manager-check --output-logs=none WARNING No locally installed `turbo` found. Using version: 2.0.7-canary.0. • Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web • Running build in 5 packages • Remote caching disabled Tasks: 2 successful, 2 total Cached: 2 cached, 2 total Time: 81ms >>> FULL TURBO [0 olszewski@chriss-mbp] /tmp/no-pm $ TURBO_DANGEROUSLY_DISABLE_PACKAGE_MANAGER_CHECK=true turbo_dev build --output-logs=none WARNING No locally installed `turbo` found. Using version: 2.0.7-canary.0. • Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web • Running build in 5 packages • Remote caching disabled Tasks: 2 successful, 2 total Cached: 2 cached, 2 total Time: 210ms >>> FULL TURBO [0 olszewski@chriss-mbp] /tmp/no-pm $ vim turbo.json [0 olszewski@chriss-mbp] /tmp/no-pm $ tail -3 turbo.json }, "dangerouslyDisablePackageManagerCheck": true } [0 olszewski@chriss-mbp] /tmp/no-pm $ turbo_dev build --output-logs=none WARNING No locally installed `turbo` found. Using version: 2.0.7-canary.0. • Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web • Running build in 5 packages • Remote caching disabled Tasks: 2 successful, 2 total Cached: 2 cached, 2 total Time: 53ms >>> FULL TURBO ```
- Loading branch information
1 parent
be67cfd
commit 6f76520
Showing
16 changed files
with
660 additions
and
137 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
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
Oops, something went wrong.