@williamthorsen/nmr 0.14.1 → 0.14.2
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/README.md
CHANGED
|
@@ -321,7 +321,7 @@ The default root `check:strict` composite includes `check:agent-files`, which ru
|
|
|
321
321
|
To expose the synced guidance to Claude Code sessions, add this include to the consuming repo's `.agents/PROJECT.md`:
|
|
322
322
|
|
|
323
323
|
```markdown
|
|
324
|
-
|
|
324
|
+
@nmr/AGENTS.md
|
|
325
325
|
```
|
|
326
326
|
|
|
327
327
|
### `sync-pnpm-version`
|
package/dist/esm/.cache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
762ecbce6ca8e70fc4e9734eb2fab7d61a05d38cda5a77fe8d1ce2c2ad45aa85
|
package/dist/esm/context.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import
|
|
3
|
+
import { parse } from "yaml";
|
|
4
4
|
import { loadConfig } from "./config.js";
|
|
5
5
|
import { isObject } from "./helpers/type-guards.js";
|
|
6
6
|
function findMonorepoRoot(startDir) {
|
|
@@ -19,7 +19,7 @@ function findMonorepoRoot(startDir) {
|
|
|
19
19
|
function getWorkspacePackageDirs(monorepoRoot) {
|
|
20
20
|
const workspaceFile = path.join(monorepoRoot, "pnpm-workspace.yaml");
|
|
21
21
|
const content = readFileSync(workspaceFile, "utf8");
|
|
22
|
-
const parsed =
|
|
22
|
+
const parsed = parse(content);
|
|
23
23
|
const packages = getPackagesFromParsedYaml(parsed);
|
|
24
24
|
if (!packages) {
|
|
25
25
|
return [];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
|
-
import
|
|
2
|
+
import { parse } from "yaml";
|
|
3
3
|
function readYamlFile(filepath) {
|
|
4
4
|
try {
|
|
5
5
|
const content = readFileSync(filepath, "utf8");
|
|
6
|
-
return
|
|
6
|
+
return parse(content);
|
|
7
7
|
} catch (error) {
|
|
8
8
|
throw new Error(`Failed to read YAML file: ${filepath}
|
|
9
9
|
${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import assert from "node:assert";
|
|
2
2
|
import fs from "node:fs";
|
|
3
|
-
import
|
|
3
|
+
import { parse } from "yaml";
|
|
4
4
|
import { getValueAtPathOrThrow } from "./get-value-at-path.js";
|
|
5
5
|
async function getStringFromYamlFile(filePath, keyPath, label) {
|
|
6
6
|
const raw = await fs.promises.readFile(filePath, { encoding: "utf8" });
|
|
7
|
-
const parsed =
|
|
7
|
+
const parsed = parse(raw);
|
|
8
8
|
assert.ok(parsed, `YAML content not found in ${filePath}`);
|
|
9
9
|
const value = getValueAtPathOrThrow(parsed, keyPath);
|
|
10
10
|
assert.ok(typeof value === "string" && value.length > 0, `${label} not found at ${keyPath}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williamthorsen/nmr",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Context-aware script runner for PNPM monorepos",
|
|
6
6
|
"keywords": [
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"jiti": "2.7.0",
|
|
43
|
-
"
|
|
43
|
+
"yaml": "2.9.0",
|
|
44
44
|
"zod": "4.4.3",
|
|
45
45
|
"@williamthorsen/nmr-core": "0.3.2"
|
|
46
46
|
},
|