Skip to content

Commit

Permalink
fix: the package manager not being determined correctly (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaripych authored Dec 20, 2023
1 parent eb12ce9 commit 401d3b5
Show file tree
Hide file tree
Showing 5 changed files with 6,323 additions and 8,698 deletions.
6 changes: 6 additions & 0 deletions .changeset/large-crews-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'refactor-bot': patch
---

fix: the package manager not being determined correctly if "packageManager"
field is specified in the package.json
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"description": "Refactor your codebase using ChatGPT, ts-morph and Plan and Execute techniques",
"type": "module",
"scripts": {
"ci:version": "changeset version && pnpm install",
"refactor-bot-bundled": "node ./packages/refactor-bot/dist/bin/refactor-bot.mjs"
},
"dependencies": {},
"devDependencies": {
"@changesets/cli": "2.26.2",
"@jest/globals": "29.7.0",
"@repka-kit/ts": "1.0.5",
"@repka-kit/ts": "1.0.6",
"@types/diff": "^5.0.3",
"@types/js-yaml": "4.0.5",
"@types/lodash-es": "4.17.7",
Expand Down
1 change: 0 additions & 1 deletion packages/refactor-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.2",
"@jest/globals": "29.7.0",
"@repka-kit/ts": "1.0.4",
"@types/diff": "^5.0.3",
"@types/js-yaml": "4.0.5",
"@types/lodash-es": "4.17.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function packageManagerFromPackageJson(packageJson: Record<string, unknown>) {
if (!result) {
return;
}
return result[0] as 'yarn' | 'pnpm' | 'npm';
return result[1] as 'yarn' | 'pnpm' | 'npm';
}

async function packageManagerFromFs(directory: string) {
Expand Down
Loading

0 comments on commit 401d3b5

Please sign in to comment.