ember-codemod-v1-to-v2 3.0.3 → 4.1.0

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
@@ -13,7 +13,7 @@ Step 1. Quickly migrate to [v2 format](https://github.com/embroider-build/embroi
13
13
 
14
14
  ```sh
15
15
  cd <path/to/your/project>
16
- npx ember-codemod-v1-to-v2 <arguments>
16
+ pnpx ember-codemod-v1-to-v2 <arguments>
17
17
  ```
18
18
 
19
19
  > [!IMPORTANT]
@@ -58,7 +58,7 @@ In most cases, I recommend running the codemod without any arguments (i.e. allow
58
58
  By default, the package name decides where the addon package lives. Pass `--addon-location` to override the logic. This may be useful if you have a workspace with many addons.
59
59
 
60
60
  ```sh
61
- npx ember-codemod-v1-to-v2 --addon-location packages/ui/button
61
+ pnpx ember-codemod-v1-to-v2 --addon-location packages/ui/button
62
62
  ```
63
63
 
64
64
  </details>
@@ -71,7 +71,7 @@ npx ember-codemod-v1-to-v2 --addon-location packages/ui/button
71
71
  Pass `--root` to run the codemod on a project somewhere else (i.e. not in the current directory).
72
72
 
73
73
  ```sh
74
- npx ember-codemod-v1-to-v2 --root <path/to/your/project>
74
+ pnpx ember-codemod-v1-to-v2 --root <path/to/your/project>
75
75
  ```
76
76
 
77
77
  </details>
@@ -84,7 +84,7 @@ npx ember-codemod-v1-to-v2 --root <path/to/your/project>
84
84
  By default, the test-app package lives in the folder `test-app`. Pass `--test-app-location` to override the logic.
85
85
 
86
86
  ```sh
87
- npx ember-codemod-v1-to-v2 --test-app-location docs-app
87
+ pnpx ember-codemod-v1-to-v2 --test-app-location docs-app
88
88
  ```
89
89
 
90
90
  </details>
@@ -97,7 +97,7 @@ npx ember-codemod-v1-to-v2 --test-app-location docs-app
97
97
  By default, the test-app package is named `test-app`. Pass `--test-app-name` to override the logic. This may be useful if you have a workspace with many addons.
98
98
 
99
99
  ```sh
100
- npx ember-codemod-v1-to-v2 --test-app-name test-app-for-ui-button
100
+ pnpx ember-codemod-v1-to-v2 --test-app-name test-app-for-ui-button
101
101
  ```
102
102
 
103
103
  </details>
@@ -124,7 +124,7 @@ If you'd rather start over, you can use [`create-v2-addon-repo`](https://github.
124
124
 
125
125
  ## Compatibility
126
126
 
127
- - Node.js v20 or above
127
+ - Node.js v22 or above
128
128
 
129
129
 
130
130
  ## Contributing
@@ -1,4 +1,3 @@
1
1
  import { join } from 'node:path';
2
2
  import { getFilePath } from '@codemod-utils/blueprints';
3
- const fileURL = import.meta.url;
4
- export const blueprintsRoot = join(getFilePath(fileURL), '../../blueprints');
3
+ export const blueprintsRoot = join(getFilePath(import.meta.url), '../../blueprints');
@@ -1,40 +1,40 @@
1
1
  import { decideVersion } from '@codemod-utils/blueprints';
2
2
  const latestVersions = new Map([
3
- ['@babel/core', '7.28.5'],
4
- ['@babel/plugin-transform-typescript', '7.28.5'],
5
- ['@babel/runtime', '7.28.4'],
6
- ['@embroider/addon-dev', '8.1.2'],
3
+ ['@babel/core', '7.29.0'],
4
+ ['@babel/plugin-transform-typescript', '7.28.6'],
5
+ ['@babel/runtime', '7.28.6'],
6
+ ['@embroider/addon-dev', '8.3.0'],
7
7
  ['@embroider/addon-shim', '1.10.2'],
8
8
  ['@embroider/broccoli-side-watch', '1.1.0'],
9
9
  ['@embroider/test-setup', '4.0.0'],
10
10
  ['@glimmer/component', '2.0.0'],
11
11
  ['@glimmer/tracking', '1.1.2'],
12
- ['@glint/ember-tsc', '1.0.8'],
13
- ['@glint/template', '1.7.3'],
14
- ['@glint/tsserver-plugin', '2.0.8'],
15
- ['@ijlee2-frontend-configs/ember-template-lint', '2.3.0'],
16
- ['@ijlee2-frontend-configs/eslint-config-ember', '2.4.2'],
17
- ['@ijlee2-frontend-configs/prettier', '2.3.1'],
18
- ['@ijlee2-frontend-configs/stylelint', '2.2.0'],
19
- ['@rollup/plugin-babel', '6.1.0'],
12
+ ['@glint/ember-tsc', '1.2.3'],
13
+ ['@glint/template', '1.7.7'],
14
+ ['@glint/tsserver-plugin', '2.2.4'],
15
+ ['@ijlee2-frontend-configs/ember-template-lint', '3.0.0'],
16
+ ['@ijlee2-frontend-configs/eslint-config-ember', '3.1.0'],
17
+ ['@ijlee2-frontend-configs/prettier', '3.0.1'],
18
+ ['@ijlee2-frontend-configs/stylelint', '3.1.0'],
19
+ ['@rollup/plugin-babel', '7.0.0'],
20
20
  ['@tsconfig/ember', '3.0.12'],
21
- ['babel-plugin-ember-template-compilation', '3.0.1'],
21
+ ['babel-plugin-ember-template-compilation', '4.0.0'],
22
22
  ['concurrently', '9.2.1'],
23
- ['decorator-transforms', '2.3.0'],
24
- ['ember-auto-import', '2.12.0'],
25
- ['ember-cli', '6.8.1'],
26
- ['ember-cli-babel', '8.2.0'],
23
+ ['decorator-transforms', '2.3.1'],
24
+ ['ember-auto-import', '2.12.1'],
25
+ ['ember-cli', '6.11.0'],
26
+ ['ember-cli-babel', '8.3.1'],
27
27
  ['ember-cli-htmlbars', '7.0.0'],
28
- ['ember-modifier', '4.2.2'],
29
- ['ember-source', '6.8.2'],
30
- ['ember-template-imports', '4.3.0'],
28
+ ['ember-modifier', '4.3.0'],
29
+ ['ember-source', '6.11.0'],
30
+ ['ember-template-imports', '4.4.0'],
31
31
  ['ember-template-lint', '7.9.3'],
32
32
  ['ember-try', '4.0.0'],
33
- ['eslint', '9.39.1'],
34
- ['pnpm', '10.25.0'],
35
- ['prettier', '3.7.4'],
36
- ['rollup', '4.53.3'],
37
- ['stylelint', '16.26.1'],
33
+ ['eslint', '9.39.4'],
34
+ ['pnpm', '10.32.1'],
35
+ ['prettier', '3.8.1'],
36
+ ['rollup', '4.59.0'],
37
+ ['stylelint', '17.4.0'],
38
38
  ['typescript', '5.9.3'],
39
39
  ]);
40
40
  export function getLatestVersion(packageName) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-codemod-v1-to-v2",
3
- "version": "3.0.3",
3
+ "version": "4.1.0",
4
4
  "description": "Codemod to convert Ember addons to v2 addon format",
5
5
  "keywords": [
6
6
  "codemod",
@@ -24,29 +24,29 @@
24
24
  "dist"
25
25
  ],
26
26
  "dependencies": {
27
- "@codemod-utils/blueprints": "^2.1.3",
28
- "@codemod-utils/files": "^3.2.5",
29
- "@codemod-utils/package-json": "^3.3.5",
27
+ "@codemod-utils/blueprints": "^3.0.1",
28
+ "@codemod-utils/files": "^4.0.0",
29
+ "@codemod-utils/package-json": "^4.0.0",
30
30
  "yargs": "^18.0.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@changesets/cli": "^2.29.8",
34
- "@codemod-utils/tests": "^2.2.4",
35
- "@ijlee2-frontend-configs/changesets": "^1.0.2",
36
- "@ijlee2-frontend-configs/eslint-config-node": "^2.4.1",
37
- "@ijlee2-frontend-configs/prettier": "^2.4.1",
33
+ "@changesets/cli": "^2.30.0",
34
+ "@codemod-utils/tests": "^3.0.0",
35
+ "@ijlee2-frontend-configs/changesets": "^2.1.0",
36
+ "@ijlee2-frontend-configs/eslint-config-node": "^3.1.0",
37
+ "@ijlee2-frontend-configs/prettier": "^3.0.1",
38
38
  "@sondr3/minitest": "^0.1.2",
39
- "@tsconfig/node20": "^20.1.9",
39
+ "@tsconfig/node22": "^22.0.5",
40
40
  "@tsconfig/strictest": "^2.0.8",
41
- "@types/node": "^20.19.31",
41
+ "@types/node": "^22.19.15",
42
42
  "@types/yargs": "^17.0.35",
43
43
  "concurrently": "^9.2.1",
44
- "eslint": "^9.39.2",
44
+ "eslint": "^9.39.4",
45
45
  "prettier": "^3.8.1",
46
46
  "typescript": "^5.9.3"
47
47
  },
48
48
  "engines": {
49
- "node": "20.* || >= 22"
49
+ "node": "22.* || >= 24"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "sh build.sh --production",