@cedarjs/codemods 3.0.0-canary.13631 → 3.0.0-canary.13632

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.
Files changed (2) hide show
  1. package/dist/codemods.js +6 -1
  2. package/package.json +5 -4
package/dist/codemods.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { hideBin } from "yargs/helpers";
3
3
  import yargs from "yargs/yargs";
4
+ import { loadEnvFiles } from "@cedarjs/cli-helpers";
4
5
  import * as v2TsconfigForRouteHooks from "./codemods/redwood/v2.3.x/tsconfigForRouteHooks/tsconfigForRouteHooks.yargs.js";
5
6
  import * as v2ConfigureFastify from "./codemods/redwood/v2.x.x/configureFastify/configureFastify.yargs.js";
6
7
  import * as v2UpdateResolverTypes from "./codemods/redwood/v2.x.x/updateResolverTypes/updateResolverTypes.yargs.js";
@@ -23,9 +24,13 @@ import * as v7Gql from "./codemods/redwood/v7.x.x/updateGraphQLConfig/updateGrap
23
24
  import * as v2MoveGeneratorTemplates from "./codemods/v2.3.x/moveGeneratorTemplates/moveGeneratorTemplates.yargs.js";
24
25
  import * as v2PrismaV7Prep from "./codemods/v2.7.x/prismaV7Prep/prismaV7Prep.yargs.js";
25
26
  import * as v3PrismaV7 from "./codemods/v3.x/prismaV7/prismaV7.yargs.js";
27
+ loadEnvFiles();
26
28
  yargs(hideBin(process.argv)).scriptName("").command(v2MoveGeneratorTemplates).command(v2PrismaV7Prep).command(v3PrismaV7).command("redwood", "List or run Redwood codemods", (yargs2) => {
27
29
  return yargs2.command(v2TsconfigForRouteHooks).command(v2ConfigureFastify).command(v2UpdateResolverTypes).command(v4UpdateClerkGetCurrentUser).command(v4UseArmor).command(v5CellQueryResult).command(v5DetectEmptyCells).command(v5RenameValidateWith).command(v5UpdateAuth0ToV2).command(v5UpdateNodeEngineTo18).command(v5UpgradeToReact18).command(v6GlobalThis).command(v6Jsx).command(v6EntryClient).command(v6EnvDot).command(v6Svgs).command(v6DevFatalErrorPage).command(v6ThemeConfig).command(v7Gql).demandCommand().strict();
28
- }).demandCommand().epilog(
30
+ }).demandCommand().option("load-env-files", {
31
+ describe: "Load additional .env files. Values defined in files specified later override earlier ones.",
32
+ array: true
33
+ }).epilog(
29
34
  [
30
35
  "Examples:",
31
36
  " npx @cedarjs/codemods@latest <codemod> Run a Cedar codemod",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/codemods",
3
- "version": "3.0.0-canary.13631+f0d2218c0",
3
+ "version": "3.0.0-canary.13632+62db3925a",
4
4
  "description": "Codemods to ease upgrading a CedarJS Project",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,8 @@
29
29
  "@babel/parser": "7.29.2",
30
30
  "@babel/plugin-transform-typescript": "^7.26.8",
31
31
  "@babel/traverse": "7.29.0",
32
- "@cedarjs/project-config": "3.0.0-canary.13631",
32
+ "@cedarjs/cli-helpers": "3.0.0-canary.13632",
33
+ "@cedarjs/project-config": "3.0.0-canary.13632",
33
34
  "@svgr/core": "8.1.0",
34
35
  "@svgr/plugin-jsx": "8.1.0",
35
36
  "@vscode/ripgrep": "1.17.1",
@@ -47,7 +48,7 @@
47
48
  "yargs": "17.7.2"
48
49
  },
49
50
  "devDependencies": {
50
- "@cedarjs/framework-tools": "3.0.0-canary.13631",
51
+ "@cedarjs/framework-tools": "3.0.0-canary.13632",
51
52
  "@types/babel__core": "7.20.5",
52
53
  "@types/jscodeshift": "17.3.0",
53
54
  "@types/yargs": "17.0.35",
@@ -60,5 +61,5 @@
60
61
  "publishConfig": {
61
62
  "access": "public"
62
63
  },
63
- "gitHead": "f0d2218c0e70170e196a4e71ae36ac17b001eb61"
64
+ "gitHead": "62db3925a52f9323466ee4978742df0434e3ee43"
64
65
  }