Skip to content

Commit c9ada81

Browse files
committed
feat: support pnpm monorepos
1 parent ad67084 commit c9ada81

7 files changed

+125
-134
lines changed

package-lock.json

+71-125
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,14 @@
5252
"cosmiconfig": "^9.0.0",
5353
"detect-indent": "^6.0.0",
5454
"glob": "^10.4.2",
55+
"js-yaml": "^4.1.0",
5556
"npm-registry-fetch": "^17.1.0",
5657
"ora": "^5.1.0",
5758
"semver": "^7.6.2"
5859
},
5960
"devDependencies": {
60-
"@types/glob": "^8.1.0",
6161
"@types/jest": "^29.5.12",
62+
"@types/js-yaml": "~4.0.9 || ~4.1.0",
6263
"@types/node": "~16.18.102",
6364
"@types/npm-registry-fetch": "^8.0.7",
6465
"@types/semver": "^7.5.8",

src/__tests__/type-syncer.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ function buildSyncer() {
143143
}
144144
}),
145145
writePackageFile: jest.fn(() => Promise.resolve()),
146+
readPnpmWorkspaceFile: jest.fn(
147+
async () =>
148+
({
149+
hasWorkspacesConfig: false,
150+
}) as const,
151+
),
146152
}
147153

148154
const globber: IGlobber = {

0 commit comments

Comments
 (0)