ember-codemod-remove-ember-css-modules 4.0.4 → 4.0.5
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.
|
@@ -11,10 +11,6 @@ function sanitizeClassAndLocalClassAttributes(file) {
|
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
13
|
const attribute = attributes[attributeIndex];
|
|
14
|
-
if (attribute.isValueless) {
|
|
15
|
-
attributes.splice(attributeIndex, 1);
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
14
|
if (attribute.value.type !== 'TextNode') {
|
|
19
15
|
return;
|
|
20
16
|
}
|
|
@@ -112,6 +108,7 @@ function removeLocalClassHelpers(file) {
|
|
|
112
108
|
}
|
|
113
109
|
const traverse = AST.traverse();
|
|
114
110
|
const ast = traverse(file, {
|
|
111
|
+
// @ts-expect-error: Incorrect type
|
|
115
112
|
AttrNode(node) {
|
|
116
113
|
if (node.name !== 'class') {
|
|
117
114
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ember-codemod-remove-ember-css-modules",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Codemod to replace ember-css-modules with embroider-css-modules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codemod",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@codemod-utils/ast-javascript": "^3.0.
|
|
28
|
-
"@codemod-utils/ast-template": "^3.0
|
|
27
|
+
"@codemod-utils/ast-javascript": "^3.0.2",
|
|
28
|
+
"@codemod-utils/ast-template": "^3.1.0",
|
|
29
29
|
"@codemod-utils/blueprints": "^3.1.0",
|
|
30
30
|
"@codemod-utils/ember": "^4.1.1",
|
|
31
31
|
"@codemod-utils/files": "^4.0.1",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"eslint": "^9.39.4",
|
|
42
42
|
"prettier": "^3.8.3",
|
|
43
43
|
"typescript": "^5.9.3",
|
|
44
|
-
"@shared-configs/typescript": "0.0.0",
|
|
45
44
|
"@shared-configs/eslint-config-node": "0.0.0",
|
|
46
|
-
"@shared-configs/prettier": "0.0.0"
|
|
45
|
+
"@shared-configs/prettier": "0.0.0",
|
|
46
|
+
"@shared-configs/typescript": "0.0.0"
|
|
47
47
|
},
|
|
48
48
|
"engines": {
|
|
49
49
|
"node": "22.* || >= 24"
|