This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
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.
Fully embrace yarn and its workspaces (#978)
Given the `yarn.lock` in the root of this repo, tools like Travis and users are likely to manage dependencies with yarn. However, many of the `scripts` call out to `npm`, resulting in mixing package managers. The version of lerna here at the time was also coupled to npm, and it now supports yarn. This moves nearly all references from npm to yarn in package.json's `scripts`, build scripts, READMEs, travis configuration, and lerna configuration. This enables yarn's workspaces with the `packages/` directory. It also updates lerna to its latest version which supports yarn and configures it to use workspaces. Lerna is now only really needed for its bulk versioning and publishing functionality, so I removed it from the `postinstall` step [(which leaving it in incidentally also causes it to stall indefinitely)](lerna/lerna#1001) This also adds a `.yarnrc` forcing the yarn client to run post-install scripts for dependencies. The `electron` dependency for the standalone devtools relies on this, and while it is the default for yarn, more secure configurations disable it. Test plan: * `yarn lint && yarn typecheck && yarn test` * `yarn build:extension && yarn test:chrome` * I ran the test for the firefox extension as well but doesn't seem to pick up that sites are using react and doesn't activate. This happens on the master branch as well. * `yarn build:standalone && yarn test:standalone` * Let travis run and pass I'm unsure how to test lerna's publishing functionality. Hopefully someone can help with that part :)
- Loading branch information
1 parent
851dd0d
commit 2c028b4
Showing
10 changed files
with
849 additions
and
134 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ignore-scripts false | ||
|
||
# Allow dependencies to be added to the root package.json. | ||
--ignore-workspace-root-check 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
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,7 +1,6 @@ | ||
{ | ||
"lerna": "2.0.0-beta.36", | ||
"packages": [ | ||
"packages/*" | ||
], | ||
"version": "3.0.0" | ||
"lerna": "2.8.0", | ||
"version": "3.0.0", | ||
"npmClient": "yarn", | ||
"useWorkspaces": 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
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.