Skip to content

Commit 6815c6e

Browse files
authored
refactor(workflows): add workflow schema to workflow.yamls and fix the step title for rmdir (#158)
1 parent da3f025 commit 6815c6e

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

recipes/create-require-from-path/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2+
13
version: "1"
24
nodes:
35
- id: apply-transforms
46
name: Apply AST Transformations
57
type: automatic
6-
runtime:
7-
type: direct
88
steps:
99
- name: Handle DEP0130 via transforming `createRequireFromPath` to `createRequire`.
1010
js-ast-grep:

recipes/import-assertions-to-attributes/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2+
13
version: "1"
24
nodes:
35
- id: apply-transforms
46
name: Apply AST Transformations
57
type: automatic
6-
runtime:
7-
type: direct
88
steps:
99
- name: Replace `assert` import attribute to the `with` ECMAScript import attribute.
1010
js-ast-grep:

recipes/process-main-module/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2+
13
version: "1"
24

35
nodes:
46
- id: apply-transforms
57
name: Apply AST Transformations
68
type: automatic
7-
runtime:
8-
type: direct
99
steps:
1010
- name: Handle DEP0138 via transforming `process.mainModule` to `require.main`.
1111
js-ast-grep:

recipes/rmdir/workflow.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2+
13
version: "1"
24

35
nodes:
46
- id: apply-transforms
57
name: Apply AST Transformations
68
type: automatic
7-
runtime:
8-
type: direct
99
steps:
10-
- name: Replace `assert` import attribute to the `with` ECMAScript import attribute.
10+
- name: Handle DEP0147 via transforming `fs.rmdir` to `fs.rm`.
1111
js-ast-grep:
1212
js_file: src/workflow.ts
1313
base_path: .

recipes/tmpdir-to-tmpdir/workflow.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/codemod-com/codemod/refs/heads/main/schemas/workflow.json
2+
13
version: "1"
24

35
nodes:
46
- id: apply-transforms
57
name: Apply AST Transformations
68
type: automatic
7-
runtime:
8-
type: direct
99
steps:
1010
- name: Handle DEP0022 via transforming `tmpDir` to `tmpdir`.
1111
js-ast-grep:

0 commit comments

Comments
 (0)