-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure link-workspace-packages is true in npmrc (#764)
fix #761
- Loading branch information
Showing
7 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
16 changes: 16 additions & 0 deletions
16
packages/monorepo/test/__snapshots__/monorepo.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
packages/type-safe-api/scripts/type-safe-api/common/.pnpmfile.cjs
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,18 @@ | ||
/*! Copyright [Amazon.com](http://amazon.com/), Inc. or its affiliates. All Rights Reserved. | ||
SPDX-License-Identifier: Apache-2.0 */ | ||
|
||
const readPackage = (pkg, context) => { | ||
if (pkg.peerDependencies && pkg.peerDependencies.react) { | ||
// fixes react error "Error: Invalid hook call." | ||
// with multiple copy of react in the node_modules folder | ||
context.log(`[${pkg.name}] Removing react as a peer dependency (https://bit.ly/3jmD8J6).`) | ||
delete pkg.peerDependencies.react; | ||
} | ||
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
3 changes: 3 additions & 0 deletions
3
packages/type-safe-api/test/project/__snapshots__/type-safe-api-project.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...ges/type-safe-api/test/project/__snapshots__/type-safe-websocket-api-project.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.