Skip to content

Commit 558e853

Browse files
authored
fix(codemods): resolve path resolution issue preventing codemod discovery (#3054)
* fix(codemods): identify correct dist dir * chore: add codemods package to root dev deps * chore(codemods): changeset * fix(codemods): add back console.log
1 parent f9558fa commit 558e853

File tree

5 files changed

+83
-68
lines changed

5 files changed

+83
-68
lines changed

.changeset/public-bats-greet.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@lg-tools/codemods': patch
3+
---
4+
5+
Fix codemods package path resolution issue that prevented discovery of available codemods when built to UMD/ESM output directories.
6+
Codemods can now be properly listed and executed via `pnpm lg codemod --list` and `pnpm lg codemod <name>`.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"@leafygreen-ui/testing-lib": "workspace:^",
4646
"@lg-tools/build": "workspace:^",
4747
"@lg-tools/cli": "workspace:^",
48+
"@lg-tools/codemods": "workspace:^",
4849
"@lg-tools/lint": "workspace:^",
4950
"@lg-tools/meta": "workspace:^",
5051
"@lg-tools/prompt-kit": "workspace:^",

0 commit comments

Comments
 (0)