@williamthorsen/nmr 0.9.1 → 0.10.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/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2026 William Thorsen
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
6
+
7
+ The software is provided "as is" and the author disclaims all warranties with regard to this software including all implied warranties of merchantability and fitness. In no event shall the author be liable for any special, direct, indirect, or consequential damages or any damages whatsoever resulting from loss of use, data or profits, whether in an action of contract, negligence or other tortious action, arising out of or in connection with the use or performance of this software.
package/README.md CHANGED
@@ -210,11 +210,11 @@ Packages with a `vitest.integration.config.ts` file get different test commands.
210
210
 
211
211
  #### Audit
212
212
 
213
- | Command | Runs |
214
- | ------------ | ----------------------------------------------------------- |
215
- | `audit` | `audit:prod`, `audit:dev` |
216
- | `audit:dev` | `pnpm dlx audit-ci@^6 --config .audit-ci/config.dev.json5` |
217
- | `audit:prod` | `pnpm dlx audit-ci@^6 --config .audit-ci/config.prod.json5` |
213
+ | Command | Runs |
214
+ | ------------ | ------------------------------------------------------------------ |
215
+ | `audit` | `audit:prod`, `audit:dev` |
216
+ | `audit:dev` | `pnpm dlx audit-ci@^6 --config .config/audit-ci/config.dev.json5` |
217
+ | `audit:prod` | `pnpm dlx audit-ci@^6 --config .config/audit-ci/config.prod.json5` |
218
218
 
219
219
  #### Dependencies
220
220
 
package/dist/esm/.cache CHANGED
@@ -1 +1 @@
1
- d8dc968b747fa0ef7975d57e289e831b781ef0832973c54dc4de3bf4c18d8cea
1
+ ef769bb7d525506880d297aa0dceea5565adc3c06e0073b219032e0c58a64af4
@@ -27,12 +27,12 @@ const standardTestScripts = {
27
27
  };
28
28
  const rootScripts = {
29
29
  audit: ["audit:prod", "audit:dev"],
30
- "audit:dev": "pnpm dlx audit-ci@^6 --config .audit-ci/config.dev.json5",
31
- "audit:prod": "pnpm dlx audit-ci@^6 --config .audit-ci/config.prod.json5",
30
+ "audit:dev": "pnpm dlx audit-ci@^7 --config .config/audit-ci/config.dev.json5",
31
+ "audit:prod": "pnpm dlx audit-ci@^7 --config .config/audit-ci/config.prod.json5",
32
32
  build: "pnpm --recursive exec nmr build",
33
33
  check: ["typecheck", "fmt:check", "lint:check", "test"],
34
- "check:strict": ["typecheck", "fmt:check", "audit", "lint:strict", "test:coverage"],
35
- ci: ["build", "check:strict"],
34
+ "check:strict": ["typecheck", "fmt:check", "lint:strict", "test:coverage"],
35
+ ci: ["build", "check:strict", "audit"],
36
36
  clean: "pnpm --recursive exec nmr clean",
37
37
  fix: ["lint", "fmt"],
38
38
  fmt: `sh -c 'prettier --list-different --write "\${@:-.}"' --`,
@@ -1 +1 @@
1
- export declare const VERSION = "0.9.1";
1
+ export declare const VERSION = "0.10.0";
@@ -1,4 +1,4 @@
1
- const VERSION = "0.9.1";
1
+ const VERSION = "0.10.0";
2
2
  export {
3
3
  VERSION
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@williamthorsen/nmr",
3
- "version": "0.9.1",
3
+ "version": "0.10.0",
4
4
  "private": false,
5
5
  "description": "Context-aware script runner for PNPM monorepos",
6
6
  "keywords": [
@@ -9,7 +9,16 @@
9
9
  "script-runner",
10
10
  "workspace"
11
11
  ],
12
- "license": "MIT",
12
+ "homepage": "https://github.com/williamthorsen/node-monorepo-tools/tree/main/packages/nmr#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/williamthorsen/node-monorepo-tools/issues"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/williamthorsen/node-monorepo-tools.git",
19
+ "directory": "packages/nmr"
20
+ },
21
+ "license": "ISC",
13
22
  "author": "William Thorsen <william@thorsen.dev> (https://github.com/williamthorsen)",
14
23
  "type": "module",
15
24
  "exports": {
@@ -1,5 +0,0 @@
1
- export type ScriptValue = string | string[];
2
- export type ScriptRegistry = Record<string, ScriptValue>;
3
- declare function getDefaultWorkspaceScripts(useIntTests: boolean): ScriptRegistry;
4
- declare function getDefaultRootScripts(): ScriptRegistry;
5
- export { getDefaultRootScripts, getDefaultWorkspaceScripts };
@@ -1,67 +0,0 @@
1
- function getDefaultWorkspaceScripts(useIntTests) {
2
- const commonScripts = {
3
- build: ["compile", "generate-typings"],
4
- check: ["typecheck", "fmt:check", "lint:check", "test"],
5
- "check:strict": ["typecheck", "fmt:check", "lint:strict", "test:coverage"],
6
- clean: "pnpm exec rimraf dist/*",
7
- compile: "tsx ../../config/build.ts",
8
- fmt: "prettier --list-different --write .",
9
- "fmt:check": "prettier --check .",
10
- "generate-typings": "tsc --project tsconfig.generate-typings.json",
11
- lint: "eslint --fix .",
12
- "lint:check": "eslint .",
13
- "lint:strict": "strict-lint",
14
- typecheck: "tsgo --noEmit",
15
- "view-coverage": "open coverage/index.html"
16
- };
17
- const integrationTestOverrides = {
18
- test: "pnpm exec vitest --config=vitest.standalone.config.ts",
19
- "test:coverage": "pnpm exec vitest --config=vitest.standalone.config.ts --coverage",
20
- "test:integration": "pnpm exec vitest --config=vitest.integration.config.ts",
21
- "test:watch": "pnpm exec vitest --config=vitest.standalone.config.ts --watch"
22
- };
23
- const standardTestOverrides = {
24
- test: "pnpm exec vitest",
25
- "test:coverage": "pnpm exec vitest --coverage",
26
- "test:watch": "pnpm exec vitest --watch"
27
- };
28
- return {
29
- ...commonScripts,
30
- ...useIntTests ? integrationTestOverrides : standardTestOverrides
31
- };
32
- }
33
- function getDefaultRootScripts() {
34
- return {
35
- audit: ["audit:prod", "audit:dev"],
36
- "audit:dev": "pnpm dlx audit-ci@^6 --config .audit-ci/config.dev.json5",
37
- "audit:prod": "pnpm dlx audit-ci@^6 --config .audit-ci/config.prod.json5",
38
- build: "pnpm --recursive exec nmr build",
39
- check: ["typecheck", "fmt:check", "lint:check", "test"],
40
- "check:strict": ["typecheck", "fmt:check", "audit", "lint:strict", "test:coverage"],
41
- ci: ["build", "check:strict"],
42
- fmt: `sh -c 'prettier --list-different --write "\${@:-.}"' --`,
43
- "fmt:check": `sh -c 'prettier --check "\${@:-.}"' --`,
44
- lint: "nmr root:lint && pnpm --recursive exec nmr lint",
45
- "lint:check": "nmr root:lint:check && pnpm --recursive exec nmr lint:check",
46
- "lint:strict": "nmr root:lint:strict && pnpm --recursive exec nmr lint:strict",
47
- outdated: "pnpm outdated --compatible --recursive",
48
- "outdated:latest": "pnpm outdated --recursive",
49
- "report-overrides": "nmr-report-overrides",
50
- "root:lint": "eslint --fix --ignore-pattern 'packages/**' .",
51
- "root:lint:check": "eslint --ignore-pattern 'packages/**' .",
52
- "root:lint:strict": "strict-lint --ignore-pattern 'packages/**' .",
53
- "root:test": "vitest --config ./vitest.root.config.ts",
54
- "root:typecheck": "tsgo --noEmit",
55
- "sync-pnpm-version": "nmr-sync-pnpm-version",
56
- test: "nmr root:test && pnpm --recursive exec nmr test",
57
- "test:coverage": "nmr root:test && pnpm --recursive exec nmr test:coverage",
58
- "test:watch": "vitest --watch",
59
- typecheck: "nmr root:typecheck && pnpm --recursive exec nmr typecheck",
60
- update: "pnpm update --recursive",
61
- "update:latest": "pnpm update --latest --recursive"
62
- };
63
- }
64
- export {
65
- getDefaultRootScripts,
66
- getDefaultWorkspaceScripts
67
- };