@pob/pretty-pkg 12.0.2 → 12.1.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 +9 -0
- package/bin/pretty-pkg.js +3 -2
- package/package.json +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
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
|
+
## [12.1.0](https://github.com/christophehurpeau/pob/compare/@pob/pretty-pkg@12.0.2...@pob/pretty-pkg@12.1.0) (2025-04-27)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* use glob from nodejs ([2ffacbe](https://github.com/christophehurpeau/pob/commit/2ffacbebb7ea1f13d6e8761a7a223c62841e993b))
|
|
11
|
+
|
|
12
|
+
Version bump for dependency: @pob/sort-pkg
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [12.0.2](https://github.com/christophehurpeau/pob/compare/@pob/pretty-pkg@12.0.1...@pob/pretty-pkg@12.0.2) (2025-03-14)
|
|
7
16
|
|
|
8
17
|
Note: no notable changes
|
package/bin/pretty-pkg.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import fs from "node:fs";
|
|
4
|
+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
|
|
5
|
+
import { glob } from "node:fs/promises";
|
|
4
6
|
import path from "node:path";
|
|
5
|
-
import { glob } from "glob";
|
|
6
7
|
import { override, write } from "../lib/index.js";
|
|
7
8
|
|
|
8
9
|
const packageJsonPathnames = process.argv.slice(2);
|
|
@@ -29,7 +30,7 @@ if (packageJsonPathnames.length > 0) {
|
|
|
29
30
|
ignore: ["**/node_modules/**"],
|
|
30
31
|
});
|
|
31
32
|
|
|
32
|
-
for (const match of matches) {
|
|
33
|
+
for await (const match of matches) {
|
|
33
34
|
const packageJsonPathname = path.join(match, "package.json");
|
|
34
35
|
if (fs.existsSync(packageJsonPathname)) {
|
|
35
36
|
promises.push(override(packageJsonPathname));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pob/pretty-pkg",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "prettier and sort package.json",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"homepage": "https://github.com/christophehurpeau/pob",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
16
|
+
"node": ">=22.14.0"
|
|
17
17
|
},
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"bin": "./bin/pretty-pkg.js",
|
|
@@ -37,8 +37,7 @@
|
|
|
37
37
|
"pob": {},
|
|
38
38
|
"prettier": "@pob/root/prettier-config",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@pob/sort-pkg": "11.0.
|
|
41
|
-
"glob": "^11.0.1",
|
|
40
|
+
"@pob/sort-pkg": "11.0.2",
|
|
42
41
|
"prettier": "^3.5.3"
|
|
43
42
|
}
|
|
44
43
|
}
|