Skip to content

Commit d5b73e4

Browse files
committed
feat(fs-access-mode-constants): introduce
1 parent 95f574e commit d5b73e4

File tree

23 files changed

+380
-18
lines changed

23 files changed

+380
-18
lines changed

package-lock.json

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

recipes/file-access-mode-constants/src/workflow.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

recipes/file-access-mode-constants/README.md renamed to recipes/fs-access-mode-constants/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ access('/path/to/file', constants.F_OK, callback);
6464
access('/path/to/file', constants.R_OK | constants.W_OK, callback);
6565
```
6666

67-
### Case 4: ESM destructured import
67+
### Case 4: named imports
6868

6969
**Before:**
7070

recipes/file-access-mode-constants/codemod.yaml renamed to recipes/fs-access-mode-constants/codemod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
schema_version: "1.0"
2-
name: "@nodejs/file-access-mode-constants"
2+
name: "@nodejs/fs-access-mode-constants"
33
version: "1.0.0"
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)
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@nodejs/file-access-mode-constants",
2+
"name": "@nodejs/fs-access-mode-constants",
33
"version": "1.0.0",
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",
@@ -9,17 +9,16 @@
99
"repository": {
1010
"type": "git",
1111
"url": "git+https://github.com/nodejs/userland-migrations.git",
12-
"directory": "recipes/file-access-mode-constants",
12+
"directory": "recipes/fs-access-mode-constants",
1313
"bugs": "https://github.com/nodejs/userland-migrations/issues"
1414
},
1515
"author": "nekojanai (Jana)",
1616
"license": "MIT",
17-
"homepage": "https://github.com/nodejs/userland-migrations/blob/main/recipes/file-access-mode-constants/README.md",
17+
"homepage": "https://github.com/nodejs/userland-migrations/blob/main/recipes/fs-access-mode-constants/README.md",
1818
"dependencies": {
19-
"@ast-grep/napi": "^0.39.2",
20-
"@nodejs/codemod-utils": "^0.0.0"
19+
"@nodejs/codemod-utils": "*"
2120
},
2221
"devDependencies": {
23-
"@types/node": "^24.1.0"
22+
"@codemod.com/jssg-types": "^1.0.3"
2423
}
25-
}
24+
}

0 commit comments

Comments
 (0)