@cedarjs/codemods 2.5.2-next.0 → 2.5.2-next.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -235,7 +235,7 @@ yarn build
235
235
  The CLI is meant to be run on a Cedar project (i.e. it expects you to be cd'd into a Cedar project), but you can provide it as an environment variable too!
236
236
 
237
237
  ```shell
238
- RWJS_CWD=/path/to/rw-project node "./packages/codemods/dist/codemods.js" {your-codemod-name}
238
+ CEDAR_CWD=/path/to/rw-project node "./packages/codemods/dist/codemods.js" {your-codemod-name}
239
239
  # ☝️ this is the path to your rw project (not the framework!)
240
240
  ```
241
241
 
@@ -54,8 +54,9 @@ const runTransform = async ({
54
54
  options = {}
55
55
  }) => {
56
56
  try {
57
- if (process.env.NODE_ENV === "test" && process.env.RWJS_CWD) {
58
- process.chdir(process.env.RWJS_CWD);
57
+ const cedarCwd = process.env.CEDAR_CWD || process.env.RWJS_CWD;
58
+ if (process.env.NODE_ENV === "test" && cedarCwd) {
59
+ process.chdir(cedarCwd);
59
60
  }
60
61
  await jscodeshift.run(transformPath, targetPaths, {
61
62
  ...defaultJscodeshiftOpts,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/codemods",
3
- "version": "2.5.2-next.0+0a4a79421",
3
+ "version": "2.5.2-next.25+a9fdb4b80",
4
4
  "description": "Codemods to ease upgrading a CedarJS Project",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "@babel/plugin-transform-typescript": "^7.26.8",
31
31
  "@babel/runtime-corejs3": "7.29.0",
32
32
  "@babel/traverse": "7.29.0",
33
- "@cedarjs/project-config": "2.5.2-next.0+0a4a79421",
33
+ "@cedarjs/project-config": "2.5.2-next.25+a9fdb4b80",
34
34
  "@svgr/core": "8.1.0",
35
35
  "@svgr/plugin-jsx": "8.1.0",
36
36
  "@vscode/ripgrep": "1.17.0",
@@ -49,7 +49,7 @@
49
49
  "yargs": "17.7.2"
50
50
  },
51
51
  "devDependencies": {
52
- "@cedarjs/framework-tools": "2.5.2-next.1",
52
+ "@cedarjs/framework-tools": "2.5.2-next.25",
53
53
  "@types/babel__core": "7.20.5",
54
54
  "@types/jscodeshift": "0.12.0",
55
55
  "@types/yargs": "17.0.35",
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "0a4a794219bb74bfe5cadf2fa8d4072999444ec4"
63
+ "gitHead": "a9fdb4b803326e5d49329f3ac990c4af74bf1f50"
64
64
  }