Skip to content

Commit d1ad539

Browse files
fix(fs-access-mode-constants): don't modify other thing (#382)
Co-authored-by: Bruno Rodrigues <swe@brunocroh.com>
1 parent 5b76f83 commit d1ad539

5 files changed

Lines changed: 858 additions & 83 deletions

File tree

package-lock.json

Lines changed: 176 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

recipes/fs-access-mode-constants/codemod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
schema_version: "1.0"
22
name: "@nodejs/fs-access-mode-constants"
3-
version: "1.0.2"
3+
version: "1.0.3"
44
description: Handle DEP0176 via transforming imports of `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, `fs.X_OK` from the root `fs` module to `fs.constants`.
55
author: nekojanai (Jana)
66
license: MIT

recipes/fs-access-mode-constants/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nodejs/fs-access-mode-constants",
3-
"version": "1.0.1",
3+
"version": "1.0.3",
44
"description": "Handle DEP0176 via transforming imports of `fs.F_OK`, `fs.R_OK`, `fs.W_OK`, `fs.X_OK` from the root `fs` module to `fs.constants`.",
55
"type": "module",
66
"scripts": {
@@ -19,6 +19,7 @@
1919
"@nodejs/codemod-utils": "*"
2020
},
2121
"devDependencies": {
22+
"@ast-grep/napi": "^0.41.0",
2223
"@codemod.com/jssg-types": "^1.6.2"
2324
}
2425
}

0 commit comments

Comments
 (0)