@williamthorsen/nmr-core 0.13.3 → 0.13.4
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/.meta/changelog.json +17 -0
- package/CHANGELOG.md +6 -0
- package/dist/esm/hashWorkingTree.js +8 -7
- package/dist/esm/parseArgs.js +2 -1
- package/package.json +1 -1
package/.meta/changelog.json
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.13.4",
|
|
4
|
+
"date": "2026-10-17",
|
|
5
|
+
"sections": [
|
|
6
|
+
{
|
|
7
|
+
"title": "📦 Dependencies",
|
|
8
|
+
"audience": "dev",
|
|
9
|
+
"items": [
|
|
10
|
+
{
|
|
11
|
+
"description": "Upgrades `@williamthorsen/eslint-config-typescript` from 18.0.0 to 19.0.0 and rewrites the code in `build-info`, `nmr-core`, `nmr`, and `release-kit` that its new and widened rules report, without changing behavior. (#1047)",
|
|
12
|
+
"hash": "610ee159fdc429681b1078b500a064c5df296724",
|
|
13
|
+
"entry": 1
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
2
19
|
{
|
|
3
20
|
"version": "0.13.3",
|
|
4
21
|
"date": "2026-10-12",
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.13.4 — 2026-10-17
|
|
6
|
+
|
|
7
|
+
### 📦 Dependencies
|
|
8
|
+
|
|
9
|
+
- Upgrades `@williamthorsen/eslint-config-typescript` from 18.0.0 to 19.0.0 and rewrites the code in `build-info`, `nmr-core`, `nmr`, and `release-kit` that its new and widened rules report, without changing behavior. (#1047)
|
|
10
|
+
|
|
5
11
|
## 0.13.3 — 2026-10-12
|
|
6
12
|
|
|
7
13
|
### 🏗️ Internal features
|
|
@@ -92,14 +92,15 @@ function collectChangedPaths(statusOutput) {
|
|
|
92
92
|
return { ok: false, reason: `malformed git status record: ${JSON.stringify(record.slice(0, 40))}` };
|
|
93
93
|
}
|
|
94
94
|
paths.add(changedPath);
|
|
95
|
-
if (type
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
if (type !== '2') {
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
index++;
|
|
99
|
+
const originalPath = records[index];
|
|
100
|
+
if (originalPath === undefined || originalPath === '') {
|
|
101
|
+
return { ok: false, reason: 'git status reported a rename without an original path' };
|
|
102
102
|
}
|
|
103
|
+
paths.add(originalPath);
|
|
103
104
|
}
|
|
104
105
|
return { ok: true, paths };
|
|
105
106
|
}
|
package/dist/esm/parseArgs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
2
|
import { parseArgs as nodeParseArgs } from 'node:util';
|
|
3
3
|
import { reportError } from "./terminal.js";
|
|
4
|
+
const initialFlagValues = { boolean: false, string: undefined };
|
|
4
5
|
export class ParseError extends Error {
|
|
5
6
|
kind;
|
|
6
7
|
flag;
|
|
@@ -20,7 +21,7 @@ export function parseArgs(argv, schema, options = {}) {
|
|
|
20
21
|
nodeOptions[name] =
|
|
21
22
|
def.short === undefined ? { type: def.type } : { type: def.type, short: def.short.replace(/^-/, '') };
|
|
22
23
|
byName.set(name, { key, def });
|
|
23
|
-
flags[key] = def.type
|
|
24
|
+
flags[key] = initialFlagValues[def.type];
|
|
24
25
|
}
|
|
25
26
|
const { tokens } = nodeParseArgs({
|
|
26
27
|
args: argv,
|