Skip to content

Commit

Permalink
feat: support pnpm monorepos
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck committed Jul 17, 2024
1 parent 1079f6d commit 2b10f9f
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 134 deletions.
196 changes: 71 additions & 125 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,14 @@
"cosmiconfig": "^9.0.0",
"detect-indent": "^6.0.0",
"glob": "^10.4.2",
"js-yaml": "^4.1.0",
"npm-registry-fetch": "^17.1.0",
"ora": "^5.1.0",
"semver": "^7.6.2"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.12",
"@types/js-yaml": "~4.0.9 || ~4.1.0",
"@types/node": "~16.18.102",
"@types/npm-registry-fetch": "^8.0.7",
"@types/semver": "^7.5.8",
Expand Down
6 changes: 6 additions & 0 deletions src/__tests__/type-syncer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@ function buildSyncer() {
}
}),
writePackageFile: jest.fn(() => Promise.resolve()),
readPnpmWorkspaceFile: jest.fn(
async () =>
({
hasWorkspacesConfig: false,
}) as const,
),
}

const globber: IGlobber = {
Expand Down
Loading

0 comments on commit 2b10f9f

Please sign in to comment.