-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: migrating to pnpm workspaces (#1876)
Migrate lerna to pnpm workspaces
- Loading branch information
1 parent
e747d28
commit 20e79fd
Showing
77 changed files
with
14,317 additions
and
118,170 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
function switchToPreact(pkg, dep) { | ||
if (pkg.dependencies[dep]) { | ||
pkg.dependencies[dep] = 'npm:@preact/compat@17.0.2'; | ||
} | ||
} | ||
|
||
function readPackage(pkg) { | ||
if (pkg.dependencies) { | ||
switchToPreact(pkg, 'react'); | ||
switchToPreact(pkg, 'react-dom'); | ||
} | ||
return pkg | ||
} | ||
|
||
module.exports = { | ||
hooks: { | ||
readPackage | ||
} | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.