Skip to content

Commit 7533c54

Browse files
committed
feat: add exports-pnpmfile package
1 parent a9e5860 commit 7533c54

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pnpm/registry-mock",
3-
"version": "3.46.0",
3+
"version": "3.47.0",
44
"description": "Mock the npm registry",
55
"main": "dist/index.js",
66
"bin": "dist/bin/pnpm-registry-mock.js",
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@pnpm.e2e/exports-pnpmfile",
3+
"version": "1.0.0"
4+
}
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
hooks: {
3+
readPackage (pkg) {
4+
if (pkg.name === '@pnpm/x') {
5+
if (!pkg.dependencies) {
6+
pkg.dependencies = {}
7+
}
8+
pkg.dependencies['@pnpm/y'] = '1.0.0'
9+
}
10+
return pkg
11+
}
12+
}
13+
}

0 commit comments

Comments
 (0)