@smoothbricks/nx-plugin 0.4.25 → 0.4.27
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 +1078 -98
- package/dist/bin/smoo-nx-bound-failures.d.ts +3 -0
- package/dist/bin/smoo-nx-bound-failures.d.ts.map +1 -0
- package/dist/bin/smoo-nx-bound-failures.js +31 -0
- package/dist/bin/smoo-nx-cargo-hash.js +28 -3
- package/dist/bin/smoo-nx-exec.js +16 -85
- package/dist/bin/smoo-nx-failures.d.ts +3 -0
- package/dist/bin/smoo-nx-failures.d.ts.map +1 -0
- package/dist/bin/smoo-nx-failures.js +3 -0
- package/dist/bin/smoo-nx-nextest-extract.js +3 -2
- package/dist/bin/smoo-nx-test-walks.d.ts +3 -0
- package/dist/bin/smoo-nx-test-walks.d.ts.map +1 -0
- package/dist/bin/smoo-nx-test-walks.js +34 -0
- package/dist/bounded-test-policy.d.ts +7 -1
- package/dist/bounded-test-policy.d.ts.map +1 -1
- package/dist/bounded-test-policy.js +101 -40
- package/dist/build-state-output-policy.d.ts +25 -0
- package/dist/build-state-output-policy.d.ts.map +1 -0
- package/dist/build-state-output-policy.js +64 -0
- package/dist/cargo-closure-input.d.ts +16 -17
- package/dist/cargo-closure-input.d.ts.map +1 -1
- package/dist/cargo-closure-input.js +37 -44
- package/dist/cargo-dev-profile.d.ts +37 -0
- package/dist/cargo-dev-profile.d.ts.map +1 -0
- package/dist/cargo-dev-profile.js +108 -0
- package/dist/cargo-source-hash.d.ts +50 -8
- package/dist/cargo-source-hash.d.ts.map +1 -1
- package/dist/cargo-source-hash.js +691 -71
- package/dist/cargo-toolchain-policy.d.ts +4 -0
- package/dist/cargo-toolchain-policy.d.ts.map +1 -1
- package/dist/cargo-toolchain-policy.js +5 -0
- package/dist/cargo-workspace.d.ts +108 -12
- package/dist/cargo-workspace.d.ts.map +1 -1
- package/dist/cargo-workspace.js +299 -18
- package/dist/cross-check-policy.d.ts +21 -3
- package/dist/cross-check-policy.d.ts.map +1 -1
- package/dist/cross-check-policy.js +24 -6
- package/dist/disk-command-policy.d.ts +7 -0
- package/dist/disk-command-policy.d.ts.map +1 -0
- package/dist/disk-command-policy.js +98 -0
- package/dist/ensure-built-receipt.d.ts +25 -0
- package/dist/ensure-built-receipt.d.ts.map +1 -0
- package/dist/ensure-built-receipt.js +261 -0
- package/dist/ensure-built-witness.d.ts +57 -0
- package/dist/ensure-built-witness.d.ts.map +1 -0
- package/dist/ensure-built-witness.js +412 -0
- package/dist/ensure-built.d.ts +213 -12
- package/dist/ensure-built.d.ts.map +1 -1
- package/dist/ensure-built.js +624 -177
- package/dist/eslint-file-set.d.ts +7 -0
- package/dist/eslint-file-set.d.ts.map +1 -0
- package/dist/eslint-file-set.js +12 -0
- package/dist/executors/bounded-exec/cpu-pool.d.ts +63 -0
- package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -0
- package/dist/executors/bounded-exec/cpu-pool.js +379 -0
- package/dist/executors/bounded-exec/cpu-tokens.d.ts +82 -0
- package/dist/executors/bounded-exec/cpu-tokens.d.ts.map +1 -0
- package/dist/executors/bounded-exec/cpu-tokens.js +114 -0
- package/dist/executors/bounded-exec/disk-lease.d.ts +61 -0
- package/dist/executors/bounded-exec/disk-lease.d.ts.map +1 -0
- package/dist/executors/bounded-exec/disk-lease.js +91 -0
- package/dist/executors/bounded-exec/executor.d.ts +45 -2
- package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
- package/dist/executors/bounded-exec/executor.js +447 -52
- package/dist/executors/bounded-exec/gateway-lease.d.ts +52 -0
- package/dist/executors/bounded-exec/gateway-lease.d.ts.map +1 -0
- package/dist/executors/bounded-exec/gateway-lease.js +143 -0
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts +35 -0
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -0
- package/dist/executors/bounded-exec/hang-diagnostics.js +231 -0
- package/dist/executors/bounded-exec/progress.d.ts +35 -0
- package/dist/executors/bounded-exec/progress.d.ts.map +1 -0
- package/dist/executors/bounded-exec/progress.js +79 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.d.ts +3 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.js +12 -0
- package/dist/executors/bounded-exec/ram-temp-held.d.ts +91 -0
- package/dist/executors/bounded-exec/ram-temp-held.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-temp-held.js +152 -0
- package/dist/executors/bounded-exec/ram-temp.d.ts +223 -0
- package/dist/executors/bounded-exec/ram-temp.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-temp.js +1528 -0
- package/dist/executors/bounded-exec/schema.d.ts +29 -11
- package/dist/executors/bounded-exec/schema.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.d.ts +162 -0
- package/dist/executors/bounded-exec/verdict.d.ts.map +1 -0
- package/dist/executors/bounded-exec/verdict.js +318 -0
- package/dist/executors/shard-timings/executor.d.ts +14 -0
- package/dist/executors/shard-timings/executor.d.ts.map +1 -0
- package/dist/executors/shard-timings/executor.js +25 -0
- package/dist/executors/shard-timings/schema.d.ts +4 -0
- package/dist/executors/shard-timings/schema.d.ts.map +1 -0
- package/dist/executors/shard-timings/schema.js +1 -0
- package/dist/failure-summary.d.ts +5 -0
- package/dist/failure-summary.d.ts.map +1 -0
- package/dist/failure-summary.js +118 -0
- package/dist/generators/create-package/generator.d.ts.map +1 -1
- package/dist/generators/create-package/generator.js +6 -2
- package/dist/index.d.ts +14 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +435 -230
- package/dist/managed-assets.d.ts +6 -0
- package/dist/managed-assets.d.ts.map +1 -1
- package/dist/managed-files/ci-workflow.d.ts +13 -0
- package/dist/managed-files/ci-workflow.d.ts.map +1 -1
- package/dist/managed-files/ci-workflow.js +44 -13
- package/dist/managed-files/files.d.ts +7 -1
- package/dist/managed-files/files.d.ts.map +1 -1
- package/dist/managed-files/files.js +62 -8
- package/dist/managed-files/json-edit.d.ts +21 -0
- package/dist/managed-files/json-edit.d.ts.map +1 -0
- package/dist/managed-files/json-edit.js +295 -0
- package/dist/managed-files/managed-format.d.ts +33 -1
- package/dist/managed-files/managed-format.d.ts.map +1 -1
- package/dist/managed-files/managed-format.js +82 -2
- package/dist/managed-files/pr-preview-cleanup-workflow.d.ts +7 -0
- package/dist/managed-files/pr-preview-cleanup-workflow.d.ts.map +1 -1
- package/dist/managed-files/pr-preview-cleanup-workflow.js +68 -4
- package/dist/managed-files/publish-workflow.d.ts.map +1 -1
- package/dist/managed-files/publish-workflow.js +231 -48
- package/dist/managed-files/tree.d.ts +5 -0
- package/dist/managed-files/tree.d.ts.map +1 -1
- package/dist/managed-files/tree.js +5 -3
- package/dist/manifest-hash.js +3 -2
- package/dist/nextest-code-bound.d.ts +62 -0
- package/dist/nextest-code-bound.d.ts.map +1 -0
- package/dist/nextest-code-bound.js +154 -0
- package/dist/nextest-extraction.d.ts +24 -8
- package/dist/nextest-extraction.d.ts.map +1 -1
- package/dist/nextest-extraction.js +42 -7
- package/dist/package-target-policy.d.ts.map +1 -1
- package/dist/package-target-policy.js +3 -5
- package/dist/release-config-policy.d.ts.map +1 -1
- package/dist/release-config-policy.js +3 -5
- package/dist/runtime-input.d.ts +14 -0
- package/dist/runtime-input.d.ts.map +1 -0
- package/dist/runtime-input.js +15 -0
- package/dist/rust-tokens.d.ts +11 -0
- package/dist/rust-tokens.d.ts.map +1 -0
- package/dist/rust-tokens.js +81 -0
- package/dist/task-results.d.ts +6 -0
- package/dist/task-results.d.ts.map +1 -0
- package/dist/task-results.js +61 -0
- package/dist/test-program.d.ts +54 -0
- package/dist/test-program.d.ts.map +1 -0
- package/dist/test-program.js +292 -0
- package/dist/test-timings.d.ts +71 -0
- package/dist/test-timings.d.ts.map +1 -0
- package/dist/test-timings.js +393 -0
- package/dist/test-walk-policy.d.ts +103 -0
- package/dist/test-walk-policy.d.ts.map +1 -0
- package/dist/test-walk-policy.js +657 -0
- package/dist/testing.d.ts +177 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +824 -0
- package/dist/type-guards.d.ts +3 -0
- package/dist/type-guards.d.ts.map +1 -0
- package/dist/type-guards.js +4 -0
- package/dist/typecheck-test-policy.d.ts +8 -5
- package/dist/typecheck-test-policy.d.ts.map +1 -1
- package/dist/typecheck-test-policy.js +113 -100
- package/dist/workspace-config-policy.d.ts +8 -0
- package/dist/workspace-config-policy.d.ts.map +1 -1
- package/dist/workspace-config-policy.js +175 -63
- package/dist/workspace-index.d.ts +12 -0
- package/dist/workspace-index.d.ts.map +1 -0
- package/dist/workspace-index.js +17 -0
- package/dist/workspace-manifest.d.ts +37 -1
- package/dist/workspace-manifest.d.ts.map +1 -1
- package/executors.json +5 -0
- package/loader.js +13 -11
- package/managed/raw/envrc +33 -62
- package/managed/raw/git-format-staged.yml +30 -35
- package/managed/raw/patches/nx@23.2.1.patch +3484 -0
- package/managed/raw/tooling/direnv/apple-developer.sh +83 -0
- package/managed/raw/tooling/direnv/developer-links.ts +607 -17
- package/managed/raw/tooling/direnv/devenv.smoo.nix +314 -92
- package/managed/raw/tooling/direnv/github-actions-bootstrap.sh +20 -11
- package/managed/raw/tooling/direnv/linked-snapshots.ts +845 -0
- package/managed/raw/tooling/direnv/nx-socket-dir.sh +82 -0
- package/managed/raw/tooling/direnv/repo-path +14 -2
- package/managed/raw/tooling/direnv/setup-environment.ts +1009 -118
- package/managed/raw/tooling/direnv/toolchain-stamp.ts +45 -3
- package/managed/raw/tooling/direnv/ttsc-env.sh +39 -0
- package/managed/raw/tooling/git-hooks/commit-msg.sh +5 -6
- package/managed/raw/tooling/git-hooks/pre-commit.sh +7 -6
- package/managed/raw/tooling/git-hooks/pre-push.sh +20 -15
- package/managed/templates/github/actions/cache-nix-devenv/action.yml +6 -6
- package/managed/templates/github/actions/cache-node-modules/action.yml +6 -4
- package/managed/templates/github/actions/cache-nx/action.yml +1 -1
- package/managed/templates/github/actions/cache-ttsc-plugins/action.yml +1 -1
- package/managed/templates/github/actions/forgejo-artifact.cjs +99 -0
- package/managed/templates/github/actions/forgejo-download-artifact/action.yml +49 -0
- package/managed/templates/github/actions/forgejo-download-artifact/index.cjs +7 -0
- package/managed/templates/github/actions/forgejo-upload-artifact/action.yml +65 -0
- package/managed/templates/github/actions/forgejo-upload-artifact/index.cjs +7 -0
- package/managed/templates/github/actions/setup-devenv/action.yml +21 -3
- package/managed/templates/github/workflows/managed-files.yml +1 -2
- package/nextest.toml +8 -75
- package/package.json +75 -13
- package/runtime-input.sh +81 -0
- package/src/__tests__/counted-cargo-process.ts +286 -0
- package/src/__tests__/counted-cargo.ts +730 -0
- package/src/__tests__/fixture-cargo-home.ts +36 -0
- package/src/__tests__/fixture-nx-env.ts +157 -2
- package/src/__tests__/progress-clock.ts +43 -0
- package/src/__tests__/runtime-input.ts +23 -0
- package/src/bin/smoo-nx-bound-failures.test.ts +127 -0
- package/src/bin/smoo-nx-bound-failures.ts +33 -0
- package/src/bin/smoo-nx-cargo-hash.ts +28 -3
- package/src/bin/smoo-nx-exec.ts +17 -86
- package/src/bin/smoo-nx-failures.ts +4 -0
- package/src/bin/smoo-nx-nextest-extract.ts +3 -2
- package/src/bin/smoo-nx-test-walks.ts +42 -0
- package/src/bounded-test-policy.test.ts +268 -22
- package/src/bounded-test-policy.ts +114 -42
- package/src/build-state-output-policy.test.ts +115 -0
- package/src/build-state-output-policy.ts +90 -0
- package/src/bun-bootstrap.test.ts +57 -3
- package/src/bun-file-packages.test.ts +47 -0
- package/src/cargo-closure-input.test.ts +432 -62
- package/src/cargo-closure-input.ts +51 -57
- package/src/cargo-dev-profile.ts +137 -0
- package/src/cargo-resolve-cache.test.ts +1044 -0
- package/src/cargo-source-hash.test.ts +203 -93
- package/src/cargo-source-hash.ts +762 -75
- package/src/cargo-toolchain-policy.ts +6 -0
- package/src/cargo-workspace.test.ts +320 -0
- package/src/cargo-workspace.ts +344 -18
- package/src/cross-check-policy.test.ts +59 -1
- package/src/cross-check-policy.ts +25 -6
- package/src/disk-command-policy.test.ts +61 -0
- package/src/disk-command-policy.ts +107 -0
- package/src/ensure-built-receipt.test.ts +184 -0
- package/src/ensure-built-receipt.ts +263 -0
- package/src/ensure-built-witness.test.ts +344 -0
- package/src/ensure-built-witness.ts +252 -0
- package/src/ensure-built.test.ts +1043 -483
- package/src/ensure-built.ts +870 -197
- package/src/eslint-file-set.ts +9 -0
- package/src/executors/bounded-exec/cpu-pool.test.ts +454 -0
- package/src/executors/bounded-exec/cpu-pool.ts +417 -0
- package/src/executors/bounded-exec/cpu-tokens.test.ts +269 -0
- package/src/executors/bounded-exec/cpu-tokens.ts +177 -0
- package/src/executors/bounded-exec/disk-lease.test.ts +185 -0
- package/src/executors/bounded-exec/disk-lease.ts +139 -0
- package/src/executors/bounded-exec/executor-host.test.ts +778 -0
- package/src/executors/bounded-exec/executor.test.ts +1116 -63
- package/src/executors/bounded-exec/executor.ts +565 -67
- package/src/executors/bounded-exec/gateway-lease.ts +176 -0
- package/src/executors/bounded-exec/hang-diagnostics.test.ts +285 -0
- package/src/executors/bounded-exec/hang-diagnostics.ts +283 -0
- package/src/executors/bounded-exec/progress.test.ts +79 -0
- package/src/executors/bounded-exec/progress.ts +118 -0
- package/src/executors/bounded-exec/ram-temp-fixtures.ts +12 -0
- package/src/executors/bounded-exec/ram-temp-held.test.ts +264 -0
- package/src/executors/bounded-exec/ram-temp-held.ts +242 -0
- package/src/executors/bounded-exec/ram-temp-host.test.ts +605 -0
- package/src/executors/bounded-exec/ram-temp.test.ts +674 -0
- package/src/executors/bounded-exec/ram-temp.ts +1918 -0
- package/src/executors/bounded-exec/schema.json +11 -5
- package/src/executors/bounded-exec/schema.ts +27 -11
- package/src/executors/bounded-exec/verdict.test.ts +440 -0
- package/src/executors/bounded-exec/verdict.ts +433 -0
- package/src/executors/shard-timings/executor.ts +36 -0
- package/src/executors/shard-timings/schema.json +21 -0
- package/src/executors/shard-timings/schema.ts +4 -0
- package/src/failure-summary.ts +119 -0
- package/src/generators/bounded-test-targets/generator.test.ts +4 -4
- package/src/generators/bun-test-tracing/generator.test.ts +2 -2
- package/src/generators/create-package/generator.test.ts +6 -0
- package/src/generators/create-package/generator.ts +6 -2
- package/src/host-controller-wiring.test.ts +31 -0
- package/src/index.test.ts +1070 -360
- package/src/index.ts +524 -255
- package/src/linked-snapshots.nx.test.ts +172 -0
- package/src/managed-assets.ts +12 -0
- package/src/managed-files/ci-workflow.ts +54 -13
- package/src/managed-files/files.ts +65 -9
- package/src/managed-files/forgejo-artifact.test.ts +395 -0
- package/src/managed-files/generator.test.ts +60 -1
- package/src/managed-files/json-edit.test.ts +216 -0
- package/src/managed-files/json-edit.ts +290 -0
- package/src/managed-files/managed-format-json.test.ts +308 -0
- package/src/managed-files/managed-format.ts +90 -2
- package/src/managed-files/pr-preview-cleanup-workflow.ts +69 -3
- package/src/managed-files/publish-workflow.ts +285 -67
- package/src/managed-files/repo-path.test.ts +129 -0
- package/src/managed-files/trace-db-artifact.test.ts +7 -0
- package/src/managed-files/tree.ts +11 -3
- package/src/manifest-hash.ts +3 -2
- package/src/nextest-code-bound.test.ts +155 -0
- package/src/nextest-code-bound.ts +195 -0
- package/src/nextest-extraction.test.ts +37 -5
- package/src/nextest-extraction.ts +51 -9
- package/src/nextest-partitions.test.ts +495 -0
- package/src/nx-cache-bound.test.ts +109 -0
- package/src/nx-cache-restore-mtime.test.ts +170 -0
- package/src/nx-daemon-claim.test.ts +277 -0
- package/src/nx-daemon-idle-cpu.test.ts +81 -0
- package/src/nx-daemon-idle-policy.test.ts +51 -0
- package/src/nx-daemon-ignore-files.test.ts +210 -0
- package/src/nx-daemon-root-normalization.test.ts +105 -0
- package/src/nx-daemon-validity.test.ts +925 -0
- package/src/nx-dot-input-policy.test.ts +353 -0
- package/src/nx-failure-life-cycles.test.ts +207 -0
- package/src/nx-files-archive-racy.test.ts +97 -0
- package/src/nx-foreign-workspace-env.test.ts +329 -0
- package/src/nx-incomplete-run-summary.test.ts +70 -0
- package/src/nx-plugin-load-errors.test.ts +120 -0
- package/src/nx-project-resolution-cache.test.ts +176 -0
- package/src/nx-raw-inputs.test.ts +166 -0
- package/src/nx-resident-graph-workers.test.ts +112 -0
- package/src/nx-run-information.test.ts +118 -0
- package/src/nx-skipped-task-exit.test.ts +180 -0
- package/src/nx-state-location.test.ts +63 -0
- package/src/nx-store-resolution.test.ts +99 -0
- package/src/nx-task-graph-cycles.test.ts +148 -0
- package/src/nx-task-output-lease.test.ts +414 -0
- package/src/nx-use-local.test.ts +103 -0
- package/src/package-target-policy.ts +3 -6
- package/src/release-config-policy.ts +3 -6
- package/src/runtime-input.test.ts +215 -0
- package/src/runtime-input.ts +17 -0
- package/src/rust-tokens.ts +78 -0
- package/src/serial-group-wiring.test.ts +326 -0
- package/src/task-history-namespace.test.ts +181 -0
- package/src/task-results.test.ts +226 -0
- package/src/task-results.ts +75 -0
- package/src/test-program.test.ts +303 -0
- package/src/test-program.ts +341 -0
- package/src/test-timings.test.ts +240 -0
- package/src/test-timings.ts +311 -0
- package/src/test-walk-policy.test.ts +585 -0
- package/src/test-walk-policy.ts +731 -0
- package/src/testing.test.ts +509 -0
- package/src/testing.ts +922 -0
- package/src/type-guards.ts +4 -0
- package/src/typecheck-test-policy.test.ts +496 -11
- package/src/typecheck-test-policy.ts +137 -103
- package/src/workspace-config-policy.test.ts +212 -13
- package/src/workspace-config-policy.ts +101 -73
- package/src/workspace-index.ts +18 -0
- package/src/workspace-manifest.ts +41 -1
- package/test-timings.json +85 -28
- package/managed/raw/tooling/direnv/inherited-devenv.ts +0 -615
- package/managed/raw/tooling/direnv/shared-caches.sh +0 -53
- package/src/__tests__/in-process-nx-index.ts +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-guards.d.ts","sourceRoot":"","sources":["../src/type-guards.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Tree } from 'nx/src/devkit-exports.js';
|
|
2
2
|
import type { ManagedFile } from './managed-files/tree.js';
|
|
3
|
+
import { type TestProgram } from './test-program.js';
|
|
3
4
|
import type { NxPolicyIssue } from './workspace-config-policy.js';
|
|
4
5
|
export type TestRunner = 'bun' | 'vitest';
|
|
5
6
|
/**
|
|
@@ -22,17 +23,19 @@ export declare function checkTsconfigTestReference(projectTsconfig: Record<strin
|
|
|
22
23
|
*/
|
|
23
24
|
export declare function applyTypecheckTestDefaults(tsconfigTest: Record<string, unknown>, options: {
|
|
24
25
|
testRunners: ReadonlySet<TestRunner>;
|
|
25
|
-
|
|
26
|
+
/** What the file extends when it names nothing. */
|
|
27
|
+
testExtends: string | string[];
|
|
26
28
|
libCompilerOptions?: Record<string, unknown>;
|
|
27
29
|
referencePaths: string[];
|
|
28
|
-
/**
|
|
30
|
+
/** Where the project's sources and tests are: the include is derived from it. */
|
|
31
|
+
program: TestProgram;
|
|
32
|
+
/** The file did not exist: a fresh program gets the globs of where the tests live. */
|
|
29
33
|
isNew?: boolean;
|
|
30
34
|
}): boolean;
|
|
31
35
|
/**
|
|
32
|
-
* Remove the ./tsconfig.test.json reference from a tsconfig.json object.
|
|
33
|
-
* Returns whether anything changed.
|
|
36
|
+
* Remove the ./tsconfig.test.json reference from a tsconfig.json object (in-memory mutation).
|
|
34
37
|
*/
|
|
35
|
-
export declare function removeTsconfigTestReference(projectTsconfig: Record<string, unknown>):
|
|
38
|
+
export declare function removeTsconfigTestReference(projectTsconfig: Record<string, unknown>): void;
|
|
36
39
|
/**
|
|
37
40
|
* Check all workspace packages for typecheck test policy compliance using an Nx Tree.
|
|
38
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typecheck-test-policy.d.ts","sourceRoot":"","sources":["../src/typecheck-test-policy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"typecheck-test-policy.d.ts","sourceRoot":"","sources":["../src/typecheck-test-policy.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAKrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAIL,KAAK,WAAW,EAGjB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAC;AAI1C;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5B,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvC,WAAW,CAAC,UAAU,CAAC,CAqDzB;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EAC5C,WAAW,EAAE,MAAM,GAClB,aAAa,EAAE,CAgDjB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EAC/C,WAAW,EAAE,MAAM,GAClB,aAAa,EAAE,CAYjB;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACrC,OAAO,EAAE;IACP,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IACrC,mDAAmD;IACnD,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7C,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,iFAAiF;IACjF,OAAO,EAAE,WAAW,CAAC;IACrB,sFAAsF;IACtF,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GACA,OAAO,CAiET;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAM1F;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,IAAI,GAAG,aAAa,EAAE,CA4CxE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,EAAE,CAiElE;AAiED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAuEtE"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as _assertGuard_1 from "typia/lib/internal/_assertGuard";
|
|
2
|
-
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
3
|
-
import { dirname, join, relative } from 'node:path';
|
|
4
|
-
import { getProjects, readJson, readProjectConfiguration } from 'nx/src/devkit-exports.js';
|
|
2
|
+
import { existsSync, readdirSync, readFileSync, statSync } from 'node:fs';
|
|
3
|
+
import { dirname, join, posix, relative } from 'node:path';
|
|
4
|
+
import { getProjects, parseJson, readJson, readProjectConfiguration } from 'nx/src/devkit-exports.js';
|
|
5
5
|
import typia from 'typia';
|
|
6
|
-
import {
|
|
6
|
+
import { editJsonText } from './managed-files/json-edit.js';
|
|
7
|
+
import { formatJsonWithBiome, jsonFileText } from './managed-files/managed-format.js';
|
|
8
|
+
import { includeGlobsFor, listTypeScriptSources, testProgramFault, } from './test-program.js';
|
|
9
|
+
import { isRecord } from './type-guards.js';
|
|
7
10
|
const workspaceDependencyFields = ['dependencies', 'devDependencies', 'peerDependencies', 'optionalDependencies'];
|
|
8
11
|
/**
|
|
9
12
|
* Detect test runners from a package.json object and optional project targets
|
|
@@ -131,7 +134,7 @@ export function checkTsconfigTestReference(projectTsconfig, packagePath) {
|
|
|
131
134
|
export function applyTypecheckTestDefaults(tsconfigTest, options) {
|
|
132
135
|
let changed = !Object.hasOwn(tsconfigTest, 'extends');
|
|
133
136
|
if (changed)
|
|
134
|
-
tsconfigTest.extends = options.
|
|
137
|
+
tsconfigTest.extends = options.testExtends;
|
|
135
138
|
const compilerOptions = getOrCreateRecord(tsconfigTest, 'compilerOptions');
|
|
136
139
|
// Fill from the lib tsconfig only what the test program has NOT declared. A
|
|
137
140
|
// test program that names its own `lib` is stating a fact the lib program
|
|
@@ -170,18 +173,13 @@ export function applyTypecheckTestDefaults(tsconfigTest, options) {
|
|
|
170
173
|
// A test program that declares no `include` inherits one from `extends`
|
|
171
174
|
// (a package keeping its suites in `test/` alongside src, tooling and
|
|
172
175
|
// scripts as one program). Minting `include` there REPLACES the inherited
|
|
173
|
-
// set with globs that match nothing, and a program of zero files passes
|
|
174
|
-
// gate by compiling nothing. Only a program that already declares
|
|
175
|
-
// or a new file, gets
|
|
176
|
+
// set with globs that may match nothing, and a program of zero files passes
|
|
177
|
+
// the gate by compiling nothing. Only a program that already declares
|
|
178
|
+
// `include`, or a new file, gets globs merged in, and they come from where
|
|
179
|
+
// the project's tests live (`includeGlobsFor`), not from a fixed `src/`.
|
|
176
180
|
if (options.isNew || Object.hasOwn(tsconfigTest, 'include')) {
|
|
177
181
|
changed =
|
|
178
|
-
mergeStringListProperty(tsconfigTest, 'include',
|
|
179
|
-
'src/**/*.test.ts',
|
|
180
|
-
'src/**/*.spec.ts',
|
|
181
|
-
'src/**/__tests__/**/*.ts',
|
|
182
|
-
'src/**/__tests__/**/*.tsx',
|
|
183
|
-
'src/test-suite-tracer.ts',
|
|
184
|
-
]) || changed;
|
|
182
|
+
mergeStringListProperty(tsconfigTest, 'include', includeGlobsFor(options.program, tsconfigTest, options.isNew === true)) || changed;
|
|
185
183
|
}
|
|
186
184
|
for (const referencePath of options.referencePaths) {
|
|
187
185
|
changed = addTsconfigReference(tsconfigTest, referencePath) || changed;
|
|
@@ -189,16 +187,14 @@ export function applyTypecheckTestDefaults(tsconfigTest, options) {
|
|
|
189
187
|
return changed;
|
|
190
188
|
}
|
|
191
189
|
/**
|
|
192
|
-
* Remove the ./tsconfig.test.json reference from a tsconfig.json object.
|
|
193
|
-
* Returns whether anything changed.
|
|
190
|
+
* Remove the ./tsconfig.test.json reference from a tsconfig.json object (in-memory mutation).
|
|
194
191
|
*/
|
|
195
192
|
export function removeTsconfigTestReference(projectTsconfig) {
|
|
196
193
|
if (!projectTsconfigHasTestReference(projectTsconfig)) {
|
|
197
|
-
return
|
|
194
|
+
return;
|
|
198
195
|
}
|
|
199
196
|
const references = Array.isArray(projectTsconfig.references) ? projectTsconfig.references : [];
|
|
200
197
|
projectTsconfig.references = references.filter((entry) => !isRecord(entry) || entry.path !== './tsconfig.test.json');
|
|
201
|
-
return true;
|
|
202
198
|
}
|
|
203
199
|
/**
|
|
204
200
|
* Check all workspace packages for typecheck test policy compliance using an Nx Tree.
|
|
@@ -230,6 +226,10 @@ export function checkTypecheckTestPolicyTree(tree) {
|
|
|
230
226
|
// Check tsconfig.test.json contents
|
|
231
227
|
const tsconfigTest = readJson(tree, tsconfigTestPath);
|
|
232
228
|
issues.push(...checkTypecheckTestConfig(tsconfigTest, config.root));
|
|
229
|
+
const fault = testProgramFault(treeProgram(tree, config.root), tsconfigTest);
|
|
230
|
+
if (fault !== null) {
|
|
231
|
+
issues.push({ path: tsconfigTestPath, message: testProgramFaultMessage(config.root, testRunners, fault) });
|
|
232
|
+
}
|
|
233
233
|
// Check tsconfig.json reference
|
|
234
234
|
const tsconfigPath = `${config.root}/tsconfig.json`;
|
|
235
235
|
if (tree.exists(tsconfigPath)) {
|
|
@@ -265,37 +265,96 @@ export function renderTypecheckTestFiles(tree) {
|
|
|
265
265
|
// Read lib tsconfig for extends and compiler options
|
|
266
266
|
const libTsconfigPath = `${config.root}/tsconfig.lib.json`;
|
|
267
267
|
const libTsconfig = tree.exists(libTsconfigPath) ? readJson(tree, libTsconfigPath) : null;
|
|
268
|
-
|
|
268
|
+
// The lib program's base, else the workspace tsconfig.base.json as reached
|
|
269
|
+
// from this project's root: one level up from `tooling`, two from `packages/app`.
|
|
270
|
+
const testExtends = tsconfigExtends(libTsconfig) ?? posix.relative(config.root, 'tsconfig.base.json');
|
|
269
271
|
const libCompilerOptions = libTsconfig ? recordProperty(libTsconfig, 'compilerOptions') : null;
|
|
270
272
|
// Collect reference paths
|
|
271
273
|
const referencePaths = collectReferencePathsTree(tree, config.root, pkg, workspacePackages);
|
|
272
|
-
const
|
|
274
|
+
const program = treeProgram(tree, config.root);
|
|
275
|
+
applyTypecheckTestDefaults(tsconfigTest, {
|
|
273
276
|
testRunners,
|
|
274
|
-
|
|
277
|
+
testExtends,
|
|
275
278
|
libCompilerOptions: libCompilerOptions ?? undefined,
|
|
276
279
|
referencePaths,
|
|
280
|
+
program,
|
|
277
281
|
isNew,
|
|
278
282
|
});
|
|
279
|
-
|
|
283
|
+
// A program that would select none of the project's tests is not written: it would typecheck
|
|
284
|
+
// nothing and pass. It does not block the rest of the update either; `smoo monorepo check`
|
|
285
|
+
// reports the project, and the next update writes the file once a test exists to select.
|
|
286
|
+
const fault = testProgramFault(program, tsconfigTest);
|
|
287
|
+
files.push(fault === null
|
|
288
|
+
? renderTsconfig(tree, tsconfigTestPath, tsconfigTest)
|
|
289
|
+
: {
|
|
290
|
+
target: tsconfigTestPath,
|
|
291
|
+
content: null,
|
|
292
|
+
skipReason: testProgramFaultMessage(config.root, testRunners, fault),
|
|
293
|
+
});
|
|
280
294
|
// Remove test reference from tsconfig.json
|
|
281
295
|
const tsconfigPath = `${config.root}/tsconfig.json`;
|
|
282
296
|
if (tree.exists(tsconfigPath)) {
|
|
283
297
|
const tsconfig = readJson(tree, tsconfigPath);
|
|
284
|
-
|
|
298
|
+
removeTsconfigTestReference(tsconfig);
|
|
299
|
+
files.push(renderTsconfig(tree, tsconfigPath, tsconfig));
|
|
285
300
|
}
|
|
286
301
|
}
|
|
287
302
|
return files;
|
|
288
303
|
}
|
|
289
|
-
|
|
304
|
+
/**
|
|
305
|
+
* The bytes a tsconfig the policy touches should have. A file that does not exist is rendered whole. One that does
|
|
306
|
+
* is edited where the policy changed it, so what its authors wrote beside those fields (the comments explaining why
|
|
307
|
+
* a program extends what it extends) survives, and is then laid out as the commit hook would leave it. A policy that
|
|
308
|
+
* changes nothing leaves the file's bytes alone.
|
|
309
|
+
*/
|
|
310
|
+
function renderTsconfig(tree, target, after) {
|
|
311
|
+
const path = join(tree.root, target);
|
|
290
312
|
const current = tree.read(target, 'utf8');
|
|
291
|
-
if (
|
|
292
|
-
return { target, content:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
313
|
+
if (current === null)
|
|
314
|
+
return { target, content: jsonFileText(path, after) };
|
|
315
|
+
let edited;
|
|
316
|
+
try {
|
|
317
|
+
edited = editJsonText(current, after);
|
|
318
|
+
}
|
|
319
|
+
catch (error) {
|
|
320
|
+
throw new Error(`${target}: the policy's change could not be applied to the existing file's text`, {
|
|
321
|
+
cause: error,
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
return { target, content: edited === current ? current : formatJsonWithBiome(path, edited) };
|
|
325
|
+
}
|
|
326
|
+
function treeProgram(tree, projectRoot) {
|
|
327
|
+
return {
|
|
328
|
+
projectRoot,
|
|
329
|
+
files: listTypeScriptSources(tree, projectRoot),
|
|
330
|
+
readConfig: (path) => (tree.exists(path) ? readJson(tree, path) : null),
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
function diskProgram(root, projectRoot) {
|
|
334
|
+
const disk = {
|
|
335
|
+
children: (directory) => readdirSync(join(root, directory)),
|
|
336
|
+
isFile: (path) => {
|
|
337
|
+
try {
|
|
338
|
+
return statSync(join(root, path)).isFile();
|
|
339
|
+
}
|
|
340
|
+
catch {
|
|
341
|
+
return false;
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
};
|
|
345
|
+
return {
|
|
346
|
+
projectRoot,
|
|
347
|
+
files: listTypeScriptSources(disk, projectRoot),
|
|
348
|
+
readConfig: (path) => readJsonObject(join(root, path)),
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
function testProgramFaultMessage(projectRoot, testRunners, fault) {
|
|
352
|
+
const selection = fault.kind === 'no-tests'
|
|
353
|
+
? 'matches no file (the project has no test file)'
|
|
354
|
+
: `matches no file of its tests (for example ${fault.tests[0]})`;
|
|
355
|
+
return (`${projectRoot}: tsconfig.test.json ${selection}, but the project has a ${formatTestRunnerList(testRunners)} target. ` +
|
|
356
|
+
'A test program that selects none of its tests typechecks nothing and still passes. ' +
|
|
357
|
+
'Tests are *.test.ts and *.spec.ts files (or files under __tests__/) under src/, or in a directory its include names.');
|
|
299
358
|
}
|
|
300
359
|
/**
|
|
301
360
|
* Check all workspace packages for typecheck test policy compliance.
|
|
@@ -338,17 +397,23 @@ export function checkTypecheckTestPolicy(root) {
|
|
|
338
397
|
if (tsconfig) {
|
|
339
398
|
const absoluteIssues = checkTypecheckTestConfig(tsconfig, join(root, packagePath));
|
|
340
399
|
issues.push(...absoluteIssues);
|
|
400
|
+
const program = diskProgram(root, packagePath);
|
|
401
|
+
const fault = testProgramFault(program, tsconfig);
|
|
402
|
+
if (fault !== null) {
|
|
403
|
+
issues.push({ path: tsconfigTestPath, message: testProgramFaultMessage(packagePath, testRunners, fault) });
|
|
404
|
+
}
|
|
341
405
|
if (absoluteIssues.length === 0) {
|
|
342
406
|
const libTsconfig = readJsonObject(join(root, packagePath, 'tsconfig.lib.json'));
|
|
343
|
-
const
|
|
407
|
+
const testExtends = tsconfigExtends(libTsconfig) ?? posix.relative(packagePath, 'tsconfig.base.json');
|
|
344
408
|
const libCompilerOptions = libTsconfig ? recordProperty(libTsconfig, 'compilerOptions') : null;
|
|
345
409
|
const referencePaths = collectTsconfigTestReferencePaths(root, packagePath, pkg, workspaceNames);
|
|
346
410
|
const normalized = structuredClone(tsconfig);
|
|
347
411
|
if (applyTypecheckTestDefaults(normalized, {
|
|
348
412
|
testRunners,
|
|
349
|
-
|
|
413
|
+
testExtends,
|
|
350
414
|
libCompilerOptions: libCompilerOptions ?? undefined,
|
|
351
415
|
referencePaths,
|
|
416
|
+
program,
|
|
352
417
|
})) {
|
|
353
418
|
issues.push({
|
|
354
419
|
path: tsconfigTestPath,
|
|
@@ -481,6 +546,13 @@ function listWorkspacePackageJsonPaths(root) {
|
|
|
481
546
|
: [];
|
|
482
547
|
const paths = [];
|
|
483
548
|
for (const pattern of workspacePatterns) {
|
|
549
|
+
if (!pattern.includes('*')) {
|
|
550
|
+
// A workspace named by path (`tooling`) is a package like any `packages/*` member.
|
|
551
|
+
const packageJsonPath = join(root, pattern, 'package.json');
|
|
552
|
+
if (existsSync(packageJsonPath))
|
|
553
|
+
paths.push(packageJsonPath);
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
484
556
|
if (!pattern.endsWith('/*')) {
|
|
485
557
|
continue;
|
|
486
558
|
}
|
|
@@ -558,21 +630,18 @@ function collectTsconfigTestReferencePaths(root, packagePath, pkg, workspaceName
|
|
|
558
630
|
return paths;
|
|
559
631
|
}
|
|
560
632
|
/**
|
|
561
|
-
* Read a tsconfig or package.json. tsconfig files are JSONC — TypeScript
|
|
562
|
-
*
|
|
563
|
-
*
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
* disappeared on the next update. Comments are stripped for parsing only;
|
|
567
|
-
* renderTsconfig refuses a policy repair that would discard them.
|
|
633
|
+
* Read a tsconfig or package.json. tsconfig files are JSONC — TypeScript permits comments and trailing commas — so a
|
|
634
|
+
* plain `JSON.parse` fails on a documented one. Returning null there meant "file absent", and the caller regenerated
|
|
635
|
+
* it from scratch: a `lib` the test program declared, an `exclude`, an extra `include` glob and every comment
|
|
636
|
+
* explaining them disappeared on the next update. The text is parsed as JSONC; `renderTsconfig` edits the text, so
|
|
637
|
+
* what was parsed past is not lost.
|
|
568
638
|
*/
|
|
569
639
|
function readJsonObject(path) {
|
|
570
640
|
if (!existsSync(path)) {
|
|
571
641
|
return null;
|
|
572
642
|
}
|
|
573
|
-
const text = readFileSync(path, 'utf8');
|
|
574
643
|
try {
|
|
575
|
-
const parsed =
|
|
644
|
+
const parsed = parseJson(readFileSync(path, 'utf8'));
|
|
576
645
|
return isRecord(parsed) ? parsed : null;
|
|
577
646
|
}
|
|
578
647
|
catch (error) {
|
|
@@ -581,62 +650,6 @@ function readJsonObject(path) {
|
|
|
581
650
|
throw new Error(`${path} is not valid JSON/JSONC: ${error instanceof Error ? error.message : String(error)}`);
|
|
582
651
|
}
|
|
583
652
|
}
|
|
584
|
-
/** Whether the file carries comments a rewrite would destroy. */
|
|
585
|
-
function hasJsonComments(text) {
|
|
586
|
-
return stripJsonComments(text) !== text;
|
|
587
|
-
}
|
|
588
|
-
/**
|
|
589
|
-
* Remove `//` and block comments outside string literals, and trailing commas.
|
|
590
|
-
* Small on purpose: the alternative is a JSONC dependency in a plugin whose
|
|
591
|
-
* only JSONC inputs are tsconfig files.
|
|
592
|
-
*/
|
|
593
|
-
function stripJsonComments(text) {
|
|
594
|
-
let output = '';
|
|
595
|
-
let inString = false;
|
|
596
|
-
let escaped = false;
|
|
597
|
-
let index = 0;
|
|
598
|
-
while (index < text.length) {
|
|
599
|
-
const char = text[index];
|
|
600
|
-
if (inString) {
|
|
601
|
-
output += char;
|
|
602
|
-
if (escaped) {
|
|
603
|
-
escaped = false;
|
|
604
|
-
}
|
|
605
|
-
else if (char === '\\') {
|
|
606
|
-
escaped = true;
|
|
607
|
-
}
|
|
608
|
-
else if (char === '"') {
|
|
609
|
-
inString = false;
|
|
610
|
-
}
|
|
611
|
-
index += 1;
|
|
612
|
-
continue;
|
|
613
|
-
}
|
|
614
|
-
if (char === '"') {
|
|
615
|
-
inString = true;
|
|
616
|
-
output += char;
|
|
617
|
-
index += 1;
|
|
618
|
-
continue;
|
|
619
|
-
}
|
|
620
|
-
if (char === '/' && text[index + 1] === '/') {
|
|
621
|
-
while (index < text.length && text[index] !== '\n')
|
|
622
|
-
index += 1;
|
|
623
|
-
continue;
|
|
624
|
-
}
|
|
625
|
-
if (char === '/' && text[index + 1] === '*') {
|
|
626
|
-
index += 2;
|
|
627
|
-
while (index < text.length && !(text[index] === '*' && text[index + 1] === '/'))
|
|
628
|
-
index += 1;
|
|
629
|
-
index += 2;
|
|
630
|
-
continue;
|
|
631
|
-
}
|
|
632
|
-
output += char;
|
|
633
|
-
index += 1;
|
|
634
|
-
}
|
|
635
|
-
return output.replace(/,(\s*[}\]])/g, '$1');
|
|
636
|
-
}
|
|
637
|
-
function isRecord(value) {
|
|
638
|
-
return value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
639
|
-
}
|
|
640
653
|
/** TypeScript 5 accepts ordered base-config arrays as well as a single base. */
|
|
641
654
|
function tsconfigExtends(config) {
|
|
642
655
|
return (() => {
|
|
@@ -27,6 +27,14 @@ export declare function isBuildOutputTargetName(name: string): boolean;
|
|
|
27
27
|
* test suite into `build`, so the rule is the CLASS, not one namespace.
|
|
28
28
|
*/
|
|
29
29
|
export declare function isTestRunnerTargetName(name: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Every checkout keeps its Nx state in its own `.nx` (specs/cowshed/16_build_volumes.md, "Every checkout has exactly
|
|
32
|
+
* one Nx state"). With no `NX_*_DIRECTORY` set, as in a host shell, the pinned Nx 23.2.1 otherwise moves the task cache
|
|
33
|
+
* and its database to a per-user `~/.nx/<id>` keyed by the repository's remote (`utils/cache-directory.js`,
|
|
34
|
+
* `computeSharedDataLocation`), shared by every checkout of the repository. A configured `cacheDirectory` keeps both
|
|
35
|
+
* local: the cache here, the task database in Nx's default `.nx/workspace-data`. nx.json has no key for the latter.
|
|
36
|
+
*/
|
|
37
|
+
export declare const CHECKOUT_NX_CACHE_DIRECTORY = ".nx/cache";
|
|
30
38
|
/**
|
|
31
39
|
* Check workspace config policy on an in-memory nx.json object.
|
|
32
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-config-policy.d.ts","sourceRoot":"","sources":["../src/workspace-config-policy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workspace-config-policy.d.ts","sourceRoot":"","sources":["../src/workspace-config-policy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAOrD,eAAO,MAAM,4BAA4B,0CAA0C,CAAC;AAGpF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,yBAAyB,YACpC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,EACP,WAAW,EACX,UAAU,EACV,QAAQ,EACR,OAAO,EACP,QAAQ,CACA,CAAC;AAEX,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAI/B;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI5D;AAuBD;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,cAAc,CAAC;AAEvD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,aAAa,EAAE,CA4ErF;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CA0B7E;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,aAAa,EAAE,CAKpE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAQ5D;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAYxE;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAWhE"}
|