@ykdz/template 0.0.35 → 0.0.37
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/application.d.ts +131 -14
- package/dist/application.js +307 -206
- package/dist/command-result.d.ts +9 -0
- package/dist/command-result.js +231 -0
- package/dist/main.d.ts +4 -1
- package/dist/main.js +321 -49
- package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.d.ts +159 -45
- package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.js +2816 -535
- package/node_modules/@ykdz/template-builtin-presets/dist/src/generation-record.d.ts +39 -0
- package/node_modules/@ykdz/template-builtin-presets/dist/src/generation-record.js +178 -0
- package/node_modules/@ykdz/template-builtin-presets/dist/src/index.d.ts +2 -2
- package/node_modules/@ykdz/template-builtin-presets/dist/src/index.js +1 -1
- package/node_modules/@ykdz/template-builtin-presets/dist/src/rust-bin/definition.d.ts +31 -2
- package/node_modules/@ykdz/template-builtin-presets/dist/src/rust-bin/definition.js +44 -47
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/development-container.d.ts +1 -1
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/development-container.js +1 -1
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/typescript.d.ts +10 -7
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/typescript.js +11 -7
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.d.ts +6 -4
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.js +8 -7
- package/node_modules/@ykdz/template-builtin-presets/dist/src/template-sources.d.ts +1 -1
- package/node_modules/@ykdz/template-builtin-presets/dist/src/template-sources.js +1 -1
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-cli/definition.d.ts +31 -2
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-cli/definition.js +111 -64
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-lib/definition.d.ts +31 -2
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-lib/definition.js +37 -29
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.d.ts +48 -2
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.js +203 -155
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-app/definition.d.ts +26 -2
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-app/definition.js +21 -9
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-hono-app/definition.d.ts +22 -2
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-hono-app/definition.js +48 -38
- package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/bin/semver.js +0 -0
- package/node_modules/{valibot → @ykdz/template-builtin-presets/node_modules/valibot}/README.md +1 -1
- package/node_modules/{valibot → @ykdz/template-builtin-presets/node_modules/valibot}/dist/index.cjs +427 -504
- package/node_modules/{valibot → @ykdz/template-builtin-presets/node_modules/valibot}/dist/index.d.cts +427 -32
- package/node_modules/{valibot → @ykdz/template-builtin-presets/node_modules/valibot}/dist/index.d.mts +427 -32
- package/node_modules/@ykdz/template-builtin-presets/node_modules/valibot/dist/index.min.cjs +2 -0
- package/node_modules/@ykdz/template-builtin-presets/node_modules/valibot/dist/index.min.mjs +2 -0
- package/node_modules/{valibot → @ykdz/template-builtin-presets/node_modules/valibot}/dist/index.mjs +418 -504
- package/node_modules/{valibot → @ykdz/template-builtin-presets/node_modules/valibot}/package.json +7 -2
- package/node_modules/@ykdz/template-builtin-presets/package.json +30 -16
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-deployment-diagnostics.yml +5 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-deployment.yml +4 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-diagnostics.yml +4 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check.yml +3 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.pnpmfile.mjs +19 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/AGENTS.md.template +11 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/devcontainer.json +1 -2
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.dynamic.txt +1 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.yaml +5 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/check-toolchain-versions.ts +556 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/tsconfig.json +4 -6
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/tsconfig.packing-hook.json +7 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo.json +1 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/turbo.json +19 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/devcontainer/node-pnpm.Dockerfile +4 -6
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/oxc/tsconfig.config.json +2 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.app.json +1 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.node.json +2 -2
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/CHANGELOG.md.template +17 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/RELEASING.md +17 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/artifact.ts +1271 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/changelog.ts +283 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/check-artifact.ts +99 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/check-readiness.ts +66 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/cli-command-identity.ts +4 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/handoff.ts +450 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/publish.ts +483 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/readiness.ts +1146 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/release.ts +819 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/release.yml +119 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/root-tsconfig.json +8 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/tsconfig.json +4 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/turbo.json +6 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/README.md +48 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/CHANGELOG.md.template +17 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/LICENSE-APACHE-2.0.txt +202 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/LICENSE-MIT.txt +21 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/README.md.template +5 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/bridge.ts +3336 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/setup.sh +221 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/cli-command-identity.ts +133 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/cli.ts +4 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/main.ts +5 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/integration/command.test.ts +14 -13
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/unit/cli-command-identity.test.ts +76 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/tsconfig.build.json +2 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/tsconfig.json +2 -2
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/tsconfig.build.json +2 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/tsconfig.json +2 -2
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/scripts/reset.ts +3 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/src/db.ts +3 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/src/readiness.ts +6 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/src/storage.ts +93 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/tsconfig.build.json +8 -2
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/tsconfig.json +3 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/turbo.json +1 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/drizzle.config.ts +5 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/tsconfig.build.json +2 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/tsconfig.json +2 -2
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/.env.example +2 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/Dockerfile +25 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/Dockerfile.dockerignore +4 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/playwright.config.ts +5 -25
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/check-standalone-deployment.ts +17 -15
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/test/playwright-teardown.ts +6 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.app.json +1 -2
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.json +0 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.node.json +2 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.test.json +0 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/turbo.json +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/vite.config.ts +3 -39
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/tsconfig.json +7 -2
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/playwright.config.ts +34 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/{web → root}/test/e2e/app.spec.ts +3 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/test/e2e/fixtures.ts +15 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/tsconfig.json +3 -0
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/src/api.ts +1 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/turbo.json +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/vite.config.ts +2 -0
- package/node_modules/@ykdz/template-core/dist/ci-diagnostic-artifact.d.ts +2 -2
- package/node_modules/@ykdz/template-core/dist/ci-diagnostic-artifact.js +10 -5
- package/node_modules/@ykdz/template-core/dist/module-graph.d.ts +16 -54
- package/node_modules/@ykdz/template-core/dist/module-graph.js +140 -105
- package/node_modules/@ykdz/template-core/dist/package-contribution.d.ts +47 -11
- package/node_modules/@ykdz/template-core/dist/package-contribution.js +92 -0
- package/node_modules/@ykdz/template-core/dist/pnpm-workspace.yaml +21 -16
- package/node_modules/@ykdz/template-core/dist/preset-definition.d.ts +82 -13
- package/node_modules/@ykdz/template-core/dist/preset-definition.js +16 -1
- package/node_modules/@ykdz/template-core/dist/project-blueprint.d.ts +56 -0
- package/node_modules/@ykdz/template-core/dist/project-blueprint.js +271 -0
- package/node_modules/@ykdz/template-core/dist/project-github.d.ts +6 -4
- package/node_modules/@ykdz/template-core/dist/project-github.js +4 -4
- package/node_modules/@ykdz/template-core/dist/project-linking-v2.d.ts +4 -4
- package/node_modules/@ykdz/template-core/dist/project-linking-v2.js +14 -8
- package/node_modules/@ykdz/template-core/dist/project-projection.d.ts +29 -1
- package/node_modules/@ykdz/template-core/dist/project-projection.js +501 -29
- package/node_modules/@ykdz/template-core/dist/release-toolchain-snapshot.d.ts +10 -0
- package/node_modules/@ykdz/template-core/dist/release-toolchain-snapshot.js +9 -0
- package/node_modules/@ykdz/template-core/dist/renderer.d.ts +0 -2
- package/node_modules/@ykdz/template-core/dist/renderer.js +17 -38
- package/node_modules/@ykdz/template-core/dist/template-boundary-check.d.ts +2 -2
- package/node_modules/@ykdz/template-core/dist/template-boundary-check.js +21 -9
- package/node_modules/@ykdz/template-core/node_modules/valibot/LICENSE.md +9 -0
- package/node_modules/@ykdz/template-core/node_modules/valibot/README.md +94 -0
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.cjs +7897 -0
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.d.cts +16579 -0
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.d.mts +16579 -0
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.min.cjs +2 -0
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.min.mjs +2 -0
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.mjs +7577 -0
- package/node_modules/@ykdz/template-core/node_modules/valibot/package.json +84 -0
- package/node_modules/@ykdz/template-core/package.json +0 -2
- package/node_modules/hosted-git-info/LICENSE +13 -0
- package/node_modules/hosted-git-info/README.md +138 -0
- package/node_modules/hosted-git-info/lib/from-url.js +122 -0
- package/node_modules/hosted-git-info/lib/hosts.js +229 -0
- package/node_modules/hosted-git-info/lib/index.js +227 -0
- package/node_modules/hosted-git-info/lib/parse-url.js +79 -0
- package/node_modules/hosted-git-info/package.json +57 -0
- package/node_modules/jsonc-parser/CHANGELOG.md +76 -0
- package/node_modules/jsonc-parser/LICENSE.md +21 -0
- package/node_modules/jsonc-parser/README.md +364 -0
- package/node_modules/jsonc-parser/SECURITY.md +41 -0
- package/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
- package/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
- package/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
- package/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
- package/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
- package/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
- package/node_modules/jsonc-parser/lib/esm/main.js +178 -0
- package/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
- package/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
- package/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
- package/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
- package/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
- package/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
- package/node_modules/jsonc-parser/lib/umd/main.js +194 -0
- package/node_modules/jsonc-parser/package.json +37 -0
- package/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/lru-cache/README.md +469 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/browser/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/browser/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.cjs.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/commonjs/node/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/node/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
- package/node_modules/lru-cache/dist/commonjs/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel-browser.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/browser/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/browser/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/browser/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/browser/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.mjs.map +1 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel-node.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/node/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/node/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/lru-cache/dist/esm/node/index.min.js.map +7 -0
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/node/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/node/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/lru-cache/dist/esm/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/perf.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel-react-native.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.d.ts +5 -0
- package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts +1400 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
- package/node_modules/lru-cache/dist/esm/react-native/index.js.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts +12 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.d.ts.map +1 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
- package/node_modules/lru-cache/dist/esm/react-native/perf.js.map +1 -0
- package/node_modules/lru-cache/package.json +180 -0
- package/node_modules/npm-package-arg/LICENSE +15 -0
- package/node_modules/npm-package-arg/README.md +104 -0
- package/node_modules/npm-package-arg/lib/npa.js +479 -0
- package/node_modules/npm-package-arg/node_modules/semver/LICENSE +15 -0
- package/node_modules/npm-package-arg/node_modules/semver/README.md +680 -0
- package/node_modules/npm-package-arg/node_modules/semver/bin/semver.js +195 -0
- package/node_modules/npm-package-arg/node_modules/semver/classes/comparator.js +143 -0
- package/node_modules/npm-package-arg/node_modules/semver/classes/index.js +7 -0
- package/node_modules/npm-package-arg/node_modules/semver/classes/range.js +577 -0
- package/node_modules/npm-package-arg/node_modules/semver/classes/semver.js +350 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/clean.js +8 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/cmp.js +54 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/coerce.js +62 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare-build.js +9 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare-loose.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare.js +7 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/diff.js +60 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/eq.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/gt.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/gte.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/inc.js +21 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/lt.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/lte.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/major.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/minor.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/neq.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/parse.js +18 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/patch.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/prerelease.js +8 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/rcompare.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/rsort.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/satisfies.js +12 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/sort.js +5 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/npm-package-arg/node_modules/semver/functions/valid.js +8 -0
- package/node_modules/npm-package-arg/node_modules/semver/index.js +93 -0
- package/node_modules/npm-package-arg/node_modules/semver/internal/constants.js +37 -0
- package/node_modules/npm-package-arg/node_modules/semver/internal/debug.js +11 -0
- package/node_modules/npm-package-arg/node_modules/semver/internal/identifiers.js +29 -0
- package/node_modules/npm-package-arg/node_modules/semver/internal/lrucache.js +42 -0
- package/node_modules/npm-package-arg/node_modules/semver/internal/parse-options.js +17 -0
- package/node_modules/npm-package-arg/node_modules/semver/internal/re.js +223 -0
- package/node_modules/npm-package-arg/node_modules/semver/package.json +78 -0
- package/node_modules/npm-package-arg/node_modules/semver/preload.js +4 -0
- package/node_modules/npm-package-arg/node_modules/semver/range.bnf +17 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/gtr.js +6 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/intersects.js +9 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/ltr.js +6 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/min-version.js +63 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/outside.js +82 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/simplify.js +49 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/subset.js +249 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/to-comparators.js +10 -0
- package/node_modules/npm-package-arg/node_modules/semver/ranges/valid.js +13 -0
- package/node_modules/npm-package-arg/package.json +60 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +743 -0
- package/node_modules/picomatch/index.js +17 -0
- package/node_modules/picomatch/lib/constants.js +184 -0
- package/node_modules/picomatch/lib/parse.js +1425 -0
- package/node_modules/picomatch/lib/picomatch.js +361 -0
- package/node_modules/picomatch/lib/scan.js +403 -0
- package/node_modules/picomatch/lib/utils.js +72 -0
- package/node_modules/picomatch/package.json +83 -0
- package/node_modules/picomatch/posix.js +3 -0
- package/node_modules/proc-log/LICENSE +15 -0
- package/node_modules/proc-log/README.md +226 -0
- package/node_modules/proc-log/lib/index.js +158 -0
- package/node_modules/proc-log/package.json +46 -0
- package/node_modules/smol-toml/LICENSE +24 -0
- package/node_modules/smol-toml/README.md +605 -0
- package/node_modules/smol-toml/dist/date.d.ts +41 -0
- package/node_modules/smol-toml/dist/date.js +156 -0
- package/node_modules/smol-toml/dist/error.d.ts +37 -0
- package/node_modules/smol-toml/dist/error.js +67 -0
- package/node_modules/smol-toml/dist/extract.js +289 -0
- package/node_modules/smol-toml/dist/index.cjs +770 -0
- package/node_modules/smol-toml/dist/index.d.ts +44 -0
- package/node_modules/smol-toml/dist/index.js +34 -0
- package/node_modules/smol-toml/dist/parse.d.ts +73 -0
- package/node_modules/smol-toml/dist/parse.js +164 -0
- package/node_modules/smol-toml/dist/primitive.js +151 -0
- package/node_modules/smol-toml/dist/stringify.d.ts +32 -0
- package/node_modules/smol-toml/dist/stringify.js +219 -0
- package/node_modules/smol-toml/dist/struct.js +156 -0
- package/node_modules/smol-toml/dist/util.d.ts +43 -0
- package/node_modules/smol-toml/dist/util.js +57 -0
- package/node_modules/smol-toml/package.json +68 -0
- package/node_modules/typescript/bin/tsc +0 -0
- package/node_modules/typescript/bin/tsserver +0 -0
- package/node_modules/unbash/LICENSE +15 -0
- package/node_modules/unbash/README.md +289 -0
- package/node_modules/unbash/dist/ansi-c.d.ts +5 -0
- package/node_modules/unbash/dist/ansi-c.js +130 -0
- package/node_modules/unbash/dist/arithmetic.d.ts +11 -0
- package/node_modules/unbash/dist/arithmetic.js +530 -0
- package/node_modules/unbash/dist/assignment.d.ts +15 -0
- package/node_modules/unbash/dist/assignment.js +118 -0
- package/node_modules/unbash/dist/chars.d.ts +41 -0
- package/node_modules/unbash/dist/chars.js +41 -0
- package/node_modules/unbash/dist/command.d.ts +14 -0
- package/node_modules/unbash/dist/command.js +41 -0
- package/node_modules/unbash/dist/heredoc.d.ts +18 -0
- package/node_modules/unbash/dist/heredoc.js +25 -0
- package/node_modules/unbash/dist/internal-types.d.ts +87 -0
- package/node_modules/unbash/dist/internal-types.js +1 -0
- package/node_modules/unbash/dist/lexer.d.ts +202 -0
- package/node_modules/unbash/dist/lexer.js +3930 -0
- package/node_modules/unbash/dist/parser.d.ts +4 -0
- package/node_modules/unbash/dist/parser.js +1295 -0
- package/node_modules/unbash/dist/parts.d.ts +17 -0
- package/node_modules/unbash/dist/parts.js +82 -0
- package/node_modules/unbash/dist/printer.d.ts +2 -0
- package/node_modules/unbash/dist/printer.js +536 -0
- package/node_modules/unbash/dist/types.d.ts +494 -0
- package/node_modules/unbash/dist/types.js +1 -0
- package/node_modules/unbash/dist/word.d.ts +22 -0
- package/node_modules/unbash/dist/word.js +102 -0
- package/node_modules/unbash/package.json +80 -0
- package/node_modules/validate-npm-package-name/LICENSE +6 -0
- package/node_modules/validate-npm-package-name/README.md +120 -0
- package/node_modules/validate-npm-package-name/lib/builtin-modules.json +1 -0
- package/node_modules/validate-npm-package-name/lib/index.js +114 -0
- package/node_modules/validate-npm-package-name/package.json +59 -0
- package/node_modules/yaml/LICENSE +13 -0
- package/node_modules/yaml/README.md +172 -0
- package/node_modules/yaml/bin.mjs +11 -0
- package/node_modules/yaml/browser/dist/compose/compose-collection.js +88 -0
- package/node_modules/yaml/browser/dist/compose/compose-doc.js +43 -0
- package/node_modules/yaml/browser/dist/compose/compose-node.js +109 -0
- package/node_modules/yaml/browser/dist/compose/compose-scalar.js +86 -0
- package/node_modules/yaml/browser/dist/compose/composer.js +219 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-map.js +115 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +198 -0
- package/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +49 -0
- package/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +207 -0
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +226 -0
- package/node_modules/yaml/browser/dist/compose/resolve-props.js +146 -0
- package/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +26 -0
- package/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/node_modules/yaml/browser/dist/compose/util-map-includes.js +13 -0
- package/node_modules/yaml/browser/dist/doc/Document.js +335 -0
- package/node_modules/yaml/browser/dist/doc/anchors.js +71 -0
- package/node_modules/yaml/browser/dist/doc/applyReviver.js +55 -0
- package/node_modules/yaml/browser/dist/doc/createNode.js +88 -0
- package/node_modules/yaml/browser/dist/doc/directives.js +176 -0
- package/node_modules/yaml/browser/dist/errors.js +57 -0
- package/node_modules/yaml/browser/dist/index.js +17 -0
- package/node_modules/yaml/browser/dist/log.js +11 -0
- package/node_modules/yaml/browser/dist/nodes/Alias.js +118 -0
- package/node_modules/yaml/browser/dist/nodes/Collection.js +147 -0
- package/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +63 -0
- package/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/node_modules/yaml/browser/dist/parse/lexer.js +721 -0
- package/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/node_modules/yaml/browser/dist/parse/parser.js +975 -0
- package/node_modules/yaml/browser/dist/public-api.js +102 -0
- package/node_modules/yaml/browser/dist/schema/Schema.js +37 -0
- package/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/node_modules/yaml/browser/dist/schema/tags.js +96 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +58 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js +67 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +39 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +146 -0
- package/node_modules/yaml/browser/dist/stringify/stringify.js +129 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +153 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +25 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/node_modules/yaml/browser/dist/stringify/stringifyString.js +336 -0
- package/node_modules/yaml/browser/dist/util.js +11 -0
- package/node_modules/yaml/browser/dist/visit.js +233 -0
- package/node_modules/yaml/browser/index.js +5 -0
- package/node_modules/yaml/browser/package.json +3 -0
- package/node_modules/yaml/dist/cli.d.ts +8 -0
- package/node_modules/yaml/dist/cli.mjs +201 -0
- package/node_modules/yaml/dist/compose/compose-collection.d.ts +11 -0
- package/node_modules/yaml/dist/compose/compose-collection.js +90 -0
- package/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/node_modules/yaml/dist/compose/compose-doc.js +45 -0
- package/node_modules/yaml/dist/compose/compose-node.d.ts +29 -0
- package/node_modules/yaml/dist/compose/compose-node.js +112 -0
- package/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/node_modules/yaml/dist/compose/compose-scalar.js +88 -0
- package/node_modules/yaml/dist/compose/composer.d.ts +63 -0
- package/node_modules/yaml/dist/compose/composer.js +224 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-map.js +117 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +11 -0
- package/node_modules/yaml/dist/compose/resolve-block-scalar.js +200 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-block-seq.js +51 -0
- package/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/node_modules/yaml/dist/compose/resolve-flow-collection.js +209 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +228 -0
- package/node_modules/yaml/dist/compose/resolve-props.d.ts +23 -0
- package/node_modules/yaml/dist/compose/resolve-props.js +148 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/node_modules/yaml/dist/compose/util-empty-scalar-position.js +28 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/node_modules/yaml/dist/compose/util-map-includes.js +15 -0
- package/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/node_modules/yaml/dist/doc/Document.js +337 -0
- package/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/node_modules/yaml/dist/doc/anchors.js +76 -0
- package/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/node_modules/yaml/dist/doc/applyReviver.js +57 -0
- package/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/node_modules/yaml/dist/doc/createNode.js +90 -0
- package/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/node_modules/yaml/dist/doc/directives.js +178 -0
- package/node_modules/yaml/dist/errors.d.ts +21 -0
- package/node_modules/yaml/dist/errors.js +62 -0
- package/node_modules/yaml/dist/index.d.ts +25 -0
- package/node_modules/yaml/dist/index.js +50 -0
- package/node_modules/yaml/dist/log.d.ts +3 -0
- package/node_modules/yaml/dist/log.js +19 -0
- package/node_modules/yaml/dist/nodes/Alias.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/Alias.js +120 -0
- package/node_modules/yaml/dist/nodes/Collection.d.ts +73 -0
- package/node_modules/yaml/dist/nodes/Collection.js +151 -0
- package/node_modules/yaml/dist/nodes/Node.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/node_modules/yaml/dist/nodes/Pair.d.ts +22 -0
- package/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/node_modules/yaml/dist/nodes/Scalar.d.ts +47 -0
- package/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/node_modules/yaml/dist/nodes/addPairToJSMap.js +65 -0
- package/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/node_modules/yaml/dist/nodes/toJS.d.ts +29 -0
- package/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/node_modules/yaml/dist/options.d.ts +350 -0
- package/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/node_modules/yaml/dist/parse/cst.d.ts +109 -0
- package/node_modules/yaml/dist/parse/cst.js +112 -0
- package/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/node_modules/yaml/dist/parse/lexer.js +723 -0
- package/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/node_modules/yaml/dist/parse/parser.js +980 -0
- package/node_modules/yaml/dist/public-api.d.ts +44 -0
- package/node_modules/yaml/dist/public-api.js +107 -0
- package/node_modules/yaml/dist/schema/Schema.d.ts +17 -0
- package/node_modules/yaml/dist/schema/Schema.js +39 -0
- package/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/node_modules/yaml/dist/schema/tags.d.ts +48 -0
- package/node_modules/yaml/dist/schema/tags.js +99 -0
- package/node_modules/yaml/dist/schema/types.d.ts +92 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/binary.js +70 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.d.ts +9 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/merge.js +71 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +22 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/schema.js +41 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/node_modules/yaml/dist/stringify/foldFlowLines.js +151 -0
- package/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/node_modules/yaml/dist/stringify/stringify.js +132 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/node_modules/yaml/dist/stringify/stringifyCollection.js +155 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/node_modules/yaml/dist/stringify/stringifyNumber.js +27 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/node_modules/yaml/dist/stringify/stringifyString.js +338 -0
- package/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/node_modules/yaml/dist/test-events.js +134 -0
- package/node_modules/yaml/dist/util.d.ts +16 -0
- package/node_modules/yaml/dist/util.js +28 -0
- package/node_modules/yaml/dist/visit.d.ts +102 -0
- package/node_modules/yaml/dist/visit.js +236 -0
- package/node_modules/yaml/package.json +97 -0
- package/node_modules/yaml/util.js +2 -0
- package/package.json +23 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/check-boundaries.ts +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/run-root-owned-task.ts +0 -69
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/test/global-setup.ts +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/vitest.config.ts +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/playwright.config.ts +0 -90
- package/node_modules/@ykdz/template-core/dist/project-blueprint-v2.d.ts +0 -33
- package/node_modules/@ykdz/template-core/dist/project-blueprint-v2.js +0 -182
- package/node_modules/@ykdz/template-core/dist/toolchain-baseline-update.d.ts +0 -45
- package/node_modules/@ykdz/template-core/dist/toolchain-baseline-update.js +0 -27
- package/node_modules/@ykdz/template-core/dist/toolchain-resolution.d.ts +0 -35
- package/node_modules/@ykdz/template-core/dist/toolchain-resolution.js +0 -189
- package/node_modules/valibot/dist/index.min.cjs +0 -2
- package/node_modules/valibot/dist/index.min.mjs +0 -2
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/LICENSE +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/README.md +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/classes/comparator.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/classes/index.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/classes/range.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/classes/semver.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/clean.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/cmp.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/coerce.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/compare-build.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/compare-loose.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/compare.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/diff.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/eq.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/gt.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/gte.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/inc.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/lt.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/lte.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/major.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/minor.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/neq.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/parse.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/patch.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/prerelease.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/rcompare.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/rsort.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/satisfies.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/sort.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/truncate.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/functions/valid.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/index.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/internal/constants.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/internal/debug.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/internal/identifiers.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/internal/lrucache.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/internal/parse-options.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/internal/re.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/package.json +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/preload.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/range.bnf +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/gtr.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/intersects.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/ltr.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/max-satisfying.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/min-satisfying.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/min-version.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/outside.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/simplify.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/subset.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/to-comparators.js +0 -0
- /package/node_modules/{semver → @ykdz/template-builtin-presets/node_modules/semver}/ranges/valid.js +0 -0
- /package/node_modules/{valibot → @ykdz/template-builtin-presets/node_modules/valibot}/LICENSE.md +0 -0
- /package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/src/{types.d.ts → types.ts} +0 -0
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { readFileSync, realpathSync } from "node:fs";
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
|
|
5
|
+
/** 与根 check 的其它入口一样,仓库根以 realpath 为准。 */
|
|
6
|
+
const repositoryRoot = realpathSync.native(process.cwd());
|
|
7
|
+
|
|
8
|
+
/** 根形状门文法与 Foundation 加包接受的根声明一致。 */
|
|
9
|
+
const exactNodeVersion = /^\d+\.\d+\.\d+$/u;
|
|
10
|
+
const exactPnpmPin = /^pnpm@\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/u;
|
|
11
|
+
/** CI 里 pnpm --version 的输出形制,与根 pin 去掉工具名前缀后同一文法。 */
|
|
12
|
+
const exactPnpmVersion = /^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/u;
|
|
13
|
+
|
|
14
|
+
/** 槽位位置只认识规划器声明的两种形制,检查器不解释文件格式或版本语义。 */
|
|
15
|
+
type MirrorSlotLocation =
|
|
16
|
+
| { readonly kind: "json-pointer"; readonly pointer: string }
|
|
17
|
+
| { readonly kind: "text-anchor"; readonly name: string };
|
|
18
|
+
|
|
19
|
+
type MirrorSlot = {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
readonly path: string;
|
|
22
|
+
readonly location: MirrorSlotLocation;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** 槽位清单由规划器的镜像槽位声明投影(模板变量替换),本文件不维护第二份真源。 */
|
|
26
|
+
const carriedMirrorSlots: unknown = JSON.parse(
|
|
27
|
+
`{{TOOLCHAIN_MIRROR_SLOT_MANIFEST}}`,
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
type SlotReading =
|
|
31
|
+
| { readonly status: "explained"; readonly observed: string }
|
|
32
|
+
| { readonly status: "missing"; readonly reason: string }
|
|
33
|
+
| { readonly status: "unexplainable"; readonly reason: string };
|
|
34
|
+
|
|
35
|
+
/** 读取位置的展示名,供诊断点名槽位所在位置。 */
|
|
36
|
+
function locationLabel(location: MirrorSlotLocation): string {
|
|
37
|
+
return location.kind === "json-pointer"
|
|
38
|
+
? `JSON 指针 ${location.pointer}`
|
|
39
|
+
: `锚点 @template-mirror ${location.name}`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function isMirrorSlot(value: unknown): value is MirrorSlot {
|
|
43
|
+
if (typeof value !== "object" || value === null) {
|
|
44
|
+
return false;
|
|
45
|
+
}
|
|
46
|
+
const slot = value as Record<string, unknown>;
|
|
47
|
+
if (typeof slot.id !== "string" || typeof slot.path !== "string") {
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
const location = slot.location;
|
|
51
|
+
if (typeof location !== "object" || location === null) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
const fields = location as Record<string, unknown>;
|
|
55
|
+
if (fields.kind === "json-pointer") {
|
|
56
|
+
return typeof fields.pointer === "string";
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return fields.kind === "text-anchor" && typeof fields.name === "string";
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** 携带清单形状非法时只报告这一条:清单本身是被检对象,不能静默跳过槽位。 */
|
|
63
|
+
function readCarriedMirrorSlots(): {
|
|
64
|
+
readonly diagnostics: readonly string[];
|
|
65
|
+
readonly slots: readonly MirrorSlot[];
|
|
66
|
+
} {
|
|
67
|
+
if (!Array.isArray(carriedMirrorSlots)) {
|
|
68
|
+
return {
|
|
69
|
+
diagnostics: ["检查器携带的槽位清单不是数组:模板变量替换结果非法"],
|
|
70
|
+
slots: [],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
const diagnostics: string[] = [];
|
|
74
|
+
const slots: MirrorSlot[] = [];
|
|
75
|
+
for (const [index, entry] of carriedMirrorSlots.entries()) {
|
|
76
|
+
if (isMirrorSlot(entry)) {
|
|
77
|
+
slots.push(entry);
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
diagnostics.push(
|
|
81
|
+
`检查器携带的槽位清单第 ${index + 1} 项形状非法:${JSON.stringify(entry)}`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return { diagnostics, slots };
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** 根版本形状门也核对 packageManager,但票 25 之后 pnpm 没有静态副本消费者。 */
|
|
89
|
+
type RootToolchain = {
|
|
90
|
+
readonly nodeVersion: string;
|
|
91
|
+
readonly packageManagerPin: string;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
/** 根声明读取:形状门失败时只报告形状问题,不再报告副本漂移或运行事实。 */
|
|
95
|
+
function readRootToolchain(): {
|
|
96
|
+
readonly diagnostics: readonly string[];
|
|
97
|
+
readonly root: RootToolchain | undefined;
|
|
98
|
+
} {
|
|
99
|
+
let manifest: unknown;
|
|
100
|
+
try {
|
|
101
|
+
manifest = JSON.parse(
|
|
102
|
+
readFileSync(path.join(repositoryRoot, "package.json"), "utf8"),
|
|
103
|
+
) as unknown;
|
|
104
|
+
} catch (error) {
|
|
105
|
+
return {
|
|
106
|
+
diagnostics: [
|
|
107
|
+
`根 package.json 无法解析:${error instanceof Error ? error.message : String(error)};根真源不可读时无法核对任何静态副本,请先修复根 manifest`,
|
|
108
|
+
],
|
|
109
|
+
root: undefined,
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
const fields = (
|
|
113
|
+
typeof manifest === "object" && manifest !== null ? manifest : {}
|
|
114
|
+
) as Record<string, unknown>;
|
|
115
|
+
const engines = fields.engines;
|
|
116
|
+
const nodeDeclaration =
|
|
117
|
+
typeof engines === "object" && engines !== null
|
|
118
|
+
? (engines as Record<string, unknown>).node
|
|
119
|
+
: undefined;
|
|
120
|
+
const packageManagerDeclaration = fields.packageManager;
|
|
121
|
+
const diagnostics: string[] = [];
|
|
122
|
+
const isExactNode =
|
|
123
|
+
typeof nodeDeclaration === "string" &&
|
|
124
|
+
exactNodeVersion.test(nodeDeclaration);
|
|
125
|
+
if (!isExactNode) {
|
|
126
|
+
diagnostics.push(
|
|
127
|
+
`根 package.json 的 engines.node 必须是精确三段 Node 版本(形如 "24.16.0"),当前为 ${JSON.stringify(nodeDeclaration ?? null)};静态镜像槽位按根声明协调,请把根写成已测的精确 patch 版本`,
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
const isExactPin =
|
|
131
|
+
typeof packageManagerDeclaration === "string" &&
|
|
132
|
+
exactPnpmPin.test(packageManagerDeclaration);
|
|
133
|
+
if (!isExactPin) {
|
|
134
|
+
diagnostics.push(
|
|
135
|
+
`根 package.json 的 packageManager 必须是单个精确 pnpm pin(形如 "pnpm@11.21.0",不带范围),当前为 ${JSON.stringify(packageManagerDeclaration ?? null)};请先修正根声明`,
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
if (diagnostics.length > 0 || !isExactNode || !isExactPin) {
|
|
139
|
+
return { diagnostics, root: undefined };
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
diagnostics: [],
|
|
144
|
+
root: {
|
|
145
|
+
nodeVersion: nodeDeclaration,
|
|
146
|
+
packageManagerPin: packageManagerDeclaration,
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function parseJsonPointer(pointer: string): readonly string[] {
|
|
152
|
+
if (pointer === "") {
|
|
153
|
+
throw new Error("镜像槽位不能定位到文档根本身");
|
|
154
|
+
}
|
|
155
|
+
if (!pointer.startsWith("/")) {
|
|
156
|
+
throw new Error("JSON Pointer 必须以 '/' 开头");
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return pointer
|
|
160
|
+
.slice(1)
|
|
161
|
+
.split("/")
|
|
162
|
+
.map((token) => {
|
|
163
|
+
if (/~(?:[^01]|$)/u.test(token)) {
|
|
164
|
+
throw new Error("JSON Pointer 只允许 '~0' 与 '~1' 转义");
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return token.replaceAll("~1", "/").replaceAll("~0", "~");
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const missingValue = Symbol("missing");
|
|
172
|
+
|
|
173
|
+
/** RFC 6901 的有限取值:位置不存在时返回 missingValue 哨兵,与类型不符分开报告。 */
|
|
174
|
+
function readJsonPointer(
|
|
175
|
+
document: unknown,
|
|
176
|
+
segments: readonly string[],
|
|
177
|
+
): unknown {
|
|
178
|
+
let current: unknown = document;
|
|
179
|
+
for (const segment of segments) {
|
|
180
|
+
if (typeof current !== "object" || current === null) {
|
|
181
|
+
return missingValue;
|
|
182
|
+
}
|
|
183
|
+
const container = current as Record<string, unknown>;
|
|
184
|
+
if (!Object.hasOwn(container, segment)) {
|
|
185
|
+
return missingValue;
|
|
186
|
+
}
|
|
187
|
+
current = container[segment];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return current;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/** 结构化槽位读取:解析 JSON 后按位置取字符串标量,缩进与键序差异不影响。 */
|
|
194
|
+
function readStructuredSlot(filePath: string, pointer: string): SlotReading {
|
|
195
|
+
let document: unknown;
|
|
196
|
+
try {
|
|
197
|
+
document = JSON.parse(readFileSync(filePath, "utf8")) as unknown;
|
|
198
|
+
} catch (error) {
|
|
199
|
+
return {
|
|
200
|
+
reason: `文件不是合法 JSON:${error instanceof Error ? error.message : String(error)}`,
|
|
201
|
+
status: "unexplainable",
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
let segments: readonly string[];
|
|
205
|
+
try {
|
|
206
|
+
segments = parseJsonPointer(pointer);
|
|
207
|
+
} catch (error) {
|
|
208
|
+
return {
|
|
209
|
+
reason: error instanceof Error ? error.message : String(error),
|
|
210
|
+
status: "unexplainable",
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
const value = readJsonPointer(document, segments);
|
|
214
|
+
if (value === missingValue) {
|
|
215
|
+
return { reason: "声明位置在文件中不存在", status: "missing" };
|
|
216
|
+
}
|
|
217
|
+
if (typeof value !== "string") {
|
|
218
|
+
return {
|
|
219
|
+
reason: `位置的值必须是字符串标量,实际为 ${JSON.stringify(value)}`,
|
|
220
|
+
status: "unexplainable",
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
return { observed: value, status: "explained" };
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
type MirrorMarker =
|
|
228
|
+
| { readonly kind: "start"; readonly name: string }
|
|
229
|
+
| { readonly kind: "end" }
|
|
230
|
+
| { readonly kind: "content" };
|
|
231
|
+
|
|
232
|
+
/** 与 Core 投影一致的成对锚点文法:剥掉注释标点,只认标记本身。 */
|
|
233
|
+
function mirrorMarker(line: string): MirrorMarker {
|
|
234
|
+
const stripped = line
|
|
235
|
+
.trim()
|
|
236
|
+
.replace(/^[#;%*/-]+/u, "")
|
|
237
|
+
.trim();
|
|
238
|
+
if (stripped === "@end-template-mirror") {
|
|
239
|
+
return { kind: "end" };
|
|
240
|
+
}
|
|
241
|
+
const start = /^@template-mirror\s+(\S+)$/u.exec(stripped);
|
|
242
|
+
if (start?.[1] !== undefined) {
|
|
243
|
+
return { kind: "start", name: start[1] };
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
return { kind: "content" };
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/** 锚点区域必须唯一且恰好承载一行,否则无法定位。 */
|
|
250
|
+
function locateAnchorCarrier(
|
|
251
|
+
lines: readonly string[],
|
|
252
|
+
name: string,
|
|
253
|
+
): string | undefined {
|
|
254
|
+
const starts: number[] = [];
|
|
255
|
+
for (const [index, line] of lines.entries()) {
|
|
256
|
+
const marker = mirrorMarker(line);
|
|
257
|
+
if (marker.kind === "start" && marker.name === name) {
|
|
258
|
+
starts.push(index);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
if (starts.length !== 1) {
|
|
262
|
+
return undefined;
|
|
263
|
+
}
|
|
264
|
+
const start = starts[0]!;
|
|
265
|
+
for (let index = start + 1; index < lines.length; index += 1) {
|
|
266
|
+
const marker = mirrorMarker(lines[index]!);
|
|
267
|
+
if (marker.kind === "start") {
|
|
268
|
+
return undefined;
|
|
269
|
+
}
|
|
270
|
+
if (marker.kind !== "end") {
|
|
271
|
+
continue;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
return index - start === 2 ? lines[start + 1] : undefined;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
return undefined;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
function escapeToken(value: string): string {
|
|
281
|
+
return value.replaceAll(/[.$()*?[\]{}+/|^\\]/gu, String.raw`\$&`);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/** 标记不可定位时,承载赋值或引用是否仍在:区分破坏与消费者整体退出该机制。 */
|
|
285
|
+
function usesSlotName(text: string, name: string): boolean {
|
|
286
|
+
const token = escapeToken(name);
|
|
287
|
+
|
|
288
|
+
return (
|
|
289
|
+
new RegExp(`(?:^|[^\\w$])${token}\\s*=`, "u").test(text) ||
|
|
290
|
+
new RegExp(String.raw`\$\{\s*${token}\s*\}`, "u").test(text)
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function readArgDefault(carrier: string, name: string): string | undefined {
|
|
295
|
+
const match = new RegExp(
|
|
296
|
+
`^ARG\\s+${escapeToken(name)}\\s*=\\s*"([^"\\r\\n]*)"\\s*$`,
|
|
297
|
+
"u",
|
|
298
|
+
).exec(carrier.trim());
|
|
299
|
+
|
|
300
|
+
return match?.[1];
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** 文本锚点槽位读取:只比较区域内那一行 ARG 的默认值 token。 */
|
|
304
|
+
function readTextSlot(name: string, text: string): SlotReading {
|
|
305
|
+
const carrier = locateAnchorCarrier(text.split(/\r?\n/u), name);
|
|
306
|
+
if (carrier === undefined) {
|
|
307
|
+
return usesSlotName(text, name)
|
|
308
|
+
? {
|
|
309
|
+
reason:
|
|
310
|
+
"锚点区域缺失、重复、不成对或含额外正文,但承载声明或引用仍在",
|
|
311
|
+
status: "unexplainable",
|
|
312
|
+
}
|
|
313
|
+
: { reason: "锚点与承载声明都不在文件中", status: "missing" };
|
|
314
|
+
}
|
|
315
|
+
const observed = readArgDefault(carrier, name);
|
|
316
|
+
if (observed === undefined) {
|
|
317
|
+
return {
|
|
318
|
+
reason: `锚点区域内的那一行不是 \`ARG ${name}="..."\` 默认值形式:${carrier.trim()}`,
|
|
319
|
+
status: "unexplainable",
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
return { observed, status: "explained" };
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/** Rust 静态镜像由根 rust-toolchain.toml 的 [toolchain].channel 拥有,槽位末段 token 绑定该真源。 */
|
|
327
|
+
const rustChannelSourcePath = "rust-toolchain.toml";
|
|
328
|
+
const rustMirrorSlotToken = "RUST_TOOLCHAIN";
|
|
329
|
+
|
|
330
|
+
/** 槽位所属根的 token:json-pointer 取末段、text-anchor 取名称,与规划器声明同一位置形制。 */
|
|
331
|
+
function mirrorSlotRootToken(slot: MirrorSlot): string {
|
|
332
|
+
return slot.location.kind === "json-pointer"
|
|
333
|
+
? (slot.location.pointer.split("/").at(-1) ?? "")
|
|
334
|
+
: slot.location.name;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
type RootChannelReading =
|
|
338
|
+
| { readonly channel: string; readonly status: "explained" }
|
|
339
|
+
| { readonly reason: string; readonly status: "missing" }
|
|
340
|
+
| { readonly reason: string; readonly status: "unexplainable" };
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* 结构化读取根 rust-toolchain.toml 的 [toolchain].channel:与 Foundation 加包路径复用同一 smol-toml 语义,
|
|
344
|
+
* 两个生产接缝对同一根声明给出一致判断——单引号 literal、行尾注释等合法 TOML 写法都按 TOML 解析,
|
|
345
|
+
* 非法 TOML 与非字符串/空 channel 判为不可解释,缺失 [toolchain].channel 判为 missing。
|
|
346
|
+
* 只有清单确实携带 Rust 槽位时才惰性 import 并读取,非 Rust 仓库既不触碰 rust-toolchain.toml,也不加载解析依赖。
|
|
347
|
+
*/
|
|
348
|
+
async function readRootToolchainChannel(): Promise<RootChannelReading> {
|
|
349
|
+
let text: string;
|
|
350
|
+
try {
|
|
351
|
+
text = readFileSync(
|
|
352
|
+
path.join(repositoryRoot, rustChannelSourcePath),
|
|
353
|
+
"utf8",
|
|
354
|
+
);
|
|
355
|
+
} catch {
|
|
356
|
+
return {
|
|
357
|
+
reason: `${rustChannelSourcePath} 不存在`,
|
|
358
|
+
status: "missing",
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
const { parse } = await import("smol-toml");
|
|
362
|
+
let declaration: unknown;
|
|
363
|
+
try {
|
|
364
|
+
declaration = parse(text);
|
|
365
|
+
} catch (error) {
|
|
366
|
+
return {
|
|
367
|
+
reason: `不是有效 TOML 声明:${error instanceof Error ? error.message : String(error)}`,
|
|
368
|
+
status: "unexplainable",
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
const toolchain =
|
|
372
|
+
typeof declaration === "object" && declaration !== null
|
|
373
|
+
? (declaration as Record<string, unknown>).toolchain
|
|
374
|
+
: undefined;
|
|
375
|
+
const channel =
|
|
376
|
+
typeof toolchain === "object" && toolchain !== null
|
|
377
|
+
? (toolchain as Record<string, unknown>).channel
|
|
378
|
+
: undefined;
|
|
379
|
+
if (channel === undefined) {
|
|
380
|
+
return {
|
|
381
|
+
reason: `${rustChannelSourcePath} 的 [toolchain] 表内没有 channel 声明`,
|
|
382
|
+
status: "missing",
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
if (typeof channel !== "string" || channel.trim().length === 0) {
|
|
386
|
+
return {
|
|
387
|
+
reason: `[toolchain].channel 必须是非空字符串,实际为 ${JSON.stringify(channel)}`,
|
|
388
|
+
status: "unexplainable",
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
return { channel, status: "explained" };
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
function checkMirrorSlot(
|
|
396
|
+
slot: MirrorSlot,
|
|
397
|
+
root: RootToolchain,
|
|
398
|
+
rustChannel: RootChannelReading | undefined,
|
|
399
|
+
): readonly string[] {
|
|
400
|
+
const isRustSlot = mirrorSlotRootToken(slot) === rustMirrorSlotToken;
|
|
401
|
+
let sourceLabel: string;
|
|
402
|
+
let expected: string;
|
|
403
|
+
if (isRustSlot) {
|
|
404
|
+
if (rustChannel === undefined || rustChannel.status !== "explained") {
|
|
405
|
+
const detail = rustChannel === undefined ? "未读取" : rustChannel.reason;
|
|
406
|
+
|
|
407
|
+
return [
|
|
408
|
+
`静态镜像槽位 ${slot.id} 无法核对:根 ${rustChannelSourcePath} [toolchain].channel 真源不可读(${detail});请修正根 ${rustChannelSourcePath},使 [toolchain] 表内声明非空 channel`,
|
|
409
|
+
];
|
|
410
|
+
}
|
|
411
|
+
sourceLabel = `根 ${rustChannelSourcePath} [toolchain].channel`;
|
|
412
|
+
expected = rustChannel.channel;
|
|
413
|
+
} else {
|
|
414
|
+
sourceLabel = "根 engines.node";
|
|
415
|
+
expected = root.nodeVersion;
|
|
416
|
+
}
|
|
417
|
+
const filePath = path.join(repositoryRoot, slot.path);
|
|
418
|
+
let contents: string;
|
|
419
|
+
try {
|
|
420
|
+
contents = readFileSync(filePath, "utf8");
|
|
421
|
+
} catch {
|
|
422
|
+
return [
|
|
423
|
+
`静态镜像槽位 ${slot.id} 缺失:${slot.path} 不存在;${sourceLabel} 真源为 ${JSON.stringify(expected)};请按根声明补齐该文件`,
|
|
424
|
+
];
|
|
425
|
+
}
|
|
426
|
+
const reading =
|
|
427
|
+
slot.location.kind === "json-pointer"
|
|
428
|
+
? readStructuredSlot(filePath, slot.location.pointer)
|
|
429
|
+
: readTextSlot(slot.location.name, contents);
|
|
430
|
+
const position = locationLabel(slot.location);
|
|
431
|
+
if (reading.status === "missing") {
|
|
432
|
+
return [
|
|
433
|
+
`静态镜像槽位 ${slot.id} 缺失:${slot.path} 的 ${position} 不在文件中(${reading.reason});${sourceLabel} 真源为 ${JSON.stringify(expected)};请按根声明补齐该位置`,
|
|
434
|
+
];
|
|
435
|
+
}
|
|
436
|
+
if (reading.status === "unexplainable") {
|
|
437
|
+
return [
|
|
438
|
+
`静态镜像槽位 ${slot.id} 不可解释:${slot.path} 的 ${position} ${reading.reason};${sourceLabel} 真源为 ${JSON.stringify(expected)};请恢复该位置的声明形状(合法 JSON 字符串值,或成对 @template-mirror 锚点内恰好一行 ARG 默认值)`,
|
|
439
|
+
];
|
|
440
|
+
}
|
|
441
|
+
if (reading.observed === expected) {
|
|
442
|
+
return [];
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
return [
|
|
446
|
+
`静态镜像槽位 ${slot.id} 漂移:${slot.path} 的 ${position} 观测为 ${JSON.stringify(reading.observed)},${sourceLabel} 真源为 ${JSON.stringify(expected)};请把这个副本改回根声明,或先修改根声明再由下一次加包协调,不要只改副本`,
|
|
447
|
+
];
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* 运行事实只在既有 CI 边界核对:工作流按根声明安装 Node 与 pnpm,因此不匹配是真实异常。
|
|
452
|
+
* 非 CI 的开发宿主版本不参与判断,合法的静态配置不因宿主差异被拒。
|
|
453
|
+
*/
|
|
454
|
+
function ciRuntimeBoundaryApplies(): boolean {
|
|
455
|
+
return /^(?:1|true)$/iu.test(process.env.CI ?? "");
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
type RuntimeVersionFact =
|
|
459
|
+
| { readonly observed: string; readonly status: "explained" }
|
|
460
|
+
| { readonly reason: string; readonly status: "unreadable" };
|
|
461
|
+
|
|
462
|
+
/** 只读取当前环境里 pnpm 自述的版本,不安装、不切换版本、不联网查询。 */
|
|
463
|
+
function readPnpmRuntimeVersion(): RuntimeVersionFact {
|
|
464
|
+
const result = spawnSync("pnpm", ["--version"], { encoding: "utf8" });
|
|
465
|
+
if (result.error !== undefined) {
|
|
466
|
+
return {
|
|
467
|
+
reason: `调用 \`pnpm --version\` 失败:${result.error.message}`,
|
|
468
|
+
status: "unreadable",
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
if (result.status !== 0) {
|
|
472
|
+
const detail = (result.stderr ?? "").trim();
|
|
473
|
+
return {
|
|
474
|
+
reason: `\`pnpm --version\` 以退出码 ${String(result.status)} 失败:${detail === "" ? "(无 stderr 输出)" : detail}`,
|
|
475
|
+
status: "unreadable",
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
const observed = (result.stdout ?? "").trim();
|
|
479
|
+
if (!exactPnpmVersion.test(observed)) {
|
|
480
|
+
return {
|
|
481
|
+
reason: `\`pnpm --version\` 的输出不是单个精确版本:${JSON.stringify(observed)}`,
|
|
482
|
+
status: "unreadable",
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
return { observed, status: "explained" };
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
function checkRuntimeToolchainFacts(root: RootToolchain): readonly string[] {
|
|
490
|
+
const diagnostics: string[] = [];
|
|
491
|
+
const expectedNode = `v${root.nodeVersion}`;
|
|
492
|
+
if (process.version !== expectedNode) {
|
|
493
|
+
diagnostics.push(
|
|
494
|
+
`Node 运行版本不匹配:CI 里 process.version 观测为 ${JSON.stringify(process.version)},根 engines.node 真源为 ${JSON.stringify(root.nodeVersion)};工作流应按根声明安装 Node(setup-node 的 node-version-file 指向 package.json),请修正 CI 的安装来源或先改根声明,不要在脚本里另写版本`,
|
|
495
|
+
);
|
|
496
|
+
}
|
|
497
|
+
const pinnedVersion = root.packageManagerPin.slice("pnpm@".length);
|
|
498
|
+
const pnpmFact = readPnpmRuntimeVersion();
|
|
499
|
+
if (pnpmFact.status === "unreadable") {
|
|
500
|
+
diagnostics.push(
|
|
501
|
+
`pnpm 运行版本获取失败:${pnpmFact.reason};根 packageManager 真源为 ${JSON.stringify(root.packageManagerPin)};请恢复 CI 环境中可用的 pnpm(action-setup 按根 packageManager 安装),本核对不能静默跳过`,
|
|
502
|
+
);
|
|
503
|
+
} else if (pnpmFact.observed !== pinnedVersion) {
|
|
504
|
+
diagnostics.push(
|
|
505
|
+
`pnpm 运行版本不匹配:CI 里 \`pnpm --version\` 观测为 ${JSON.stringify(pnpmFact.observed)},根 packageManager 真源为 ${JSON.stringify(root.packageManagerPin)};请让 CI 用根 pin 的 pnpm 执行本任务,不要放宽根声明迁就环境`,
|
|
506
|
+
);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
return diagnostics;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
async function runToolchainMirrorCheck(): Promise<readonly string[]> {
|
|
513
|
+
const carried = readCarriedMirrorSlots();
|
|
514
|
+
if (carried.diagnostics.length > 0) {
|
|
515
|
+
return carried.diagnostics;
|
|
516
|
+
}
|
|
517
|
+
const toolchain = readRootToolchain();
|
|
518
|
+
if (toolchain.root === undefined) {
|
|
519
|
+
return toolchain.diagnostics;
|
|
520
|
+
}
|
|
521
|
+
const root = toolchain.root;
|
|
522
|
+
// 仅在清单确实携带 Rust 槽位时才惰性 import 结构化解析器并读取 rust-toolchain.toml,非 Rust 仓库永不触碰该文件。
|
|
523
|
+
const carriesRustSlot = carried.slots.some(
|
|
524
|
+
(slot) => mirrorSlotRootToken(slot) === rustMirrorSlotToken,
|
|
525
|
+
);
|
|
526
|
+
const rustChannel = carriesRustSlot
|
|
527
|
+
? await readRootToolchainChannel()
|
|
528
|
+
: undefined;
|
|
529
|
+
const diagnostics: string[] = [];
|
|
530
|
+
for (const slot of carried.slots) {
|
|
531
|
+
diagnostics.push(...checkMirrorSlot(slot, root, rustChannel));
|
|
532
|
+
}
|
|
533
|
+
if (diagnostics.length === 0) {
|
|
534
|
+
process.stdout.write(
|
|
535
|
+
`工具链静态镜像槽位一致:根 Node ${root.nodeVersion},清单 ${carried.slots.length} 项\n`,
|
|
536
|
+
);
|
|
537
|
+
}
|
|
538
|
+
if (ciRuntimeBoundaryApplies()) {
|
|
539
|
+
const runtimeDiagnostics = checkRuntimeToolchainFacts(root);
|
|
540
|
+
diagnostics.push(...runtimeDiagnostics);
|
|
541
|
+
if (runtimeDiagnostics.length === 0) {
|
|
542
|
+
process.stdout.write(
|
|
543
|
+
`工具链运行事实一致:CI 按根 Node ${root.nodeVersion} 与 ${root.packageManagerPin} 核对了当前进程\n`,
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
return diagnostics;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
const diagnosticsFound = await runToolchainMirrorCheck();
|
|
552
|
+
|
|
553
|
+
if (diagnosticsFound.length > 0) {
|
|
554
|
+
process.stderr.write(`${diagnosticsFound.join("\n")}\n`);
|
|
555
|
+
process.exitCode = 1;
|
|
556
|
+
}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": "./tsconfig.config.json",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"scripts/run-root-owned-task.ts"
|
|
8
|
-
]
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"noEmit": true
|
|
5
|
+
},
|
|
6
|
+
"include": ["*.config.ts", "scripts/**/*.ts"]
|
|
9
7
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"boundaries": { "tags": {} },
|
|
3
3
|
"globalPassThroughEnv": ["CARGO_HOME", "RUSTUP_HOME", "RUSTUP_TOOLCHAIN"],
|
|
4
4
|
"tasks": {
|
|
5
|
-
"//#boundaries": { "cache": false },
|
|
6
5
|
"//#format:check": { "outputs": [] },
|
|
7
6
|
"//#lint": { "outputs": [] },
|
|
8
7
|
"//#format:write": { "dependsOn": ["//#lint:fix"], "cache": false },
|
|
9
8
|
"//#lint:fix": { "cache": false },
|
|
9
|
+
"//#toolchain:prepare": { "cache": false },
|
|
10
10
|
"//#typecheck": { "outputs": [] },
|
|
11
11
|
"format:check": { "outputs": [] },
|
|
12
12
|
"lint": { "outputs": [] },
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"extends": ["//"],
|
|
3
|
-
"tags": ["native"]
|
|
3
|
+
"tags": ["native"],
|
|
4
|
+
"tasks": {
|
|
5
|
+
"format:check": {
|
|
6
|
+
"dependsOn": ["//#toolchain:prepare"],
|
|
7
|
+
"outputs": []
|
|
8
|
+
},
|
|
9
|
+
"format:write": {
|
|
10
|
+
"dependsOn": ["//#toolchain:prepare"],
|
|
11
|
+
"cache": false
|
|
12
|
+
},
|
|
13
|
+
"lint": {
|
|
14
|
+
"dependsOn": ["//#toolchain:prepare"],
|
|
15
|
+
"outputs": []
|
|
16
|
+
},
|
|
17
|
+
"test": {
|
|
18
|
+
"dependsOn": ["//#toolchain:prepare"],
|
|
19
|
+
"outputs": []
|
|
20
|
+
}
|
|
21
|
+
}
|
|
4
22
|
}
|
|
@@ -2,15 +2,13 @@ ARG NODE_VERSION
|
|
|
2
2
|
FROM node:${NODE_VERSION}-bookworm-slim
|
|
3
3
|
|
|
4
4
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
5
|
-
ARG PACKAGE_MANAGER_PIN
|
|
6
|
-
ENV COREPACK_HOME="/corepack"
|
|
7
5
|
ENV PNPM_HOME="/pnpm"
|
|
8
6
|
ENV PATH="$PNPM_HOME/bin:$PNPM_HOME:$PATH"
|
|
7
|
+
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
|
9
8
|
RUN apt-get update \
|
|
10
|
-
&& apt-get install -y --no-install-recommends ca-certificates git \
|
|
9
|
+
&& apt-get install -y --no-install-recommends ca-certificates git procps bubblewrap \
|
|
11
10
|
&& rm -rf /var/lib/apt/lists/* \
|
|
12
11
|
&& git config --system init.defaultBranch main \
|
|
13
|
-
&& install -d -m 0755 "$
|
|
12
|
+
&& install -d -m 0755 "$PNPM_HOME" "$PNPM_HOME/bin" \
|
|
14
13
|
&& corepack enable --install-directory "$PNPM_HOME" \
|
|
15
|
-
&&
|
|
16
|
-
&& chmod -R a+rX "$COREPACK_HOME" "$PNPM_HOME"
|
|
14
|
+
&& chmod -R a+rX "$PNPM_HOME"
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
"module": "esnext",
|
|
8
8
|
"moduleResolution": "bundler",
|
|
9
9
|
"lib": ["ESNext", "DOM", "DOM.Iterable"],
|
|
10
|
-
"rewriteRelativeImportExtensions":
|
|
11
|
-
"target": "
|
|
10
|
+
"rewriteRelativeImportExtensions": true,
|
|
11
|
+
"target": "es2024",
|
|
12
12
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
|
|
13
13
|
"types": ["node"]
|
|
14
14
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/2.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [Unreleased]
|
|
9
|
+
|
|
10
|
+
## [{{PACKAGE_VERSION}}] - {{RELEASE_DATE}}
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Publish the first stable release.
|
|
15
|
+
|
|
16
|
+
[Unreleased]: {{REPOSITORY_URL}}/compare/v{{PACKAGE_VERSION}}...HEAD
|
|
17
|
+
[{{PACKAGE_VERSION}}]: {{REPOSITORY_URL}}/releases/tag/v{{PACKAGE_VERSION}}
|