@williamthorsen/nmr 0.9.2 → 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/README.md +5 -5
- package/dist/esm/.cache +1 -1
- package/dist/esm/default-scripts.js +4 -4
- package/dist/esm/version.d.ts +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
- package/dist/esm/registries.d.ts +0 -5
- package/dist/esm/registries.js +0 -67
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
|
-
|
|
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@^
|
|
31
|
-
"audit:prod": "pnpm dlx audit-ci@^
|
|
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", "
|
|
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 "\${@:-.}"' --`,
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.10.0";
|
package/dist/esm/version.js
CHANGED
package/package.json
CHANGED
package/dist/esm/registries.d.ts
DELETED
|
@@ -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 };
|
package/dist/esm/registries.js
DELETED
|
@@ -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
|
-
};
|