@pob/pretty-pkg 12.0.2 → 12.1.1

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 CHANGED
@@ -3,6 +3,20 @@
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.1](https://github.com/christophehurpeau/pob/compare/@pob/pretty-pkg@12.1.0...@pob/pretty-pkg@12.1.1) (2025-04-27)
7
+
8
+ Version bump for dependency: @pob/sort-pkg
9
+
10
+
11
+ ## [12.1.0](https://github.com/christophehurpeau/pob/compare/@pob/pretty-pkg@12.0.2...@pob/pretty-pkg@12.1.0) (2025-04-27)
12
+
13
+ ### Features
14
+
15
+ * use glob from nodejs ([2ffacbe](https://github.com/christophehurpeau/pob/commit/2ffacbebb7ea1f13d6e8761a7a223c62841e993b))
16
+
17
+ Version bump for dependency: @pob/sort-pkg
18
+
19
+
6
20
  ## [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
21
 
8
22
  Note: no notable changes
package/README.md CHANGED
@@ -1,16 +1,16 @@
1
- <h3 align="center">
1
+ <h1 align="center">
2
2
  @pob/pretty-pkg
3
- </h3>
3
+ </h1>
4
4
 
5
5
  <p align="center">
6
6
  prettier and sort package.json
7
7
  </p>
8
8
 
9
9
  <p align="center">
10
- <a href="https://npmjs.org/package/@pob/pretty-pkg"><img src="https://img.shields.io/npm/v/@pob/pretty-pkg.svg?style=flat-square"></a>
11
- <a href="https://npmjs.org/package/@pob/pretty-pkg"><img src="https://img.shields.io/npm/dw/@pob/pretty-pkg.svg?style=flat-square"></a>
12
- <a href="https://npmjs.org/package/@pob/pretty-pkg"><img src="https://img.shields.io/node/v/@pob/pretty-pkg.svg?style=flat-square"></a>
13
- <a href="https://npmjs.org/package/@pob/pretty-pkg"><img src="https://img.shields.io/npm/types/@pob/pretty-pkg.svg?style=flat-square"></a>
10
+ <a href="https://npmjs.org/package/@pob/pretty-pkg"><img src="https://img.shields.io/npm/v/@pob/pretty-pkg.svg?style=flat-square" alt="npm version"></a>
11
+ <a href="https://npmjs.org/package/@pob/pretty-pkg"><img src="https://img.shields.io/npm/dw/@pob/pretty-pkg.svg?style=flat-square" alt="npm downloads"></a>
12
+ <a href="https://npmjs.org/package/@pob/pretty-pkg"><img src="https://img.shields.io/node/v/@pob/pretty-pkg.svg?style=flat-square" alt="node version"></a>
13
+ <a href="https://npmjs.org/package/@pob/pretty-pkg"><img src="https://img.shields.io/npm/types/@pob/pretty-pkg.svg?style=flat-square" alt="types"></a>
14
14
  </p>
15
15
 
16
16
  ## Install
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.2",
3
+ "version": "12.1.1",
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": ">=20.9.0"
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.1",
41
- "glob": "^11.0.1",
40
+ "@pob/sort-pkg": "11.0.3",
42
41
  "prettier": "^3.5.3"
43
42
  }
44
43
  }