@williamthorsen/nmr 0.4.0 → 0.5.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/dist/esm/.cache CHANGED
@@ -1 +1 @@
1
- e3d8619d797a79c02e27201b2f6171de0f5455f74ba2ba53b42079ea580c5d8d
1
+ 834e6087a35ba80bbcfb6fd2f26a99b7058bd15762e76660c580b6673fa7474f
@@ -4,6 +4,7 @@ const commonWorkspaceScripts = {
4
4
  "check:strict": ["typecheck", "fmt:check", "lint:strict", "test:coverage"],
5
5
  clean: "pnpm exec rimraf dist/*",
6
6
  compile: "tsx ../../config/build.ts",
7
+ fix: ["lint", "fmt"],
7
8
  fmt: "prettier --list-different --write .",
8
9
  "fmt:check": "prettier --check .",
9
10
  "generate-typings": "tsc --project tsconfig.generate-typings.json",
@@ -33,6 +34,7 @@ const rootScripts = {
33
34
  "check:strict": ["typecheck", "fmt:check", "audit", "lint:strict", "test:coverage"],
34
35
  ci: ["build", "check:strict"],
35
36
  clean: "pnpm --recursive exec nmr clean",
37
+ fix: ["lint", "fmt"],
36
38
  fmt: `sh -c 'prettier --list-different --write "\${@:-.}"' --`,
37
39
  "fmt:all": ["fmt", "fmt:sh"],
38
40
  "fmt:check": `sh -c 'prettier --check "\${@:-.}"' --`,
@@ -1,3 +1,3 @@
1
- export type { NmrConfig } from './config.js';
2
- export { defineConfig } from './config.js';
3
- export type { ResolvedContext } from './context.js';
1
+ export type { NmrConfig } from './config.ts';
2
+ export { defineConfig } from './config.ts';
3
+ export type { ResolvedContext } from './context.ts';
@@ -1 +1,7 @@
1
+ export { findMonorepoRoot } from '../context.ts';
2
+ export declare function checkPnpmVersionConsistency(monorepoRoot: string): void;
3
+ export declare function checkNodeVersionConsistency(monorepoRoot: string): void;
4
+ export declare function getPnpmVersionFromAction(monorepoRoot: string): Promise<string>;
5
+ export declare function getPnpmVersionFromPackageJson(monorepoRoot: string): string;
6
+ export declare function getNodeVersionFromAction(monorepoRoot: string): Promise<string>;
1
7
  export declare function runConsistencyChecks(): void;
@@ -2,6 +2,7 @@ import fs from "node:fs";
2
2
  import path from "node:path";
3
3
  import { describe, expect, it } from "vitest";
4
4
  import { findMonorepoRoot } from "../context.js";
5
+ import { findMonorepoRoot as findMonorepoRoot2 } from "../context.js";
5
6
  import { getRuntimeVersionFromAsdf } from "./helpers/get-runtime-version-from-asdf.js";
6
7
  import { getStringFromYamlFile } from "./helpers/get-string-from-yaml-file.js";
7
8
  import { getValueAtPathOrThrow } from "./helpers/get-value-at-path.js";
@@ -55,5 +56,11 @@ function runConsistencyChecks() {
55
56
  checkNodeVersionConsistency(monorepoRoot);
56
57
  }
57
58
  export {
59
+ checkNodeVersionConsistency,
60
+ checkPnpmVersionConsistency,
61
+ findMonorepoRoot2 as findMonorepoRoot,
62
+ getNodeVersionFromAction,
63
+ getPnpmVersionFromAction,
64
+ getPnpmVersionFromPackageJson,
58
65
  runConsistencyChecks
59
66
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/nmr",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "private": false,
5
5
  "description": "Context-aware script runner for PNPM monorepos",
6
6
  "keywords": [