@cedarjs/codemods 7.0.0 → 7.0.1-next.305
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/dist/codemods.js +1 -1
- package/package.json +7 -9
- package/dist/lib/ts2js.js +0 -27
package/dist/codemods.js
CHANGED
|
@@ -1,7 +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
|
+
import { loadEnvFiles } from "@cedarjs/cli-helpers/loadEnvFiles";
|
|
5
5
|
import * as v2TsconfigForRouteHooks from "./codemods/redwood/v2.3.x/tsconfigForRouteHooks/tsconfigForRouteHooks.yargs.js";
|
|
6
6
|
import * as v2ConfigureFastify from "./codemods/redwood/v2.x.x/configureFastify/configureFastify.yargs.js";
|
|
7
7
|
import * as v2UpdateResolverTypes from "./codemods/redwood/v2.x.x/updateResolverTypes/updateResolverTypes.yargs.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/codemods",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.1-next.305",
|
|
4
4
|
"description": "Codemods to ease upgrading a CedarJS Project",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,16 +24,14 @@
|
|
|
24
24
|
"test:watch": "vitest watch"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/cli": "7.29.7",
|
|
28
27
|
"@babel/core": "^7.26.10",
|
|
29
28
|
"@babel/parser": "7.29.9",
|
|
30
|
-
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
31
29
|
"@babel/traverse": "7.29.8",
|
|
32
|
-
"@cedarjs/cli-helpers": "7.0.
|
|
33
|
-
"@cedarjs/project-config": "7.0.
|
|
30
|
+
"@cedarjs/cli-helpers": "7.0.1-next.305",
|
|
31
|
+
"@cedarjs/project-config": "7.0.1-next.305",
|
|
34
32
|
"@svgr/core": "8.1.0",
|
|
35
33
|
"@svgr/plugin-jsx": "8.1.0",
|
|
36
|
-
"@whatwg-node/fetch": "0.
|
|
34
|
+
"@whatwg-node/fetch": "0.12.0",
|
|
37
35
|
"cheerio": "1.2.0",
|
|
38
36
|
"deepmerge": "4.3.1",
|
|
39
37
|
"execa": "5.1.1",
|
|
@@ -41,17 +39,17 @@
|
|
|
41
39
|
"graphql": "16.14.2",
|
|
42
40
|
"jscodeshift": "17.4.0",
|
|
43
41
|
"pascalcase": "1.0.0",
|
|
44
|
-
"prettier": "3.9.
|
|
42
|
+
"prettier": "3.9.9",
|
|
45
43
|
"tasuku": "2.3.0",
|
|
46
44
|
"typescript": "5.9.3",
|
|
47
45
|
"yargs": "17.7.3"
|
|
48
46
|
},
|
|
49
47
|
"devDependencies": {
|
|
50
|
-
"@cedarjs/framework-tools": "7.0.
|
|
48
|
+
"@cedarjs/framework-tools": "7.0.1-next.305",
|
|
51
49
|
"@types/babel__core": "7.20.5",
|
|
52
50
|
"@types/jscodeshift": "17.3.0",
|
|
53
51
|
"@types/yargs": "17.0.35",
|
|
54
|
-
"memfs": "4.
|
|
52
|
+
"memfs": "4.79.0",
|
|
55
53
|
"publint": "0.3.24",
|
|
56
54
|
"ts-dedent": "2.3.0",
|
|
57
55
|
"vitest": "4.1.11"
|
package/dist/lib/ts2js.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { transform } from "@babel/core";
|
|
2
|
-
import { getPaths } from "@cedarjs/project-config";
|
|
3
|
-
import prettify from "./prettify.js";
|
|
4
|
-
const ts2js = (file) => {
|
|
5
|
-
const result = transform(file, {
|
|
6
|
-
cwd: getPaths().base,
|
|
7
|
-
configFile: false,
|
|
8
|
-
plugins: [
|
|
9
|
-
[
|
|
10
|
-
"@babel/plugin-transform-typescript",
|
|
11
|
-
{
|
|
12
|
-
isTSX: true,
|
|
13
|
-
allExtensions: true
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
],
|
|
17
|
-
retainLines: true
|
|
18
|
-
});
|
|
19
|
-
if (result?.code) {
|
|
20
|
-
return prettify(result.code);
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
23
|
-
};
|
|
24
|
-
var ts2js_default = ts2js;
|
|
25
|
-
export {
|
|
26
|
-
ts2js_default as default
|
|
27
|
-
};
|