File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
import-assertions-to-attributes Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2
+
1
3
version : " 1"
2
4
nodes :
3
5
- id : apply-transforms
4
6
name : Apply AST Transformations
5
7
type : automatic
6
- runtime :
7
- type : direct
8
8
steps :
9
9
- name : Handle DEP0130 via transforming `createRequireFromPath` to `createRequire`.
10
10
js-ast-grep :
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2
+
1
3
version : " 1"
2
4
nodes :
3
5
- id : apply-transforms
4
6
name : Apply AST Transformations
5
7
type : automatic
6
- runtime :
7
- type : direct
8
8
steps :
9
9
- name : Replace `assert` import attribute to the `with` ECMAScript import attribute.
10
10
js-ast-grep :
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2
+
1
3
version : " 1"
2
4
3
5
nodes :
4
6
- id : apply-transforms
5
7
name : Apply AST Transformations
6
8
type : automatic
7
- runtime :
8
- type : direct
9
9
steps :
10
10
- name : Handle DEP0138 via transforming `process.mainModule` to `require.main`.
11
11
js-ast-grep :
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2
+
1
3
version : " 1"
2
4
3
5
nodes :
4
6
- id : apply-transforms
5
7
name : Apply AST Transformations
6
8
type : automatic
7
- runtime :
8
- type : direct
9
9
steps :
10
- - name : Replace `assert` import attribute to the `with` ECMAScript import attribute .
10
+ - name : Handle DEP0147 via transforming `fs.rmdir` to `fs.rm` .
11
11
js-ast-grep :
12
12
js_file : src/workflow.ts
13
13
base_path : .
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2
+
1
3
version : " 1"
2
4
3
5
nodes :
4
6
- id : apply-transforms
5
7
name : Apply AST Transformations
6
8
type : automatic
7
- runtime :
8
- type : direct
9
9
steps :
10
10
- name : Handle DEP0022 via transforming `tmpDir` to `tmpdir`.
11
11
js-ast-grep :
You can’t perform that action at this time.
0 commit comments