@pob/codemods 0.7.0 → 0.8.0
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.
- package/CHANGELOG.md +6 -0
- package/bin/migrate.mjs +3 -2
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.8.0](https://github.com/christophehurpeau/pob/compare/@pob/codemods@0.7.0...@pob/codemods@0.8.0) (2025-04-27)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* use glob from nodejs ([2ffacbe](https://github.com/christophehurpeau/pob/commit/2ffacbebb7ea1f13d6e8761a7a223c62841e993b))
|
|
11
|
+
|
|
6
12
|
## [0.7.0](https://github.com/christophehurpeau/pob/compare/@pob/codemods@0.6.0...@pob/codemods@0.7.0) (2025-02-17)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/bin/migrate.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { readdirSync } from "node:fs";
|
|
4
|
+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
|
|
5
|
+
import { glob } from "node:fs/promises";
|
|
4
6
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
import { glob } from "glob";
|
|
6
7
|
import runJscodeshift from "../lib/runJscodeshift.cjs";
|
|
7
8
|
|
|
8
9
|
const argv = process.argv.slice(2);
|
|
@@ -24,7 +25,7 @@ if (!transformerName || !globPaths) {
|
|
|
24
25
|
const transformPath = fileURLToPath(
|
|
25
26
|
new URL(`../lib/transforms/${transformerName}.cjs`, import.meta.url),
|
|
26
27
|
);
|
|
27
|
-
const paths =
|
|
28
|
+
const paths = await Array.fromAsync(glob(globPaths));
|
|
28
29
|
|
|
29
30
|
if (paths.length === 0) {
|
|
30
31
|
throw new Error(`No files found matching ${globPaths}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/codemods",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "codemods for pob",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <302891+christophehurpeau@users.noreply.github.com> (https://christophe.hurpeau.com)",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"pob": {},
|
|
35
35
|
"prettier": "@pob/root/prettier-config",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"glob": "11.0.1",
|
|
38
37
|
"jscodeshift": "17.1.2"
|
|
39
38
|
},
|
|
40
39
|
"devDependencies": {
|
|
41
|
-
"@types/jscodeshift": "0.12.0"
|
|
40
|
+
"@types/jscodeshift": "0.12.0",
|
|
41
|
+
"@types/node": "22.15.2"
|
|
42
42
|
}
|
|
43
43
|
}
|