Skip to content

Commit 07f9899

Browse files
authored
chore: move pnpm-related config to pnpm-workspace.yaml (#65)
Move pnpm-related configurations from `.npmrc` to `pnpm-workspace.yaml`. This would resolve the warning during publishing: ``` . prepare: npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm. . prepare: npm warn Unknown env config "strict-peer-dependencies". This will stop working in the next major version of npm. . prepare: npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm. . prepare: npm warn Unknown env config "hoist-workspace-packages". This will stop working in the next major version of npm. . prepare: npm warn Unknown project config "public-hoist-pattern". This will stop working in the next major version of npm. . prepare: npm warn Unknown project config "hoist-workspace-packages". This will stop working in the next major version of npm. . prepare: npm warn Unknown project config "strict-peer-dependencies". This will stop working in the next major version of npm. ``` Also, integrate with https://github.com/pnpm/plugin-better-defaults.
1 parent cbeebc0 commit 07f9899

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

.npmrc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1 @@
1-
# Disable the default public-hoist-pattern(*-eslint-*, *-prettier-*)
2-
public-hoist-pattern=
3-
hoist-workspace-packages=true
4-
strict-peer-dependencies=true
5-
engine-strict=true
61
registry=https://registry.npmjs.org/

pnpm-lock.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
11
packages:
2-
- 'playground'
2+
- playground
3+
4+
configDependencies:
5+
'@pnpm/plugin-better-defaults': 0.1.0+sha512-aWj7Jv9NcNs/OoazrxP6QspLgKRZ2PHj6wPris6ZCEqmXw+Z8zK59KLzl9NBFGRCO4PNA9pwDWLu+8N3NiqUAQ==
6+
7+
engineStrict: true
8+
9+
hoistWorkspacePackages: true
10+
11+
publicHoistPattern: []
12+
13+
strictPeerDependencies: true

0 commit comments

Comments
 (0)