@ykdz/template 0.0.42 → 0.1.0-experimental.1
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 +38 -4
- package/dist/application.js +199 -138
- package/dist/cli.js +0 -5
- package/dist/input-schemas.d.ts +14 -0
- package/dist/input-schemas.js +27 -8
- package/dist/input-validation.d.ts +43 -0
- package/dist/input-validation.js +129 -0
- package/dist/main.js +157 -6
- package/dist/preset-catalog.d.ts +36 -0
- package/dist/preset-catalog.js +41 -0
- package/dist/result-schemas.d.ts +63 -34
- package/dist/result-schemas.js +5 -4
- package/dist/standard-schema.d.ts +1 -1
- package/dist/standard-schema.js +1 -9
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/@types/node/util.d.ts +7 -4
- package/node_modules/@typescript/typescript-linux-x64/LICENSE +55 -0
- package/node_modules/@typescript/typescript-linux-x64/NOTICE.txt +436 -0
- package/node_modules/@typescript/typescript-linux-x64/README.md +3 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.d.ts +20 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.decorators.d.ts +382 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.decorators.legacy.d.ts +20 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.asynciterable.d.ts +18 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.d.ts +45125 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.dom.iterable.d.ts +18 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.collection.d.ts +159 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.core.d.ts +595 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.d.ts +26 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.generator.d.ts +75 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.iterable.d.ts +603 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.promise.d.ts +79 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.proxy.d.ts +126 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.reflect.d.ts +142 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.symbol.d.ts +44 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.array.include.d.ts +114 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.d.ts +19 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.full.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2016.intl.d.ts +29 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.arraybuffer.d.ts +19 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.d.ts +24 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.date.d.ts +29 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.full.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.intl.d.ts +42 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.object.d.ts +47 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.sharedmemory.d.ts +133 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.string.d.ts +47 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2017.typedarrays.d.ts +51 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.asyncgenerator.d.ts +75 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.asynciterable.d.ts +51 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.intl.d.ts +81 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.promise.d.ts +28 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2018.regexp.d.ts +35 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.array.d.ts +77 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.intl.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.object.d.ts +31 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.string.d.ts +35 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2019.symbol.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.bigint.d.ts +763 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.d.ts +25 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.date.d.ts +40 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.intl.d.ts +472 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.number.d.ts +26 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.promise.d.ts +45 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.string.d.ts +42 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.intl.d.ts +164 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.promise.d.ts +46 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.string.d.ts +31 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2021.weakref.d.ts +76 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.array.d.ts +119 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.error.d.ts +73 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.intl.d.ts +143 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.object.d.ts +24 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.regexp.d.ts +37 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2022.string.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.array.d.ts +922 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.collection.d.ts +19 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.d.ts +20 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2023.intl.d.ts +62 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.arraybuffer.d.ts +63 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.collection.d.ts +27 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.d.ts +24 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.object.d.ts +27 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.promise.d.ts +33 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.regexp.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.sharedmemory.d.ts +66 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2024.string.d.ts +27 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.collection.d.ts +94 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.float16.d.ts +443 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.intl.d.ts +200 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.iterator.d.ts +146 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.promise.d.ts +32 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es2025.regexp.d.ts +30 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es5.d.ts +4599 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.es6.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.array.d.ts +33 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.collection.d.ts +47 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.d.ts +27 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.date.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.decorators.d.ts +26 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.disposable.d.ts +191 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.error.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.full.d.ts +22 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.intl.d.ts +107 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.sharedmemory.d.ts +23 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.temporal.d.ts +485 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.esnext.typedarrays.d.ts +90 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.scripthost.d.ts +320 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.asynciterable.d.ts +18 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.d.ts +15606 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.importscripts.d.ts +21 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/lib.webworker.iterable.d.ts +18 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/tsc +0 -0
- package/node_modules/@typescript/typescript-linux-x64/lib/tsc.sig +11 -0
- package/node_modules/@typescript/typescript-linux-x64/package.json +45 -0
- package/node_modules/@ykdz/cli-contract/dist/cli-contract.d.ts +689 -184
- package/node_modules/@ykdz/cli-contract/dist/cli-contract.js +816 -243
- package/node_modules/@ykdz/cli-contract/dist/cli-execution.d.ts +11 -7
- package/node_modules/@ykdz/cli-contract/dist/cli-execution.js +69 -22
- package/node_modules/@ykdz/cli-contract/dist/cli-invocation.d.ts +80 -31
- package/node_modules/@ykdz/cli-contract/dist/cli-invocation.js +84 -26
- package/node_modules/@ykdz/cli-contract/dist/contract-definition-error.d.ts +40 -7
- package/node_modules/@ykdz/cli-contract/dist/contract-definition-error.js +28 -6
- package/node_modules/@ykdz/cli-contract/dist/contract-schema-compiler.js +17 -3
- package/node_modules/@ykdz/cli-contract/dist/contract-schema.d.ts +4 -0
- package/node_modules/@ykdz/cli-contract/dist/field-identity.d.ts +2 -0
- package/node_modules/@ykdz/cli-contract/dist/field-identity.js +16 -0
- package/node_modules/@ykdz/cli-contract/dist/index.d.ts +4 -3
- package/node_modules/@ykdz/cli-contract/dist/index.js +2 -2
- package/node_modules/@ykdz/cli-contract/dist/node.d.ts +1 -1
- package/node_modules/@ykdz/cli-contract/dist/node.js +1 -1
- package/node_modules/@ykdz/cli-contract/dist/outcome-fact.d.ts +42 -9
- package/node_modules/@ykdz/cli-contract/dist/outcome-fact.js +98 -24
- package/node_modules/@ykdz/cli-contract/dist/outcome-wire.d.ts +5 -5
- package/node_modules/@ykdz/cli-contract/dist/outcome-wire.js +75 -15
- package/node_modules/@ykdz/cli-contract/package.json +6 -5
- package/node_modules/@ykdz/preset-rust-bin/native/package.json +46 -0
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.d.ts +43 -0
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-rust-bin/native/template-dist/definition.js +21 -0
- package/node_modules/@ykdz/preset-rust-bin/package.json +20 -0
- package/node_modules/@ykdz/preset-ts-cli/native/package.json +48 -0
- package/node_modules/@ykdz/preset-ts-cli/native/template-dist/definition.d.ts +23 -0
- package/node_modules/@ykdz/preset-ts-cli/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-ts-cli/native/template-dist/definition.js +23 -0
- package/node_modules/@ykdz/preset-ts-cli/package.json +20 -0
- package/node_modules/@ykdz/preset-ts-lib/native/package.json +45 -0
- package/node_modules/@ykdz/preset-ts-lib/native/template-dist/definition.d.ts +23 -0
- package/node_modules/@ykdz/preset-ts-lib/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-ts-lib/native/template-dist/definition.js +21 -0
- package/node_modules/@ykdz/preset-ts-lib/package.json +20 -0
- package/node_modules/@ykdz/preset-vike-app/native/package.json +55 -0
- package/node_modules/@ykdz/preset-vike-app/native/resources/deployment/Dockerfile +76 -0
- package/node_modules/@ykdz/preset-vike-app/native/resources/deployment/container.dockerignore +11 -0
- package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → preset-vike-app/native/resources/deployment}/scripts/container-entrypoint.sh +0 -0
- package/node_modules/@ykdz/preset-vike-app/native/resources/deployment/setup-buildx-step.yml +3 -0
- package/node_modules/@ykdz/preset-vike-app/native/scripts/check-standalone-deployment.ts +570 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.d.ts +35 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/definition.js +61 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.d.ts +20 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vike-app/native/template-dist/deployment.js +277 -0
- package/node_modules/@ykdz/preset-vike-app/package.json +24 -0
- package/node_modules/@ykdz/preset-vue-app/native/package.json +44 -0
- package/node_modules/@ykdz/preset-vue-app/native/template-dist/definition.d.ts +23 -0
- package/node_modules/@ykdz/preset-vue-app/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vue-app/native/template-dist/definition.js +21 -0
- package/node_modules/@ykdz/preset-vue-app/package.json +20 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/package.json +50 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/resources/joint-e2e/playwright.config.ts +35 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/resources/joint-e2e/test/e2e/app.spec.ts +10 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.d.ts +33 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/preset-vue-hono-app/native/template-dist/definition.js +129 -0
- package/node_modules/@ykdz/preset-vue-hono-app/package.json +21 -0
- package/node_modules/@ykdz/reference-hono-api/native/package.json +55 -0
- package/node_modules/@ykdz/reference-hono-api/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-hono-api/native/template-dist/definition.js +33 -0
- package/node_modules/@ykdz/reference-hono-api/native/tsconfig.build.json +11 -0
- package/node_modules/@ykdz/reference-hono-api/native/tsconfig.json +15 -0
- package/node_modules/@ykdz/reference-hono-api/native/turbo.json +67 -0
- package/node_modules/@ykdz/reference-hono-api/package.json +19 -0
- package/node_modules/@ykdz/reference-npm-publication/native/.changeset/config.json +4 -0
- package/node_modules/@ykdz/reference-npm-publication/native/README.md +11 -0
- package/node_modules/@ykdz/reference-npm-publication/native/package.json +38 -0
- package/node_modules/@ykdz/reference-npm-publication/native/resources/gitignore +1 -0
- package/node_modules/@ykdz/reference-npm-publication/native/resources/release.yml +70 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.d.ts +5 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/definition.js +39 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.d.ts +13 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/target.js +30 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.d.ts +11 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-npm-publication/native/template-dist/workspace.js +51 -0
- package/node_modules/@ykdz/reference-npm-publication/package.json +19 -0
- package/node_modules/@ykdz/reference-rust-bin/native/Cargo.lock +16 -0
- package/node_modules/@ykdz/reference-rust-bin/native/Cargo.toml +27 -0
- package/node_modules/@ykdz/reference-rust-bin/native/package.json +38 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template/rust-toolchain.toml +3 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.d.ts +15 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-rust-bin/native/template-dist/definition.js +145 -0
- package/node_modules/@ykdz/reference-rust-bin/native/tsconfig.json +8 -0
- package/node_modules/@ykdz/reference-rust-bin/native/turbo.json +63 -0
- package/node_modules/@ykdz/reference-rust-bin/package.json +20 -0
- package/node_modules/@ykdz/reference-tooling-config/native/node.json +13 -0
- package/node_modules/@ykdz/reference-tooling-config/native/oxlint.config.ts +8 -0
- package/node_modules/@ykdz/reference-tooling-config/native/package.json +37 -0
- package/node_modules/@ykdz/reference-tooling-config/native/template-dist/definition.d.ts +27 -0
- package/node_modules/@ykdz/reference-tooling-config/native/template-dist/definition.js +27 -0
- package/node_modules/@ykdz/reference-tooling-config/native/tsconfig.json +9 -0
- package/node_modules/@ykdz/reference-tooling-config/native/turbo.json +51 -0
- package/node_modules/@ykdz/reference-tooling-config/package.json +16 -0
- package/node_modules/@ykdz/reference-ts-cli/native/package.json +56 -0
- package/node_modules/@ykdz/reference-ts-cli/native/src/cli.ts +17 -0
- package/node_modules/@ykdz/reference-ts-cli/native/src/main.ts +162 -0
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.d.ts +8 -0
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.d.ts.map +1 -0
- package/node_modules/@ykdz/reference-ts-cli/native/template-dist/definition.js +80 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/journey.ts +31 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/journeys/lookup.journey.ts +76 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/run-journeys.ts +240 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/e2e/source-journeys.test.ts +9 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/integration/command.test.ts +147 -0
- package/node_modules/@ykdz/reference-ts-cli/native/test/unit/cli-command-identity.test.ts +76 -0
- package/node_modules/@ykdz/reference-ts-cli/native/tsconfig.build.json +12 -0
- package/node_modules/@ykdz/reference-ts-cli/native/tsconfig.json +8 -0
- package/node_modules/@ykdz/reference-ts-cli/native/tsconfig.node.json +7 -0
- package/node_modules/@ykdz/reference-ts-cli/native/turbo.json +75 -0
- package/node_modules/@ykdz/reference-ts-cli/package.json +20 -0
- package/node_modules/@ykdz/reference-ts-lib/native/package.json +57 -0
- package/node_modules/@ykdz/reference-ts-lib/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-ts-lib/native/template-dist/definition.js +43 -0
- package/node_modules/@ykdz/reference-ts-lib/native/tsconfig.build.json +9 -0
- package/node_modules/@ykdz/reference-ts-lib/native/tsconfig.json +8 -0
- package/node_modules/@ykdz/reference-ts-lib/native/tsconfig.node.json +8 -0
- package/node_modules/@ykdz/reference-ts-lib/native/turbo.json +63 -0
- package/node_modules/@ykdz/reference-ts-lib/package.json +20 -0
- package/node_modules/@ykdz/reference-vike-db/native/package.json +83 -0
- package/node_modules/@ykdz/reference-vike-db/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vike-db/native/template-dist/definition.js +39 -0
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.build.json +12 -0
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.json +11 -0
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.node.json +19 -0
- package/node_modules/@ykdz/reference-vike-db/native/tsconfig.scripts.json +13 -0
- package/node_modules/@ykdz/reference-vike-db/native/turbo.json +67 -0
- package/node_modules/@ykdz/reference-vike-db/package.json +19 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/drizzle.config.ts +22 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/package.json +51 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/template-dist/definition.js +39 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/tsconfig.json +15 -0
- package/node_modules/@ykdz/reference-vike-migrations/native/turbo.json +76 -0
- package/node_modules/@ykdz/reference-vike-migrations/package.json +19 -0
- package/node_modules/@ykdz/reference-vike-web/native/package.json +84 -0
- package/node_modules/@ykdz/reference-vike-web/native/pages/index/+Page.telefunc.ts +12 -0
- package/node_modules/@ykdz/reference-vike-web/native/pages/index/+Page.vue +89 -0
- package/node_modules/@ykdz/reference-vike-web/native/server/app.ts +36 -0
- package/node_modules/@ykdz/reference-vike-web/native/server/database.ts +2 -0
- package/node_modules/@ykdz/reference-vike-web/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vike-web/native/template-dist/definition.js +59 -0
- package/node_modules/@ykdz/reference-vike-web/native/test/e2e/app.spec.ts +16 -0
- package/node_modules/@ykdz/reference-vike-web/native/test/todos.browser.test.ts +37 -0
- package/node_modules/@ykdz/reference-vike-web/native/tooling/vite.ts +5 -0
- package/node_modules/@ykdz/reference-vike-web/native/tsconfig.app.json +27 -0
- package/node_modules/@ykdz/reference-vike-web/native/tsconfig.json +11 -0
- package/node_modules/@ykdz/reference-vike-web/native/tsconfig.node.json +33 -0
- package/node_modules/@ykdz/reference-vike-web/native/turbo.json +92 -0
- package/node_modules/@ykdz/reference-vike-web/native/types/global.d.ts +9 -0
- package/node_modules/@ykdz/reference-vike-web/native/vite.config.ts +16 -0
- package/node_modules/@ykdz/reference-vike-web/native/vitest.config.ts +37 -0
- package/node_modules/@ykdz/reference-vike-web/package.json +20 -0
- package/node_modules/@ykdz/reference-vue-app/native/TESTING.md +7 -0
- package/node_modules/@ykdz/reference-vue-app/native/package.json +70 -0
- package/node_modules/@ykdz/reference-vue-app/native/src/components/CounterButton.vue +18 -0
- package/node_modules/@ykdz/reference-vue-app/native/src/style.css +2 -0
- package/node_modules/@ykdz/reference-vue-app/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vue-app/native/template-dist/definition.js +53 -0
- package/node_modules/@ykdz/reference-vue-app/native/test/app.browser.test.ts +13 -0
- package/node_modules/@ykdz/reference-vue-app/native/test/counter.node.test.ts +15 -0
- package/node_modules/@ykdz/reference-vue-app/native/test/e2e/app.spec.ts +15 -0
- package/node_modules/@ykdz/reference-vue-app/native/tsconfig.app.json +18 -0
- package/node_modules/@ykdz/reference-vue-app/native/tsconfig.json +11 -0
- package/node_modules/@ykdz/reference-vue-app/native/tsconfig.node.json +25 -0
- package/node_modules/@ykdz/reference-vue-app/native/turbo.json +84 -0
- package/node_modules/@ykdz/reference-vue-app/native/vite.config.ts +8 -0
- package/node_modules/@ykdz/reference-vue-app/native/vitest.config.ts +37 -0
- package/node_modules/@ykdz/reference-vue-app/package.json +20 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/TESTING.md +7 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/package.json +66 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/src/App.vue +49 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/src/main.ts +7 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/src/style.css +2 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/template-dist/definition.d.ts +1 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/template-dist/definition.js +49 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/test/app.browser.test.ts +13 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/tsconfig.app.json +18 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/tsconfig.json +11 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/tsconfig.node.json +25 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/turbo.json +74 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/vite.config.ts +28 -0
- package/node_modules/@ykdz/reference-vue-hono-web/native/vitest.config.ts +37 -0
- package/node_modules/@ykdz/reference-vue-hono-web/package.json +20 -0
- package/node_modules/@ykdz/template-content/dist/index.d.ts +14 -0
- package/node_modules/@ykdz/template-content/dist/index.js +9 -0
- package/node_modules/@ykdz/template-content/dist/template-members.d.ts +9 -0
- package/node_modules/@ykdz/template-content/dist/template-members.js +16 -0
- package/node_modules/@ykdz/template-content/package.json +18 -0
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/dist/index.d.ts +45 -0
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/dist/index.js +30 -0
- package/node_modules/@ykdz/template-content-provider-51cfac9642dc43a4/package.json +35 -0
- package/node_modules/@ykdz/template-core/dist/content-identity.d.ts +42 -0
- package/node_modules/@ykdz/template-core/dist/content-identity.js +117 -0
- package/node_modules/@ykdz/template-core/dist/generation-record.d.ts +28 -0
- package/node_modules/@ykdz/template-core/dist/generation-record.js +45 -0
- package/node_modules/@ykdz/template-core/dist/package-contribution.d.ts +3 -81
- package/node_modules/@ykdz/template-core/dist/package-contribution.js +19 -64
- package/node_modules/@ykdz/template-core/dist/preset-definition.d.ts +73 -97
- package/node_modules/@ykdz/template-core/dist/preset-definition.js +107 -15
- package/node_modules/@ykdz/template-core/dist/project-blueprint.d.ts +3 -11
- package/node_modules/@ykdz/template-core/dist/project-blueprint.js +23 -71
- package/node_modules/@ykdz/template-core/dist/project-projection.js +4 -17
- package/node_modules/@ykdz/template-core/dist/renderer-policy-snapshot.d.ts +1 -0
- package/node_modules/@ykdz/template-core/dist/renderer-policy-snapshot.js +2 -0
- package/node_modules/@ykdz/template-core/dist/renderer.d.ts +7 -25
- package/node_modules/@ykdz/template-core/dist/renderer.js +14 -252
- package/node_modules/@ykdz/template-core/dist/toml.d.ts +6 -0
- package/node_modules/@ykdz/template-core/dist/toml.js +31 -0
- package/node_modules/@ykdz/template-core/dist/workspace-strategy.d.ts +188 -0
- package/node_modules/@ykdz/template-core/dist/workspace-strategy.js +1 -0
- package/node_modules/@ykdz/template-core/package.json +24 -20
- package/node_modules/@ykdz/template-environment/dist/development-container-tool-layer.d.ts +65 -0
- package/node_modules/@ykdz/template-environment/dist/development-container-tool-layer.js +414 -0
- package/node_modules/@ykdz/template-environment/package.json +36 -0
- package/node_modules/@ykdz/template-generator/dist/content-source.d.ts +13 -0
- package/node_modules/@ykdz/template-generator/dist/content-source.js +181 -0
- package/node_modules/@ykdz/template-generator/dist/index.d.ts +82 -0
- package/node_modules/@ykdz/template-generator/dist/index.js +1147 -0
- package/node_modules/@ykdz/template-generator/package.json +41 -0
- package/node_modules/@ykdz/template-workspace/assets/environment/devcontainer/workspace-template.json +16 -0
- package/node_modules/@ykdz/template-workspace/assets/github/check.yml +83 -0
- package/node_modules/@ykdz/template-workspace/assets/github/dependabot.yml +49 -0
- package/node_modules/@ykdz/template-workspace/assets/next-steps.md +3 -0
- package/node_modules/@ykdz/template-workspace/assets/tsconfig.config.json +6 -0
- package/node_modules/@ykdz/template-workspace/assets/turbo.json +64 -0
- package/node_modules/@ykdz/template-workspace/dist/application-requirements.d.ts +14 -0
- package/node_modules/@ykdz/template-workspace/dist/application-requirements.js +42 -0
- package/node_modules/@ykdz/template-workspace/dist/ci-diagnostic-artifact.d.ts +17 -0
- package/node_modules/@ykdz/template-workspace/dist/ci-diagnostic-artifact.js +74 -0
- package/node_modules/@ykdz/template-workspace/dist/default-environment-sources.d.ts +5 -0
- package/node_modules/@ykdz/template-workspace/dist/default-environment-sources.js +8 -0
- package/node_modules/@ykdz/template-workspace/dist/default-environment.d.ts +9 -0
- package/node_modules/@ykdz/template-workspace/dist/default-environment.js +5 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-identity.d.ts +19 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-identity.js +128 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-role.d.ts +4 -0
- package/node_modules/@ykdz/template-workspace/dist/default-package-role.js +9 -0
- package/node_modules/@ykdz/template-workspace/dist/default-workspace-strategy.d.ts +89 -0
- package/node_modules/@ykdz/template-workspace/dist/default-workspace-strategy.js +967 -0
- package/node_modules/@ykdz/template-workspace/dist/dependency-catalog.d.ts +25 -0
- package/node_modules/@ykdz/template-workspace/dist/dependency-catalog.js +159 -0
- package/node_modules/@ykdz/template-workspace/dist/development-container.d.ts +3 -0
- package/node_modules/@ykdz/template-workspace/dist/development-container.js +36 -0
- package/node_modules/@ykdz/template-workspace/dist/development-environment.d.ts +36 -0
- package/node_modules/@ykdz/template-workspace/dist/development-environment.js +241 -0
- package/node_modules/@ykdz/template-workspace/dist/editor-customization.d.ts +18 -0
- package/node_modules/@ykdz/template-workspace/dist/editor-customization.js +83 -0
- package/node_modules/@ykdz/template-workspace/dist/environment-needs.d.ts +51 -0
- package/node_modules/@ykdz/template-workspace/dist/environment-needs.js +167 -0
- package/node_modules/@ykdz/template-workspace/dist/generation-context.d.ts +14 -0
- package/node_modules/@ykdz/template-workspace/dist/package-addition-facts.d.ts +21 -0
- package/node_modules/@ykdz/template-workspace/dist/package-addition-facts.js +90 -0
- package/node_modules/@ykdz/template-workspace/dist/package-contribution.d.ts +64 -0
- package/node_modules/@ykdz/template-workspace/dist/package-contribution.js +65 -0
- package/node_modules/@ykdz/template-workspace/dist/project-github.d.ts +24 -0
- package/node_modules/@ykdz/template-workspace/dist/project-github.js +98 -0
- package/node_modules/@ykdz/template-workspace/dist/project-linking.d.ts +48 -0
- package/node_modules/@ykdz/template-workspace/dist/project-linking.js +218 -0
- package/node_modules/@ykdz/template-workspace/dist/project-requirements.d.ts +17 -0
- package/node_modules/@ykdz/template-workspace/dist/reference-package.d.ts +146 -0
- package/node_modules/@ykdz/template-workspace/dist/reference-package.js +521 -0
- package/node_modules/@ykdz/template-workspace/dist/release-toolchain-snapshot.d.ts +6 -0
- package/node_modules/@ykdz/template-workspace/dist/release-toolchain-snapshot.js +6 -0
- package/node_modules/@ykdz/template-workspace/dist/root-projection.d.ts +29 -0
- package/node_modules/@ykdz/template-workspace/dist/root-projection.js +144 -0
- package/node_modules/@ykdz/template-workspace/dist/rust-target-projection.d.ts +35 -0
- package/node_modules/@ykdz/template-workspace/dist/rust-target-projection.js +74 -0
- package/node_modules/@ykdz/template-workspace/dist/rust-toolchain-facts.d.ts +22 -0
- package/node_modules/@ykdz/template-workspace/dist/rust-toolchain-facts.js +64 -0
- package/node_modules/@ykdz/template-workspace/dist/shared-root-files.d.ts +99 -0
- package/node_modules/@ykdz/template-workspace/dist/shared-root-files.js +159 -0
- package/node_modules/@ykdz/template-workspace/dist/vue-policy.d.ts +5 -0
- package/node_modules/@ykdz/template-workspace/dist/vue-policy.js +5 -0
- package/node_modules/@ykdz/template-workspace/dist/workspace-policy-snapshot.d.ts +20 -0
- package/node_modules/@ykdz/template-workspace/dist/workspace-policy-snapshot.js +86 -0
- package/node_modules/@ykdz/template-workspace/dist/workspace-resources.d.ts +23 -0
- package/node_modules/@ykdz/template-workspace/dist/workspace-resources.js +83 -0
- package/node_modules/@ykdz/template-workspace/package.json +135 -0
- package/node_modules/@ykdz/template-workspace/resources/oxfmt.config.ts +1 -0
- package/node_modules/@ykdz/template-workspace/resources/oxlint.config.ts +4 -0
- package/node_modules/@ykdz/template-workspace/scripts/sync-snapshot.ts +27 -0
- package/node_modules/@ykdz/template-workspace/scripts/task-gates.ts +631 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/content-artifact.d.ts +57 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/content-artifact.js +168 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/package-name-projection.d.ts +2 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/package-name-projection.js +22 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/resource-ignore-snapshot.d.ts +1 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/resource-ignore-snapshot.js +2 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/typescript-module-specifiers.d.ts +2 -0
- package/node_modules/@ykdz/template-workspace-authoring/dist/typescript-module-specifiers.js +36 -0
- package/node_modules/@ykdz/template-workspace-authoring/package.json +55 -0
- package/node_modules/eslint-visitor-keys/LICENSE +201 -0
- package/node_modules/eslint-visitor-keys/README.md +123 -0
- package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.cjs +187 -0
- package/node_modules/eslint-visitor-keys/dist/eslint-visitor-keys.d.cts +28 -0
- package/node_modules/eslint-visitor-keys/dist/index.d.ts +16 -0
- package/node_modules/eslint-visitor-keys/dist/visitor-keys.d.ts +12 -0
- package/node_modules/eslint-visitor-keys/lib/index.js +67 -0
- package/node_modules/eslint-visitor-keys/lib/visitor-keys.js +118 -0
- package/node_modules/eslint-visitor-keys/package.json +57 -0
- package/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/ignore/README.md +501 -0
- package/node_modules/ignore/index.d.ts +81 -0
- package/node_modules/ignore/index.js +1566 -0
- package/node_modules/ignore/legacy.js +1346 -0
- package/node_modules/ignore/package.json +93 -0
- package/node_modules/smol-toml/dist/extract.js +5 -1
- package/node_modules/smol-toml/dist/index.cjs +2 -1
- package/node_modules/smol-toml/package.json +6 -6
- package/node_modules/toml-eslint-parser/LICENSE +21 -0
- package/node_modules/toml-eslint-parser/README.md +192 -0
- package/node_modules/toml-eslint-parser/lib/chunk-15K8U1wQ.mjs +18 -0
- package/node_modules/toml-eslint-parser/lib/index.d.mts +284 -0
- package/node_modules/toml-eslint-parser/lib/index.mjs +2219 -0
- package/node_modules/toml-eslint-parser/package.json +102 -0
- package/node_modules/typescript-7/LICENSE +55 -0
- package/node_modules/typescript-7/NOTICE.txt +436 -0
- package/node_modules/typescript-7/README.md +49 -0
- package/node_modules/typescript-7/bin/tsc +2 -0
- package/node_modules/typescript-7/dist/api/async/api.d.ts +529 -0
- package/node_modules/typescript-7/dist/api/async/api.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/async/api.js +1657 -0
- package/node_modules/typescript-7/dist/api/async/api.js.map +1 -0
- package/node_modules/typescript-7/dist/api/async/client.d.ts +39 -0
- package/node_modules/typescript-7/dist/api/async/client.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/async/client.js +211 -0
- package/node_modules/typescript-7/dist/api/async/client.js.map +1 -0
- package/node_modules/typescript-7/dist/api/async/types.d.ts +310 -0
- package/node_modules/typescript-7/dist/api/async/types.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/async/types.js +2 -0
- package/node_modules/typescript-7/dist/api/async/types.js.map +1 -0
- package/node_modules/typescript-7/dist/api/compilerOptions.d.ts +109 -0
- package/node_modules/typescript-7/dist/api/compilerOptions.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/compilerOptions.js +2 -0
- package/node_modules/typescript-7/dist/api/compilerOptions.js.map +1 -0
- package/node_modules/typescript-7/dist/api/fs.d.ts +23 -0
- package/node_modules/typescript-7/dist/api/fs.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/fs.js +109 -0
- package/node_modules/typescript-7/dist/api/fs.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/encoder.d.ts +15 -0
- package/node_modules/typescript-7/dist/api/node/encoder.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/encoder.generated.d.ts +5 -0
- package/node_modules/typescript-7/dist/api/node/encoder.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/encoder.generated.js +74 -0
- package/node_modules/typescript-7/dist/api/node/encoder.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/encoder.js +287 -0
- package/node_modules/typescript-7/dist/api/node/encoder.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/msgpack.d.ts +32 -0
- package/node_modules/typescript-7/dist/api/node/msgpack.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/msgpack.js +213 -0
- package/node_modules/typescript-7/dist/api/node/msgpack.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.d.ts +76 -0
- package/node_modules/typescript-7/dist/api/node/node.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.generated.d.ts +182 -0
- package/node_modules/typescript-7/dist/api/node/node.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.generated.js +835 -0
- package/node_modules/typescript-7/dist/api/node/node.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.d.ts +62 -0
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.js +122 -0
- package/node_modules/typescript-7/dist/api/node/node.infrastructure.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/node.js +298 -0
- package/node_modules/typescript-7/dist/api/node/node.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/protocol.d.ts +29 -0
- package/node_modules/typescript-7/dist/api/node/protocol.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/protocol.generated.d.ts +4 -0
- package/node_modules/typescript-7/dist/api/node/protocol.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/protocol.generated.js +241 -0
- package/node_modules/typescript-7/dist/api/node/protocol.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/protocol.js +30 -0
- package/node_modules/typescript-7/dist/api/node/protocol.js.map +1 -0
- package/node_modules/typescript-7/dist/api/node/wtf8.d.ts +6 -0
- package/node_modules/typescript-7/dist/api/node/wtf8.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/node/wtf8.js +61 -0
- package/node_modules/typescript-7/dist/api/node/wtf8.js.map +1 -0
- package/node_modules/typescript-7/dist/api/options.d.ts +32 -0
- package/node_modules/typescript-7/dist/api/options.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/options.js +11 -0
- package/node_modules/typescript-7/dist/api/options.js.map +1 -0
- package/node_modules/typescript-7/dist/api/path.d.ts +110 -0
- package/node_modules/typescript-7/dist/api/path.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/path.js +508 -0
- package/node_modules/typescript-7/dist/api/path.js.map +1 -0
- package/node_modules/typescript-7/dist/api/proto.d.ts +239 -0
- package/node_modules/typescript-7/dist/api/proto.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/proto.js +37 -0
- package/node_modules/typescript-7/dist/api/proto.js.map +1 -0
- package/node_modules/typescript-7/dist/api/sourceFileCache.d.ts +79 -0
- package/node_modules/typescript-7/dist/api/sourceFileCache.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/sourceFileCache.js +169 -0
- package/node_modules/typescript-7/dist/api/sourceFileCache.js.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/api.d.ts +529 -0
- package/node_modules/typescript-7/dist/api/sync/api.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/api.js +1665 -0
- package/node_modules/typescript-7/dist/api/sync/api.js.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/client.d.ts +30 -0
- package/node_modules/typescript-7/dist/api/sync/client.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/client.js +124 -0
- package/node_modules/typescript-7/dist/api/sync/client.js.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/types.d.ts +310 -0
- package/node_modules/typescript-7/dist/api/sync/types.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/sync/types.js +2 -0
- package/node_modules/typescript-7/dist/api/sync/types.js.map +1 -0
- package/node_modules/typescript-7/dist/api/syncChannel.d.ts +114 -0
- package/node_modules/typescript-7/dist/api/syncChannel.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/syncChannel.js +508 -0
- package/node_modules/typescript-7/dist/api/syncChannel.js.map +1 -0
- package/node_modules/typescript-7/dist/api/timing.d.ts +175 -0
- package/node_modules/typescript-7/dist/api/timing.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/api/timing.js +149 -0
- package/node_modules/typescript-7/dist/api/timing.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/ast.d.ts +100 -0
- package/node_modules/typescript-7/dist/ast/ast.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/ast.generated.d.ts +1161 -0
- package/node_modules/typescript-7/dist/ast/ast.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/ast.generated.js +4 -0
- package/node_modules/typescript-7/dist/ast/ast.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/ast.js +7 -0
- package/node_modules/typescript-7/dist/ast/ast.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/astnav.d.ts +19 -0
- package/node_modules/typescript-7/dist/ast/astnav.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/astnav.js +596 -0
- package/node_modules/typescript-7/dist/ast/astnav.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/clone.d.ts +16 -0
- package/node_modules/typescript-7/dist/ast/clone.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/clone.js +104 -0
- package/node_modules/typescript-7/dist/ast/clone.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/factory.generated.d.ts +520 -0
- package/node_modules/typescript-7/dist/ast/factory.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/factory.generated.js +3057 -0
- package/node_modules/typescript-7/dist/ast/factory.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/index.d.ts +20 -0
- package/node_modules/typescript-7/dist/ast/index.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/index.js +20 -0
- package/node_modules/typescript-7/dist/ast/index.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/is.d.ts +35 -0
- package/node_modules/typescript-7/dist/ast/is.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/is.generated.d.ts +329 -0
- package/node_modules/typescript-7/dist/ast/is.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/is.generated.js +1103 -0
- package/node_modules/typescript-7/dist/ast/is.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/is.js +233 -0
- package/node_modules/typescript-7/dist/ast/is.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/jsdoc.d.ts +11 -0
- package/node_modules/typescript-7/dist/ast/jsdoc.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/jsdoc.js +202 -0
- package/node_modules/typescript-7/dist/ast/jsdoc.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/scanner.d.ts +97 -0
- package/node_modules/typescript-7/dist/ast/scanner.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/scanner.js +2230 -0
- package/node_modules/typescript-7/dist/ast/scanner.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/utils.d.ts +17 -0
- package/node_modules/typescript-7/dist/ast/utils.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/utils.js +67 -0
- package/node_modules/typescript-7/dist/ast/utils.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/visitor.d.ts +14 -0
- package/node_modules/typescript-7/dist/ast/visitor.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/visitor.generated.d.ts +50 -0
- package/node_modules/typescript-7/dist/ast/visitor.generated.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/ast/visitor.generated.js +978 -0
- package/node_modules/typescript-7/dist/ast/visitor.generated.js.map +1 -0
- package/node_modules/typescript-7/dist/ast/visitor.js +47 -0
- package/node_modules/typescript-7/dist/ast/visitor.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.d.ts +129 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.js +132 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.js +130 -0
- package/node_modules/typescript-7/dist/enums/characterCodes.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.d.ts +5 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.js +6 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.js +6 -0
- package/node_modules/typescript-7/dist/enums/commentDirectiveType.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.d.ts +28 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.js +30 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.js +30 -0
- package/node_modules/typescript-7/dist/enums/completionItemKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.d.ts +7 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.js +9 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.js +9 -0
- package/node_modules/typescript-7/dist/enums/diagnosticCategory.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.d.ts +12 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.js +14 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.js +14 -0
- package/node_modules/typescript-7/dist/enums/elementFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.d.ts +23 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.js +25 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.js +25 -0
- package/node_modules/typescript-7/dist/enums/internalSymbolName.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.d.ts +9 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.js +11 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.js +11 -0
- package/node_modules/typescript-7/dist/enums/jsxEmit.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.d.ts +5 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.js +6 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.js +6 -0
- package/node_modules/typescript-7/dist/enums/languageVariant.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.d.ts +42 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.js +44 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.js +44 -0
- package/node_modules/typescript-7/dist/enums/modifierFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.d.ts +7 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.js +9 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.js +9 -0
- package/node_modules/typescript-7/dist/enums/moduleDetectionKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.d.ts +17 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.js +19 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.js +19 -0
- package/node_modules/typescript-7/dist/enums/moduleKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.d.ts +9 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.js +11 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.js +11 -0
- package/node_modules/typescript-7/dist/enums/moduleResolutionKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.d.ts +6 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.js +8 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.js +8 -0
- package/node_modules/typescript-7/dist/enums/newLineKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.d.ts +36 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.js +38 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.js +38 -0
- package/node_modules/typescript-7/dist/enums/nodeBuilderFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.d.ts +44 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.js +46 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.js +46 -0
- package/node_modules/typescript-7/dist/enums/nodeFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.d.ts +50 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.js +52 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.js +52 -0
- package/node_modules/typescript-7/dist/enums/objectFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.d.ts +16 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.js +18 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.js +18 -0
- package/node_modules/typescript-7/dist/enums/outerExpressionKinds.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.d.ts +13 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.js +14 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.js +14 -0
- package/node_modules/typescript-7/dist/enums/regularExpressionFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.d.ts +11 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.js +12 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.js +12 -0
- package/node_modules/typescript-7/dist/enums/scriptKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.d.ts +17 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.js +18 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.js +18 -0
- package/node_modules/typescript-7/dist/enums/scriptTarget.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.d.ts +15 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.js +17 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.js +17 -0
- package/node_modules/typescript-7/dist/enums/signatureFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.d.ts +5 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.js +7 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.js +7 -0
- package/node_modules/typescript-7/dist/enums/signatureKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.d.ts +71 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.js +73 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.js +73 -0
- package/node_modules/typescript-7/dist/enums/symbolFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.d.ts +389 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.js +391 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.js +391 -0
- package/node_modules/typescript-7/dist/enums/syntaxKind.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.d.ts +30 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.js +32 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.js +32 -0
- package/node_modules/typescript-7/dist/enums/tokenFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.d.ts +76 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.js +78 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.js +78 -0
- package/node_modules/typescript-7/dist/enums/typeFlags.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.d.ts +2 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.d.ts +7 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.js +9 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.enum.js.map +1 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.js +9 -0
- package/node_modules/typescript-7/dist/enums/typePredicateKind.js.map +1 -0
- package/node_modules/typescript-7/dist/internal/utils.d.ts +23 -0
- package/node_modules/typescript-7/dist/internal/utils.d.ts.map +1 -0
- package/node_modules/typescript-7/dist/internal/utils.js +25 -0
- package/node_modules/typescript-7/dist/internal/utils.js.map +1 -0
- package/node_modules/typescript-7/lib/getExePath.d.ts +2 -0
- package/node_modules/typescript-7/lib/getExePath.js +70 -0
- package/node_modules/typescript-7/lib/tsc.js +28 -0
- package/node_modules/typescript-7/lib/version.cjs +3 -0
- package/node_modules/typescript-7/lib/version.d.cts +2 -0
- package/node_modules/typescript-7/package.json +87 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/License.txt +11 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/README.md +54 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/main.d.ts +17 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/main.js +83 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/ril.d.ts +22 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/browser/ril.js +210 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/api.d.ts +14 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/api.js +87 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/cancellation.d.ts +32 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/cancellation.js +132 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/connection.d.ts +367 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/connection.js +1271 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/disposable.d.ts +9 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/disposable.js +16 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/encoding.d.ts +52 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/encoding.js +70 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/events.d.ts +39 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/events.js +135 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/is.d.ts +7 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/is.js +34 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/linkedMap.d.ts +55 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/linkedMap.js +412 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageBuffer.d.ts +18 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageBuffer.js +155 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageReader.d.ts +77 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageReader.js +246 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageWriter.d.ts +60 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messageWriter.js +157 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messages.d.ts +369 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/messages.js +436 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/ral.d.ts +74 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/ral.js +23 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/semaphore.d.ts +10 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/semaphore.js +74 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +15 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +77 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/main.d.ts +58 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/main.js +289 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/ril.d.ts +12 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/lib/node/ril.js +163 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/package.json +54 -0
- package/node_modules/typescript-7/vendor/vscode-jsonrpc/typings/thenable.d.ts +5 -0
- package/package.json +110 -34
- package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.d.ts +0 -243
- package/node_modules/@ykdz/template-builtin-presets/dist/src/foundation.js +0 -3567
- package/node_modules/@ykdz/template-builtin-presets/dist/src/generation-record.d.ts +0 -58
- package/node_modules/@ykdz/template-builtin-presets/dist/src/generation-record.js +0 -178
- package/node_modules/@ykdz/template-builtin-presets/dist/src/index.d.ts +0 -4
- package/node_modules/@ykdz/template-builtin-presets/dist/src/index.js +0 -3
- package/node_modules/@ykdz/template-builtin-presets/dist/src/rust-bin/definition.d.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/dist/src/rust-bin/definition.js +0 -193
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/development-container.d.ts +0 -3
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/development-container.js +0 -52
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/typescript.d.ts +0 -16
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/typescript.js +0 -74
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.d.ts +0 -36
- package/node_modules/@ykdz/template-builtin-presets/dist/src/shared/vue.js +0 -117
- package/node_modules/@ykdz/template-builtin-presets/dist/src/template-sources.d.ts +0 -15
- package/node_modules/@ykdz/template-builtin-presets/dist/src/template-sources.js +0 -27
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-cli/definition.d.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-cli/definition.js +0 -253
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-lib/definition.d.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/dist/src/ts-lib/definition.js +0 -155
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.d.ts +0 -48
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vike-app/definition.js +0 -541
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-app/definition.d.ts +0 -26
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-app/definition.js +0 -113
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-hono-app/definition.d.ts +0 -22
- package/node_modules/@ykdz/template-builtin-presets/dist/src/vue-hono-app/definition.js +0 -204
- package/node_modules/@ykdz/template-builtin-presets/package.json +0 -107
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/dependabot-rust.yml +0 -41
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/dependabot.dynamic.template +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/dependabot.yml +0 -33
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-deployment-diagnostics.yml +0 -82
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-deployment.yml +0 -42
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check-diagnostics.yml +0 -80
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.github/workflows/check.yml +0 -40
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/.pnpmfile.mjs +0 -19
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/TODO.md.template +0 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/devcontainer.json +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.dynamic.txt +0 -24
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/pnpm-workspace.yaml +0 -35
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/check-toolchain-versions.ts +0 -556
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/node-test-count-reporter.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/run-rust-tests.ts +0 -100
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/run-turbo-boundaries.ts +0 -74
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/scripts/task-gates.ts +0 -589
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/tsconfig.packing-hook.json +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-boundary-tags/app.json +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-boundary-tags/library.json +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-projections/database-preparation.json +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-projections/deployment.json +0 -13
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-projections/rust-toolchain.json +0 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo-projections/vue-hono-joint-e2e.json +0 -13
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/turbo.json +0 -20
- package/node_modules/@ykdz/template-builtin-presets/templates/foundation/typescript-config/turbo.json +0 -33
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.github/dependabot.yml +0 -41
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.vscode/extensions.json +0 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/.vscode/settings.json +0 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/Cargo.lock +0 -16
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/Cargo.toml +0 -27
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/rust-toolchain.toml +0 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/tsconfig.scripts.json +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/rust-bin/turbo.json +0 -37
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/oxc/node/oxlint.config.ts +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/oxc/tsconfig.config.json +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/src/components/CounterButton.vue +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/src/style.css +0 -1
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/test/counter.browser.test.ts +0 -16
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/test/counter.node.test.ts +0 -15
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.app.json +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.json +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.node.json +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/tsconfig.test.json +0 -10
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/typescript/run-vue-tsc.ts +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/shared/vue/vitest.config.ts +0 -50
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/CHANGELOG.md.template +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/RELEASING.md +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/artifact.ts +0 -1340
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/changelog.ts +0 -283
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/check-artifact.ts +0 -110
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/check-readiness.ts +0 -66
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/cli-command-identity.ts +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/handoff.ts +0 -522
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/publish.ts +0 -483
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/readiness.ts +0 -1150
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/release.ts +0 -819
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/release.yml +0 -122
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/root-tsconfig.json +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/tsconfig.json +0 -4
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication/turbo.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/README.md +0 -48
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/CHANGELOG.md.template +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/LICENSE-APACHE-2.0.txt +0 -202
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/LICENSE-MIT.txt +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/assets/README.md.template +0 -5
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/bridge.ts +0 -3336
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/publication-setup/setup.sh +0 -221
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/cli.ts +0 -17
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/main.ts +0 -162
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/src/standard-schema.ts +0 -37
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/e2e/journey.ts +0 -31
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/e2e/journeys/lookup.journey.ts +0 -71
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/e2e/run-journeys.test.ts +0 -11
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/e2e/run-journeys.ts +0 -255
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/integration/command.test.ts +0 -146
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/test/unit/cli-command-identity.test.ts +0 -76
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/tsconfig.build.json +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/tsconfig.json +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-cli/turbo.json +0 -64
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/.github/dependabot.yml +0 -33
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/tsconfig.build.json +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/tsconfig.json +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/ts-lib/turbo.json +0 -47
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/scripts/reset.ts +0 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/tsconfig.build.json +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/tsconfig.json +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db/turbo.json +0 -46
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/drizzle.config.ts +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/tsconfig.json +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/db-migrations/turbo.json +0 -53
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/Dockerfile +0 -81
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/Dockerfile.dockerignore +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/components/CounterButton.vue +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/pages/index/+Page.telefunc.ts +0 -12
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/pages/index/+Page.vue +0 -93
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/scripts/check-standalone-deployment.ts +0 -553
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/server/app.ts +0 -36
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/test/counter.browser.test.ts +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/test/e2e/app.spec.ts +0 -18
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.app.json +0 -26
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.json +0 -8
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.node.json +0 -21
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/tsconfig.test.json +0 -15
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/turbo.json +0 -69
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/types/global.d.ts +0 -9
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/vite.config.ts +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vike-app/web/vitest.config.ts +0 -35
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/.github/dependabot.yml +0 -33
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/test/e2e/app.spec.ts +0 -14
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/turbo.json +0 -71
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-app/vite.config.ts +0 -7
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/tsconfig.build.json +0 -10
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/tsconfig.json +0 -16
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/api/turbo.json +0 -54
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/playwright.config.ts +0 -34
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/test/e2e/app.spec.ts +0 -15
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/root/tsconfig.json +0 -3
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/src/App.vue +0 -51
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/turbo.json +0 -65
- package/node_modules/@ykdz/template-builtin-presets/templates/vue-hono-app/web/vite.config.ts +0 -27
- package/node_modules/@ykdz/template-core/dist/Cargo.lock +0 -16
- package/node_modules/@ykdz/template-core/dist/Cargo.toml +0 -12
- package/node_modules/@ykdz/template-core/dist/ci-diagnostic-artifact.d.ts +0 -19
- package/node_modules/@ykdz/template-core/dist/ci-diagnostic-artifact.js +0 -76
- package/node_modules/@ykdz/template-core/dist/dependency-catalog.d.ts +0 -33
- package/node_modules/@ykdz/template-core/dist/dependency-catalog.js +0 -238
- package/node_modules/@ykdz/template-core/dist/development-container-tool-layer.d.ts +0 -56
- package/node_modules/@ykdz/template-core/dist/development-container-tool-layer.js +0 -361
- package/node_modules/@ykdz/template-core/dist/editor-customization.d.ts +0 -17
- package/node_modules/@ykdz/template-core/dist/editor-customization.js +0 -73
- package/node_modules/@ykdz/template-core/dist/module-graph.d.ts +0 -53
- package/node_modules/@ykdz/template-core/dist/module-graph.js +0 -167
- package/node_modules/@ykdz/template-core/dist/pnpm-workspace.yaml +0 -75
- package/node_modules/@ykdz/template-core/dist/project-github.d.ts +0 -25
- package/node_modules/@ykdz/template-core/dist/project-github.js +0 -88
- package/node_modules/@ykdz/template-core/dist/project-linking-v2.d.ts +0 -31
- package/node_modules/@ykdz/template-core/dist/project-linking-v2.js +0 -143
- package/node_modules/@ykdz/template-core/dist/release-toolchain-snapshot.d.ts +0 -10
- package/node_modules/@ykdz/template-core/dist/release-toolchain-snapshot.js +0 -9
- package/node_modules/@ykdz/template-core/dist/template-boundary-check.d.ts +0 -58
- package/node_modules/@ykdz/template-core/dist/template-boundary-check.js +0 -839
- package/node_modules/@ykdz/template-core/node_modules/valibot/LICENSE.md +0 -9
- package/node_modules/@ykdz/template-core/node_modules/valibot/README.md +0 -94
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.cjs +0 -7897
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.d.cts +0 -16579
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.d.mts +0 -16579
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.min.cjs +0 -2
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.min.mjs +0 -2
- package/node_modules/@ykdz/template-core/node_modules/valibot/dist/index.mjs +0 -7577
- package/node_modules/@ykdz/template-core/node_modules/valibot/package.json +0 -84
- package/node_modules/npm-package-arg/node_modules/semver/LICENSE +0 -15
- package/node_modules/npm-package-arg/node_modules/semver/README.md +0 -680
- package/node_modules/npm-package-arg/node_modules/semver/bin/semver.js +0 -195
- package/node_modules/npm-package-arg/node_modules/semver/classes/comparator.js +0 -143
- package/node_modules/npm-package-arg/node_modules/semver/classes/index.js +0 -7
- package/node_modules/npm-package-arg/node_modules/semver/classes/range.js +0 -577
- package/node_modules/npm-package-arg/node_modules/semver/classes/semver.js +0 -350
- package/node_modules/npm-package-arg/node_modules/semver/functions/clean.js +0 -8
- package/node_modules/npm-package-arg/node_modules/semver/functions/cmp.js +0 -54
- package/node_modules/npm-package-arg/node_modules/semver/functions/coerce.js +0 -62
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare-build.js +0 -9
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare-loose.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/compare.js +0 -7
- package/node_modules/npm-package-arg/node_modules/semver/functions/diff.js +0 -60
- package/node_modules/npm-package-arg/node_modules/semver/functions/eq.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/gt.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/gte.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/inc.js +0 -21
- package/node_modules/npm-package-arg/node_modules/semver/functions/lt.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/lte.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/major.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/minor.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/neq.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/parse.js +0 -18
- package/node_modules/npm-package-arg/node_modules/semver/functions/patch.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/prerelease.js +0 -8
- package/node_modules/npm-package-arg/node_modules/semver/functions/rcompare.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/rsort.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/satisfies.js +0 -12
- package/node_modules/npm-package-arg/node_modules/semver/functions/sort.js +0 -5
- package/node_modules/npm-package-arg/node_modules/semver/functions/truncate.js +0 -48
- package/node_modules/npm-package-arg/node_modules/semver/functions/valid.js +0 -8
- package/node_modules/npm-package-arg/node_modules/semver/index.js +0 -93
- package/node_modules/npm-package-arg/node_modules/semver/internal/constants.js +0 -37
- package/node_modules/npm-package-arg/node_modules/semver/internal/debug.js +0 -11
- package/node_modules/npm-package-arg/node_modules/semver/internal/identifiers.js +0 -29
- package/node_modules/npm-package-arg/node_modules/semver/internal/lrucache.js +0 -42
- package/node_modules/npm-package-arg/node_modules/semver/internal/parse-options.js +0 -17
- package/node_modules/npm-package-arg/node_modules/semver/internal/re.js +0 -223
- package/node_modules/npm-package-arg/node_modules/semver/package.json +0 -78
- package/node_modules/npm-package-arg/node_modules/semver/preload.js +0 -4
- package/node_modules/npm-package-arg/node_modules/semver/range.bnf +0 -17
- package/node_modules/npm-package-arg/node_modules/semver/ranges/gtr.js +0 -6
- package/node_modules/npm-package-arg/node_modules/semver/ranges/intersects.js +0 -9
- package/node_modules/npm-package-arg/node_modules/semver/ranges/ltr.js +0 -6
- package/node_modules/npm-package-arg/node_modules/semver/ranges/max-satisfying.js +0 -27
- package/node_modules/npm-package-arg/node_modules/semver/ranges/min-satisfying.js +0 -26
- package/node_modules/npm-package-arg/node_modules/semver/ranges/min-version.js +0 -63
- package/node_modules/npm-package-arg/node_modules/semver/ranges/outside.js +0 -82
- package/node_modules/npm-package-arg/node_modules/semver/ranges/simplify.js +0 -49
- package/node_modules/npm-package-arg/node_modules/semver/ranges/subset.js +0 -249
- package/node_modules/npm-package-arg/node_modules/semver/ranges/to-comparators.js +0 -10
- package/node_modules/npm-package-arg/node_modules/semver/ranges/valid.js +0 -13
- package/node_modules/unbash/LICENSE +0 -15
- package/node_modules/unbash/README.md +0 -289
- package/node_modules/unbash/dist/ansi-c.d.ts +0 -5
- package/node_modules/unbash/dist/ansi-c.js +0 -130
- package/node_modules/unbash/dist/arithmetic.d.ts +0 -11
- package/node_modules/unbash/dist/arithmetic.js +0 -530
- package/node_modules/unbash/dist/assignment.d.ts +0 -15
- package/node_modules/unbash/dist/assignment.js +0 -118
- package/node_modules/unbash/dist/chars.d.ts +0 -41
- package/node_modules/unbash/dist/chars.js +0 -41
- package/node_modules/unbash/dist/command.d.ts +0 -14
- package/node_modules/unbash/dist/command.js +0 -41
- package/node_modules/unbash/dist/heredoc.d.ts +0 -18
- package/node_modules/unbash/dist/heredoc.js +0 -25
- package/node_modules/unbash/dist/internal-types.d.ts +0 -87
- package/node_modules/unbash/dist/lexer.d.ts +0 -202
- package/node_modules/unbash/dist/lexer.js +0 -3930
- package/node_modules/unbash/dist/parser.d.ts +0 -4
- package/node_modules/unbash/dist/parser.js +0 -1295
- package/node_modules/unbash/dist/parts.d.ts +0 -17
- package/node_modules/unbash/dist/parts.js +0 -82
- package/node_modules/unbash/dist/printer.d.ts +0 -2
- package/node_modules/unbash/dist/printer.js +0 -536
- package/node_modules/unbash/dist/types.d.ts +0 -494
- package/node_modules/unbash/dist/word.d.ts +0 -22
- package/node_modules/unbash/dist/word.js +0 -102
- package/node_modules/unbash/package.json +0 -80
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/root → preset-vue-hono-app/native/resources/joint-e2e}/test/e2e/fixtures.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/api → reference-hono-api/native}/src/index.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/api → reference-hono-api/native}/src/runtime.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/api → reference-hono-api/native}/src/server.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/api → reference-hono-api/native}/test/app.test.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/rust-bin → reference-rust-bin/native}/rustfmt.toml +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/rust-bin → reference-rust-bin/native}/src/main.rs +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/foundation/typescript-config → reference-tooling-config/native}/base.json +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared/oxc → reference-tooling-config/native}/oxfmt.config.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/ts-cli/src → reference-ts-cli/native/src/publication}/cli-command-identity.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/ts-lib → reference-ts-lib/native}/src/index.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/ts-lib → reference-ts-lib/native}/src/name-schema.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/ts-lib → reference-ts-lib/native}/test/greet.test.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/scripts/seed-example.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/db.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/index.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/queries/todos.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/readiness.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/schema.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/seed/example.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/storage.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/src/types.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db → reference-vike-db/native}/test/todos.test.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db-migrations → reference-vike-migrations/native}/drizzle/migrations/20260709120325_old_captain_flint/migration.sql +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db-migrations → reference-vike-migrations/native}/drizzle/migrations/20260709120325_old_captain_flint/snapshot.json +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/db-migrations → reference-vike-migrations/native}/tsconfig.build.json +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/+server.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/.env.example +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared/vue → reference-vike-web/native}/TESTING.md +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/assets/logo.svg +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/components/PageShell.vue +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/pages/+Head.vue +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/pages/+Layout.vue +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/pages/+config.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/pages/tailwind.css +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/playwright.config.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/server/api.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/test/playwright-teardown.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app/web → reference-vike-web/native}/types/env.d.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-app → reference-vue-app/native}/env.d.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-app → reference-vue-app/native}/index.html +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-app → reference-vue-app/native}/playwright.config.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-app → reference-vue-app/native}/src/App.vue +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared/vue → reference-vue-app/native}/src/main.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared/vue → reference-vue-app/native}/src/stores/counter.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/web → reference-vue-hono-web/native}/env.d.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/web → reference-vue-hono-web/native}/index.html +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vue-hono-app/web → reference-vue-hono-web/native}/src/api.ts +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/foundation/AGENTS.md.template → template-workspace/assets/agent-instructions.md} +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/foundation/devcontainer → template-workspace/assets/environment}/base.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared → template-workspace/assets/environment}/devcontainer/browser-test.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared → template-workspace/assets/environment}/devcontainer/github-cli.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/rust-bin → template-workspace/assets/environment}/devcontainer/rust.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/vike-app → template-workspace/assets/environment}/devcontainer/shellcheck.Dockerfile +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/shared → template-workspace/assets/environment}/editor-customization/capabilities.json +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/foundation → template-workspace/assets}/gitignore +0 -0
- /package/node_modules/@ykdz/{template-builtin-presets/templates/foundation → template-workspace/assets}/tsconfig.json +0 -0
- /package/node_modules/{unbash/dist/internal-types.js → @ykdz/template-workspace/dist/generation-context.js} +0 -0
- /package/node_modules/{unbash/dist/types.js → @ykdz/template-workspace/dist/project-requirements.js} +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/LICENSE +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/README.md +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/bin/semver.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/classes/comparator.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/classes/index.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/classes/range.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/classes/semver.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/clean.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/cmp.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/coerce.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/compare-build.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/compare-loose.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/compare.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/diff.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/eq.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/gt.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/gte.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/inc.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/lt.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/lte.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/major.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/minor.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/neq.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/parse.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/patch.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/prerelease.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/rcompare.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/rsort.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/satisfies.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/sort.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/truncate.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/functions/valid.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/index.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/constants.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/debug.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/identifiers.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/lrucache.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/parse-options.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/internal/re.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/package.json +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/preload.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/range.bnf +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/gtr.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/intersects.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/ltr.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/max-satisfying.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/min-satisfying.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/min-version.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/outside.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/simplify.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/subset.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/to-comparators.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/semver → semver}/ranges/valid.js +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/LICENSE.md +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/README.md +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.cjs +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.d.cts +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.d.mts +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.min.cjs +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.min.mjs +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/dist/index.mjs +0 -0
- /package/node_modules/{@ykdz/template-builtin-presets/node_modules/valibot → valibot}/package.json +0 -0
|
@@ -0,0 +1,1346 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
14
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
|
+
// A simple implementation of make-array
|
|
16
|
+
function makeArray(subject) {
|
|
17
|
+
return Array.isArray(subject) ? subject : [subject];
|
|
18
|
+
}
|
|
19
|
+
var UNDEFINED = undefined;
|
|
20
|
+
var EMPTY = '';
|
|
21
|
+
var SPACE = ' ';
|
|
22
|
+
var ESCAPE = '\\';
|
|
23
|
+
|
|
24
|
+
// The characters that carry a meaning of their own inside a regular
|
|
25
|
+
// expression, so a literal one has to be escaped before it is emitted.
|
|
26
|
+
var REGEX_LITERAL_SPECIAL = /[.*+?()[\]{}^$|\\/]/;
|
|
27
|
+
var BOM = "\uFEFF";
|
|
28
|
+
var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
|
|
29
|
+
var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
|
|
30
|
+
var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
|
|
31
|
+
var REGEX_SPLITALL_CRLF = /\r?\n/g;
|
|
32
|
+
|
|
33
|
+
// Invalid:
|
|
34
|
+
// - /foo,
|
|
35
|
+
// - ./foo,
|
|
36
|
+
// - ../foo,
|
|
37
|
+
// - .
|
|
38
|
+
// - ..
|
|
39
|
+
// Valid:
|
|
40
|
+
// - .foo
|
|
41
|
+
var DOUBLE_SLASH = '//';
|
|
42
|
+
var SLASH_CODE = 47;
|
|
43
|
+
var DOT_CODE = 46;
|
|
44
|
+
var SLASH = '/';
|
|
45
|
+
|
|
46
|
+
// Do not use ternary expression here, since "istanbul ignore next" is buggy
|
|
47
|
+
var TMP_KEY_IGNORE = 'node-ignore';
|
|
48
|
+
/* istanbul ignore else */
|
|
49
|
+
if (typeof Symbol !== 'undefined') {
|
|
50
|
+
TMP_KEY_IGNORE = Symbol["for"]('node-ignore');
|
|
51
|
+
}
|
|
52
|
+
var KEY_IGNORE = TMP_KEY_IGNORE;
|
|
53
|
+
var define = function define(object, key, value) {
|
|
54
|
+
Object.defineProperty(object, key, {
|
|
55
|
+
value: value
|
|
56
|
+
});
|
|
57
|
+
return value;
|
|
58
|
+
};
|
|
59
|
+
var RETURN_FALSE = function RETURN_FALSE() {
|
|
60
|
+
return false;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// See fixtures #59
|
|
64
|
+
var cleanRangeBackSlash = function cleanRangeBackSlash(slashes) {
|
|
65
|
+
var length = slashes.length;
|
|
66
|
+
return slashes.slice(0, length - length % 2);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// > The range notation, e.g. [a-zA-Z],
|
|
70
|
+
// > can be used to match one of the characters in a range.
|
|
71
|
+
//
|
|
72
|
+
// gitignore(5) defers to fnmatch(3) for this, and git implements it in
|
|
73
|
+
// `wildmatch.c`. A bracket expression has a sub-grammar of its own, which
|
|
74
|
+
// is neither the surrounding pattern grammar nor the JavaScript one:
|
|
75
|
+
//
|
|
76
|
+
// - a `]` right after `[` or `[!` is a literal member, not the terminator
|
|
77
|
+
// - `[:alpha:]` names one of twelve POSIX classes
|
|
78
|
+
// - `\` escapes the next member, `]` included
|
|
79
|
+
// - `*`, `?` and `.` are plain literal members
|
|
80
|
+
// - an unterminated expression makes the whole pattern match nothing
|
|
81
|
+
//
|
|
82
|
+
// which means the expression can not be located -- let alone translated -- by
|
|
83
|
+
// a regular expression. It is scanned out of the pattern before the
|
|
84
|
+
// replacers below run, and put back once they are done, so that neither the
|
|
85
|
+
// metacharacter escaper nor the `?` / `*` replacers ever see its body.
|
|
86
|
+
|
|
87
|
+
// git classifies with its own ASCII-only ctype macros (`wildmatch.c`), never
|
|
88
|
+
// with the C library ones, so these must not be mapped onto `\d` / `\w` /
|
|
89
|
+
// `\s`, which are wider. `/` is left out of every expansion, because a
|
|
90
|
+
// bracket expression never matches a path separator.
|
|
91
|
+
var POSIX_CLASSES = {
|
|
92
|
+
alnum: '0-9A-Za-z',
|
|
93
|
+
alpha: 'A-Za-z',
|
|
94
|
+
blank: ' \\t',
|
|
95
|
+
cntrl: '\\x00-\\x1f\\x7f',
|
|
96
|
+
digit: '0-9',
|
|
97
|
+
graph: '!-.0-~',
|
|
98
|
+
lower: 'a-z',
|
|
99
|
+
print: ' -.0-~',
|
|
100
|
+
punct: '!-.:-@\\[-`{-~',
|
|
101
|
+
// git's `sane-ctype.h` classifies \v and \f as control, not space,
|
|
102
|
+
// unlike C's `isspace`
|
|
103
|
+
space: ' \\t\\n\\r',
|
|
104
|
+
upper: 'A-Z',
|
|
105
|
+
xdigit: '0-9A-Fa-f'
|
|
106
|
+
};
|
|
107
|
+
var CLASS_MEMBERS_TO_ESCAPE = '\\]^-[';
|
|
108
|
+
var escapeMember = function escapeMember(_char) {
|
|
109
|
+
return CLASS_MEMBERS_TO_ESCAPE.indexOf(_char) < 0 ? _char : ESCAPE + _char;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
// > if (matched == negated || ((flags & WM_PATHNAME) && text_ch == '/'))
|
|
113
|
+
// > return WM_ABORT_TO_STARSTAR; (git, `wildmatch.c`)
|
|
114
|
+
// A bracket expression never matches a path separator, whatever its members
|
|
115
|
+
// say, so a negated class gets `/` as one more excluded character, while a
|
|
116
|
+
// plain one -- where a literal member or a range could still let `/` in --
|
|
117
|
+
// is guarded with a lookahead, `/` being impossible to subtract from a
|
|
118
|
+
// JavaScript character class.
|
|
119
|
+
var NON_SLASH = '(?!\\/)';
|
|
120
|
+
var classSource = function classSource(negated, body) {
|
|
121
|
+
if (negated) {
|
|
122
|
+
return "[^\\/".concat(body, "]");
|
|
123
|
+
}
|
|
124
|
+
var source = "[".concat(body, "]");
|
|
125
|
+
return new RegExp(source).test('/') ? NON_SLASH + source : source;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
// Scan the bracket expression that starts at `pattern[start] === '['`,
|
|
129
|
+
// mirroring the member loop of git's `wildmatch.c`.
|
|
130
|
+
// @returns {{end: number, source: string} | null} `null` if the expression is
|
|
131
|
+
// never terminated, which makes the whole pattern match nothing.
|
|
132
|
+
var scanBracket = function scanBracket(pattern, start) {
|
|
133
|
+
var length = pattern.length;
|
|
134
|
+
var index = start + 1;
|
|
135
|
+
var negated = EMPTY;
|
|
136
|
+
var lead = pattern[index];
|
|
137
|
+
if (lead === '!' || lead === '^') {
|
|
138
|
+
negated = '^';
|
|
139
|
+
index++;
|
|
140
|
+
}
|
|
141
|
+
var body = EMPTY;
|
|
142
|
+
|
|
143
|
+
// The member a `-` could start a range from, or EMPTY when the previous
|
|
144
|
+
// member can not open one (start of the body, or a range / POSIX class
|
|
145
|
+
// that has just closed)
|
|
146
|
+
var prev = EMPTY;
|
|
147
|
+
|
|
148
|
+
// git scans the members with a do-while, so the first one is consumed
|
|
149
|
+
// unconditionally. That is the whole reason a leading `]` is a member
|
|
150
|
+
// and not the terminator.
|
|
151
|
+
for (;;) {
|
|
152
|
+
var _char2 = pattern[index];
|
|
153
|
+
if (_char2 === UNDEFINED) {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
if (_char2 === ESCAPE) {
|
|
157
|
+
var escaped = pattern[index + 1];
|
|
158
|
+
if (escaped === UNDEFINED) {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
body += escapeMember(escaped);
|
|
162
|
+
prev = escaped;
|
|
163
|
+
index++;
|
|
164
|
+
} else if (_char2 === '-' && prev && index + 1 < length && pattern[index + 1] !== ']') {
|
|
165
|
+
index++;
|
|
166
|
+
var to = pattern[index];
|
|
167
|
+
if (to === ESCAPE) {
|
|
168
|
+
// A pattern can not end on a lone backslash -- `checkPattern` has
|
|
169
|
+
// already thrown it away -- so there is an upper bound to read.
|
|
170
|
+
to = pattern[index += 1];
|
|
171
|
+
}
|
|
172
|
+
// An out-of-order range matches nothing in git but is a syntax error in
|
|
173
|
+
// JavaScript, so it is dropped. Its lower bound stays: git tests it
|
|
174
|
+
// as a plain member before it ever looks at the `-`, so `[c-a]` does
|
|
175
|
+
// match `c`.
|
|
176
|
+
if (prev <= to) {
|
|
177
|
+
body += "-".concat(escapeMember(to));
|
|
178
|
+
}
|
|
179
|
+
prev = EMPTY;
|
|
180
|
+
} else if (_char2 === '[' && pattern[index + 1] === ':') {
|
|
181
|
+
var nameStart = index + 2;
|
|
182
|
+
var end = nameStart;
|
|
183
|
+
while (end < length && pattern[end] !== ']') {
|
|
184
|
+
end++;
|
|
185
|
+
}
|
|
186
|
+
if (end === length) {
|
|
187
|
+
return null;
|
|
188
|
+
}
|
|
189
|
+
if (end > nameStart && pattern[end - 1] === ':') {
|
|
190
|
+
var expanded = POSIX_CLASSES[pattern.slice(nameStart, end - 1)];
|
|
191
|
+
|
|
192
|
+
// An unknown class name makes the whole pattern match nothing
|
|
193
|
+
if (expanded === UNDEFINED) {
|
|
194
|
+
return null;
|
|
195
|
+
}
|
|
196
|
+
body += expanded;
|
|
197
|
+
prev = EMPTY;
|
|
198
|
+
index = end;
|
|
199
|
+
} else {
|
|
200
|
+
// No `:]` to close it, so the `[` is a plain member and scanning
|
|
201
|
+
// resumes right after it.
|
|
202
|
+
body += escapeMember('[');
|
|
203
|
+
prev = '[';
|
|
204
|
+
index = nameStart - 2;
|
|
205
|
+
}
|
|
206
|
+
} else {
|
|
207
|
+
body += escapeMember(_char2);
|
|
208
|
+
prev = _char2;
|
|
209
|
+
}
|
|
210
|
+
index++;
|
|
211
|
+
if (pattern[index] === ']') {
|
|
212
|
+
return {
|
|
213
|
+
end: index,
|
|
214
|
+
source: classSource(negated, body)
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
// An empty JavaScript class can never match, which is how a pattern that git
|
|
221
|
+
// gives up on (`WM_ABORT_ALL`) is expressed here.
|
|
222
|
+
var NEVER_MATCH = '[]';
|
|
223
|
+
|
|
224
|
+
// A NUL can appear in neither a `.gitignore` line nor a path, which makes it
|
|
225
|
+
// the one safe placeholder character. A literal one in the pattern is
|
|
226
|
+
// held aside all the same, so a collision is impossible by construction.
|
|
227
|
+
var PLACEHOLDER = "\0";
|
|
228
|
+
var REGEX_RESTORE_PLACEHOLDER = new RegExp("".concat(PLACEHOLDER, "(\\d+)").concat(PLACEHOLDER), 'g');
|
|
229
|
+
|
|
230
|
+
// The one wildcard the chain does not expand for itself is a trailing `*`. How
|
|
231
|
+
// it expands depends on the mode (`regex` vs `checkRegex`), so `_make` is
|
|
232
|
+
// left to do it, and until then the pending wildcard travels as this marker.
|
|
233
|
+
// That is what keeps it apart from a user-escaped literal `\*`: the unescape
|
|
234
|
+
// steps collapse the escaped one to the exact `\*` a wildcard would leave
|
|
235
|
+
// behind, so by the time `_make` runs the two are otherwise the same string
|
|
236
|
+
// and a literal star gets wrongly rewritten into a wildcard. This marker is a
|
|
237
|
+
// private-use character no compiled pattern carries, and it never survives
|
|
238
|
+
// into a `RegExp` -- `_make` always turns it back into a real wildcard first.
|
|
239
|
+
var TRAILING_WILDCARD = "\uE000";
|
|
240
|
+
|
|
241
|
+
// A trailing "/**" is deferred the same way, because `checkRegex` has to tell
|
|
242
|
+
// it apart from a trailing "/*" (see `checkSourceOf`). For `.ignores()` it
|
|
243
|
+
// still never matches the folder itself (#21).
|
|
244
|
+
var TRAILING_DOUBLESTAR = "\uE001";
|
|
245
|
+
|
|
246
|
+
// Replace every bracket expression with a placeholder the replacers below
|
|
247
|
+
// leave alone, and translate it separately.
|
|
248
|
+
var extractBrackets = function extractBrackets(pattern) {
|
|
249
|
+
var sources = [];
|
|
250
|
+
var hold = function hold(source) {
|
|
251
|
+
return "".concat(PLACEHOLDER).concat(sources.push(source) - 1).concat(PLACEHOLDER);
|
|
252
|
+
};
|
|
253
|
+
var length = pattern.length;
|
|
254
|
+
var out = EMPTY;
|
|
255
|
+
var index = 0;
|
|
256
|
+
while (index < length) {
|
|
257
|
+
var _char3 = pattern[index];
|
|
258
|
+
if (_char3 === ESCAPE) {
|
|
259
|
+
// > Put a backslash ("\") in front of ... a character to make it literal.
|
|
260
|
+
// (gitignore(5) -> fnmatch(3))
|
|
261
|
+
// A backslash quotes the next character, whatever it is, so `\d` is a
|
|
262
|
+
// literal `d`, not the regex digit class, and `\?` is a literal `?`,
|
|
263
|
+
// not a wildcard. Held aside as its literal here, the escape never
|
|
264
|
+
// reaches the replacers below, which would otherwise let `\d`, `\b`,
|
|
265
|
+
// `\1`, `\/` keep their regular-expression meaning, and would turn a
|
|
266
|
+
// `\?` into `[^\/]`.
|
|
267
|
+
//
|
|
268
|
+
// Four escapes are left for the chain, each with dedicated handling it
|
|
269
|
+
// would be wrong to bypass: `\*` (a literal star, told apart from a
|
|
270
|
+
// wildcard by `TRAILING_WILDCARD` and the wildcard replacers), `\[`
|
|
271
|
+
// (a literal bracket, the one `[` the bracket replacer still expects),
|
|
272
|
+
// `\ ` (a quoted trailing space), and `\\` (a literal backslash). A
|
|
273
|
+
// lone trailing backslash can reach here after line-ending cleanup.
|
|
274
|
+
var escaped = pattern[index + 1];
|
|
275
|
+
if (escaped === UNDEFINED || escaped === SLASH && index + 2 === length) {
|
|
276
|
+
// Git removes a final directory slash before matching. An escape
|
|
277
|
+
// without a character after that removal makes the pattern invalid.
|
|
278
|
+
out += hold(NEVER_MATCH);
|
|
279
|
+
} else if (escaped === '*' || escaped === '[' || escaped === SPACE || escaped === ESCAPE) {
|
|
280
|
+
out += pattern.slice(index, index + 2);
|
|
281
|
+
} else {
|
|
282
|
+
out += hold(REGEX_LITERAL_SPECIAL.test(escaped) ? ESCAPE + escaped : escaped);
|
|
283
|
+
}
|
|
284
|
+
index += 2;
|
|
285
|
+
} else if (_char3 === PLACEHOLDER) {
|
|
286
|
+
// Hold a literal placeholder character aside as well, so that pattern
|
|
287
|
+
// text can never be mistaken for a placeholder we emitted.
|
|
288
|
+
out += hold("[".concat(PLACEHOLDER, "]"));
|
|
289
|
+
index++;
|
|
290
|
+
} else if (_char3 === '[') {
|
|
291
|
+
var scanned = scanBracket(pattern, index);
|
|
292
|
+
if (scanned === null) {
|
|
293
|
+
// git gives up on the whole pattern (`WM_ABORT_ALL`), so whatever
|
|
294
|
+
// follows can not make it match either.
|
|
295
|
+
out += hold(NEVER_MATCH);
|
|
296
|
+
index = length;
|
|
297
|
+
} else {
|
|
298
|
+
out += hold(scanned.source);
|
|
299
|
+
index = scanned.end + 1;
|
|
300
|
+
}
|
|
301
|
+
} else {
|
|
302
|
+
out += _char3;
|
|
303
|
+
index++;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
return {
|
|
307
|
+
source: out,
|
|
308
|
+
sources: sources
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
// A step of the chain below is normally a `[matcher, replacer]` pair handed
|
|
313
|
+
// to `String.replace`. `DIRECT` marks the ones that are plain string work
|
|
314
|
+
// instead, and take `(source, pattern)`.
|
|
315
|
+
//
|
|
316
|
+
// Anchoring the two ends is exactly that -- a test of one character and a
|
|
317
|
+
// concatenation -- and putting it through the regular expression engine
|
|
318
|
+
// cost a third of this chain for nothing: 167ns where 10ns does the same
|
|
319
|
+
// job. The two are still steps in the same list, in the same places,
|
|
320
|
+
// because their position in the order is part of what they mean.
|
|
321
|
+
var DIRECT = null;
|
|
322
|
+
|
|
323
|
+
// A separator at the beginning or in the middle of a pattern, as opposed to
|
|
324
|
+
// one at the very end.
|
|
325
|
+
var REGEX_INNER_SLASH = /\/(?!$)/;
|
|
326
|
+
|
|
327
|
+
// > If the pattern ends with a slash,
|
|
328
|
+
// > it is removed for the purpose of the following description,
|
|
329
|
+
// > but it would only find a match with a directory.
|
|
330
|
+
// > In other words, foo/ will match a directory foo and paths underneath it,
|
|
331
|
+
// > but will not match a regular file or a symbolic link foo
|
|
332
|
+
// > (this is consistent with the way how pathspec works in general in Git).
|
|
333
|
+
// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
|
|
334
|
+
// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
|
|
335
|
+
// you could use option `mark: true` with `glob`
|
|
336
|
+
|
|
337
|
+
// '`foo/`' should not continue with the '`..`'
|
|
338
|
+
// The chain that turns one gitignore pattern into a regular expression
|
|
339
|
+
// source, in order. A step is either
|
|
340
|
+
//
|
|
341
|
+
// [matcher, replacer] handed to `String.replace`
|
|
342
|
+
// [matcher, replacer, required] the same, but skipped outright unless
|
|
343
|
+
// `required` appears in the string, which
|
|
344
|
+
// the matcher cannot match without
|
|
345
|
+
// [DIRECT, transform] plain string work, taking (source, pattern)
|
|
346
|
+
//
|
|
347
|
+
// The `required` character is only ever a shortcut: finding it does not mean
|
|
348
|
+
// the matcher will match, and not finding it means it cannot. It is there
|
|
349
|
+
// because scanning for one character costs a fraction of running a matcher
|
|
350
|
+
// that then finds nothing -- for the wildcard step, whose `[^\\]+`
|
|
351
|
+
// backtracks its way through the whole string before giving up, 11ns
|
|
352
|
+
// against 400ns.
|
|
353
|
+
var REPLACERS = [
|
|
354
|
+
// Replace (\ ) with ' '
|
|
355
|
+
// Only a space: an escaped tab or other whitespace is already a literal by
|
|
356
|
+
// the time it reaches here, and a bare tab must be left as one, not turned
|
|
357
|
+
// into a space.
|
|
358
|
+
// (\ ) -> ' '
|
|
359
|
+
// (\\ ) -> '\\ '
|
|
360
|
+
// (\\\ ) -> '\\ '
|
|
361
|
+
[
|
|
362
|
+
// A run of backslashes is taken whole, from its first one, so no match
|
|
363
|
+
// ever starts again inside it -- `(\\+?) ` did, which made a long run
|
|
364
|
+
// quadratic.
|
|
365
|
+
/(\\+)( ?)/g, function (_, run, space) {
|
|
366
|
+
return space ? run.slice(0, run.length - run.length % 2) + SPACE : run;
|
|
367
|
+
}, ESCAPE + SPACE],
|
|
368
|
+
// Escape metacharacters
|
|
369
|
+
// which is written down by users but means special for regular expressions.
|
|
370
|
+
|
|
371
|
+
// > There are 12 characters with special meanings:
|
|
372
|
+
// > - the backslash \,
|
|
373
|
+
// > - the caret ^,
|
|
374
|
+
// > - the dollar sign $,
|
|
375
|
+
// > - the period or dot .,
|
|
376
|
+
// > - the vertical bar or pipe symbol |,
|
|
377
|
+
// > - the question mark ?,
|
|
378
|
+
// > - the asterisk or star *,
|
|
379
|
+
// > - the plus sign +,
|
|
380
|
+
// > - the opening parenthesis (,
|
|
381
|
+
// > - the closing parenthesis ),
|
|
382
|
+
// > - and the opening square bracket [,
|
|
383
|
+
// > - the opening curly brace {,
|
|
384
|
+
// > These special characters are often called "metacharacters".
|
|
385
|
+
[/[\\$.|*+(){^]/g, function (match) {
|
|
386
|
+
return "\\".concat(match);
|
|
387
|
+
}], [
|
|
388
|
+
// > a question mark (?) matches a single character
|
|
389
|
+
/(?!\\)\?/g, function () {
|
|
390
|
+
return '[^/]';
|
|
391
|
+
}, '?'],
|
|
392
|
+
// leading slash
|
|
393
|
+
[
|
|
394
|
+
// > A leading slash matches the beginning of the pathname.
|
|
395
|
+
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
|
396
|
+
// A leading slash matches the beginning of the pathname
|
|
397
|
+
/^\//, function () {
|
|
398
|
+
return '^';
|
|
399
|
+
}, SLASH],
|
|
400
|
+
// replace special metacharacter slash after the leading slash
|
|
401
|
+
[/\//g, function () {
|
|
402
|
+
return '\\/';
|
|
403
|
+
}, SLASH], [
|
|
404
|
+
// > A leading "**" followed by a slash means match in all directories.
|
|
405
|
+
// > For example, "**/foo" matches file or directory "foo" anywhere,
|
|
406
|
+
// > the same as pattern "foo".
|
|
407
|
+
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
|
|
408
|
+
// > under directory "foo".
|
|
409
|
+
// Notice that the '*'s have been replaced as '\\*'
|
|
410
|
+
/^\^*(?:\\\*\\\*\\\/)+/,
|
|
411
|
+
// '**/foo' <-> 'foo'
|
|
412
|
+
function () {
|
|
413
|
+
return '^(?:.*\\/)?';
|
|
414
|
+
}, '*'],
|
|
415
|
+
// starting
|
|
416
|
+
[
|
|
417
|
+
// there will be no leading '/'
|
|
418
|
+
// (which has been replaced by section "leading slash")
|
|
419
|
+
// If starts with '**', adding a '^' to the regular expression also works
|
|
420
|
+
DIRECT, function (source, pattern) {
|
|
421
|
+
// Nothing to anchor to, or already anchored
|
|
422
|
+
if (!source || source[0] === '^') {
|
|
423
|
+
return source;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
// If has a slash `/` at the beginning or middle
|
|
427
|
+
var anchor = !REGEX_INNER_SLASH.test(pattern)
|
|
428
|
+
// > Prior to 2.22.1
|
|
429
|
+
// > If the pattern does not contain a slash /,
|
|
430
|
+
// > Git treats it as a shell glob pattern
|
|
431
|
+
// Actually, if there is only a trailing slash,
|
|
432
|
+
// git also treats it as a shell glob pattern
|
|
433
|
+
|
|
434
|
+
// After 2.22.1 (compatible but clearer)
|
|
435
|
+
// > If there is a separator at the beginning or middle (or both)
|
|
436
|
+
// > of the pattern, then the pattern is relative to the directory
|
|
437
|
+
// > level of the particular .gitignore file itself.
|
|
438
|
+
// > Otherwise the pattern may also match at any level below
|
|
439
|
+
// > the .gitignore level.
|
|
440
|
+
? '(?:^|\\/)'
|
|
441
|
+
|
|
442
|
+
// > Otherwise, Git treats the pattern as a shell glob suitable for
|
|
443
|
+
// > consumption by fnmatch(3)
|
|
444
|
+
: '^';
|
|
445
|
+
return anchor + source;
|
|
446
|
+
}],
|
|
447
|
+
// two globstars
|
|
448
|
+
[
|
|
449
|
+
// Use lookahead assertions so that we could match more than one `'/**'`
|
|
450
|
+
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
451
|
+
// Zero, one or several directories
|
|
452
|
+
// should not use '*', or it will be replaced by the next replacer
|
|
453
|
+
|
|
454
|
+
// Check if it is not the last `'/**'`
|
|
455
|
+
function (_, index, str) {
|
|
456
|
+
return index + 6 < str.length
|
|
457
|
+
|
|
458
|
+
// case: /**/ at the end of the pattern, i.e. a trailing `'/**/'`
|
|
459
|
+
// > A trailing `"/**/"` (a trailing `"/**"` restricted to directories)
|
|
460
|
+
// > matches everything inside, but it should not match the current
|
|
461
|
+
// > folder itself, so it requires at least one directory segment.
|
|
462
|
+
// 'a/**/' matches 'a/b/', 'a/x/y/' but not 'a/'
|
|
463
|
+
? str.slice(index + 6) === '\\/' ? '(?:\\/[^\\/]+)+'
|
|
464
|
+
|
|
465
|
+
// case: /**/
|
|
466
|
+
// > A slash followed by two consecutive asterisks then a slash matches
|
|
467
|
+
// > zero or more directories.
|
|
468
|
+
// > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on.
|
|
469
|
+
// '/**/'
|
|
470
|
+
: '(?:\\/[^\\/]+)*'
|
|
471
|
+
|
|
472
|
+
// case: /**
|
|
473
|
+
// > A trailing `"/**"` matches everything inside.
|
|
474
|
+
|
|
475
|
+
// #21: everything inside but it should not include the current folder,
|
|
476
|
+
// resolved by `_make`
|
|
477
|
+
: "\\/".concat(TRAILING_DOUBLESTAR);
|
|
478
|
+
}, '*'],
|
|
479
|
+
// normal intermediate wildcards
|
|
480
|
+
[
|
|
481
|
+
// Never replace escaped '*'
|
|
482
|
+
// ignore rule '\*' will match the path '*'
|
|
483
|
+
|
|
484
|
+
// 'abc.*/' -> go
|
|
485
|
+
// 'abc.*' -> skip this rule,
|
|
486
|
+
// coz trailing single wildcard will be handed by [trailing wildcard]
|
|
487
|
+
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
488
|
+
// '*.js' matches '.js'
|
|
489
|
+
// '*.js' doesn't match 'abc'
|
|
490
|
+
function (_, p1, p2) {
|
|
491
|
+
// 1.
|
|
492
|
+
// > An asterisk "*" matches anything except a slash.
|
|
493
|
+
// 2.
|
|
494
|
+
// > Other consecutive asterisks are considered regular asterisks
|
|
495
|
+
// > and will match according to the previous rules.
|
|
496
|
+
var unescaped = p2.replace(/\\\*/g, '[^\\/]*');
|
|
497
|
+
return p1 + unescaped;
|
|
498
|
+
}, '*'],
|
|
499
|
+
// trailing wildcard, held apart from a literal star
|
|
500
|
+
[
|
|
501
|
+
// The step above leaves a trailing `*` alone, so a single `\*` is all that
|
|
502
|
+
// can be left at the end here. Whether it is a wildcard or a literal
|
|
503
|
+
// turns on the backslashes the user put in front of it: the escaper has
|
|
504
|
+
// since doubled every one, so what stands here is those `2N` doubled
|
|
505
|
+
// backslashes and then the star's own escape. An even number of the
|
|
506
|
+
// original `N` leaves the star unescaped -- a wildcard -- and an odd
|
|
507
|
+
// number escapes it -- a literal. This runs while the two are still
|
|
508
|
+
// distinct, before the unescape steps below collapse the literal onto
|
|
509
|
+
// the very `\*` a wildcard leaves behind.
|
|
510
|
+
/(^|[^\\])((?:\\\\)*)\\\*$/, function (match, p1, p2) {
|
|
511
|
+
return (
|
|
512
|
+
// `p2` holds the doubled user backslashes; half of them is `N`.
|
|
513
|
+
p2.length / 2 % 2 === 0
|
|
514
|
+
// A real wildcard: carry it to `_make` as the marker, so the unescape
|
|
515
|
+
// steps and the trailing-wildcard rewrite can never mistake it for a
|
|
516
|
+
// literal `\*` (nor the reverse).
|
|
517
|
+
? p1 + p2 + TRAILING_WILDCARD
|
|
518
|
+
// A literal star: leave it exactly as it stands for the unescape steps.
|
|
519
|
+
: match
|
|
520
|
+
);
|
|
521
|
+
}, '*'], [
|
|
522
|
+
// unescape, revert step 3 except for back slash
|
|
523
|
+
// For example, if a user escape a '\\*',
|
|
524
|
+
// after step 3, the result will be '\\\\\\*'
|
|
525
|
+
/\\\\\\(?=[$.|*+(){^])/g, function () {
|
|
526
|
+
return ESCAPE;
|
|
527
|
+
}, ESCAPE + ESCAPE], [
|
|
528
|
+
// '\\\\' -> '\\'
|
|
529
|
+
/\\\\/g, function () {
|
|
530
|
+
return ESCAPE;
|
|
531
|
+
}, ESCAPE + ESCAPE], [
|
|
532
|
+
// Every real bracket expression -- POSIX classes included -- has already
|
|
533
|
+
// been held aside by `extractBrackets`, so the only `[` left in the
|
|
534
|
+
// pattern is an escaped, literal one.
|
|
535
|
+
|
|
536
|
+
// `\` is escaped by step 3
|
|
537
|
+
/\\\[([^\]/]*?)(\\*)($|\])/g,
|
|
538
|
+
// '\\[bar]' -> '\\\\[bar\\]'
|
|
539
|
+
function (match, range, endEscape, close) {
|
|
540
|
+
return "\\[".concat(range).concat(cleanRangeBackSlash(endEscape)).concat(close);
|
|
541
|
+
}, '['],
|
|
542
|
+
// ending
|
|
543
|
+
[
|
|
544
|
+
// 'js' will not match 'js.'
|
|
545
|
+
// 'ab' will not match 'abc'
|
|
546
|
+
DIRECT,
|
|
547
|
+
// WTF!
|
|
548
|
+
// https://git-scm.com/docs/gitignore
|
|
549
|
+
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
|
|
550
|
+
// which re-fixes #24, #38
|
|
551
|
+
|
|
552
|
+
// > If there is a separator at the end of the pattern then the pattern
|
|
553
|
+
// > will only match directories, otherwise the pattern can match both
|
|
554
|
+
// > files and directories.
|
|
555
|
+
|
|
556
|
+
// 'js*' will not match 'a.js'
|
|
557
|
+
// 'js/' will not match 'a.js'
|
|
558
|
+
// 'js' will match 'a.js' and 'a.js/'
|
|
559
|
+
function (source) {
|
|
560
|
+
var last = source[source.length - 1];
|
|
561
|
+
|
|
562
|
+
// The pattern is empty, or ends in a pending marker `_make` owns --
|
|
563
|
+
// the trailing wildcard, or a trailing "/**". A trailing `*` that is
|
|
564
|
+
// not the marker is a literal star, which anchors like any other
|
|
565
|
+
// final character.
|
|
566
|
+
if (!last || last === TRAILING_WILDCARD || last === TRAILING_DOUBLESTAR) {
|
|
567
|
+
return source;
|
|
568
|
+
}
|
|
569
|
+
return last === SLASH
|
|
570
|
+
// foo/ will not match 'foo'
|
|
571
|
+
? "".concat(source, "$") // foo matches 'foo' and 'foo/'
|
|
572
|
+
: "".concat(source, "(?=$|\\/$)");
|
|
573
|
+
}]];
|
|
574
|
+
var REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\uE000$/;
|
|
575
|
+
var MODE_IGNORE = 'regex';
|
|
576
|
+
var MODE_CHECK_IGNORE = 'checkRegex';
|
|
577
|
+
var UNDERSCORE = '_';
|
|
578
|
+
var replaceTrailingWildcard = function replaceTrailingWildcard(_, p1) {
|
|
579
|
+
var prefix = p1
|
|
580
|
+
// '\^':
|
|
581
|
+
// '/*' does not match EMPTY
|
|
582
|
+
// '/*' does not match everything
|
|
583
|
+
|
|
584
|
+
// '\\\/':
|
|
585
|
+
// 'abc/*' does not match 'abc/'
|
|
586
|
+
? "".concat(p1, "[^/]+") // 'a*' matches 'a'
|
|
587
|
+
// 'a*' matches 'aa'
|
|
588
|
+
: '[^/]*';
|
|
589
|
+
return "".concat(prefix, "(?=$|\\/$)");
|
|
590
|
+
};
|
|
591
|
+
var REGEX_REPLACE_TRAILING_DOUBLESTAR = /\uE001$/;
|
|
592
|
+
|
|
593
|
+
// 'abc/**' matches everything under 'abc', but not 'abc/' itself (#21)
|
|
594
|
+
var replaceTrailingDoublestar = function replaceTrailingDoublestar() {
|
|
595
|
+
return '.+(?=$|\\/$)';
|
|
596
|
+
};
|
|
597
|
+
var WILDCARD = '[^\\/]*';
|
|
598
|
+
|
|
599
|
+
// Where a run of non-slash wildcards is split by single fixed characters --
|
|
600
|
+
// `[^/]*x[^/]*y...` -- the engine has many equivalent ways to lay the
|
|
601
|
+
// input across the wildcards, and on input that does not match it works
|
|
602
|
+
// through all of them, so the time grows with the number of wildcards
|
|
603
|
+
// rather than the length of the path. Every wildcard but the last in such a
|
|
604
|
+
// run can be pinned to stop at the character that follows it, which leaves
|
|
605
|
+
// one way to lay out the input and no rewinding, without changing which
|
|
606
|
+
// paths match: the fixed characters still bound the count, and the last
|
|
607
|
+
// wildcard still absorbs the rest.
|
|
608
|
+
//
|
|
609
|
+
// The source is read one token at a time -- a wildcard, a single-character
|
|
610
|
+
// piece (a literal, an escape, a class), or a parenthesised group or anchor
|
|
611
|
+
// that ends the run -- so only a genuine wildcard is touched.
|
|
612
|
+
|
|
613
|
+
// The fixed pieces between the wildcard at `at` and the next wildcard of the
|
|
614
|
+
// run, joined as they appear in the source. A run never holds two wildcards
|
|
615
|
+
// in a row, so there is always at least one piece.
|
|
616
|
+
var separatorAfter = function separatorAfter(run, at) {
|
|
617
|
+
var separator = EMPTY;
|
|
618
|
+
for (var index = at + 1; index < run.length && !run[index].wildcard; index++) {
|
|
619
|
+
separator += run[index].single;
|
|
620
|
+
}
|
|
621
|
+
return separator;
|
|
622
|
+
};
|
|
623
|
+
var pinWildcards = function pinWildcards(source) {
|
|
624
|
+
if (source.indexOf(WILDCARD) < 0) {
|
|
625
|
+
return source;
|
|
626
|
+
}
|
|
627
|
+
var tokens = [];
|
|
628
|
+
var length = source.length;
|
|
629
|
+
var index = 0;
|
|
630
|
+
while (index < length) {
|
|
631
|
+
var _char4 = source[index];
|
|
632
|
+
if (source.startsWith(WILDCARD, index)) {
|
|
633
|
+
tokens.push({
|
|
634
|
+
wildcard: true
|
|
635
|
+
});
|
|
636
|
+
index += WILDCARD.length;
|
|
637
|
+
} else if (_char4 === '[') {
|
|
638
|
+
var end = index + 1;
|
|
639
|
+
if (source[end] === '^') {
|
|
640
|
+
end++;
|
|
641
|
+
}
|
|
642
|
+
if (source[end] === ']') {
|
|
643
|
+
end++;
|
|
644
|
+
}
|
|
645
|
+
while (end < length && source[end] !== ']') {
|
|
646
|
+
end += source[end] === ESCAPE ? 2 : 1;
|
|
647
|
+
}
|
|
648
|
+
end++;
|
|
649
|
+
tokens.push({
|
|
650
|
+
single: source.slice(index, end)
|
|
651
|
+
});
|
|
652
|
+
index = end;
|
|
653
|
+
} else if (_char4 === ESCAPE) {
|
|
654
|
+
tokens.push({
|
|
655
|
+
single: source.slice(index, index + 2)
|
|
656
|
+
});
|
|
657
|
+
index += 2;
|
|
658
|
+
} else if (_char4 === '(') {
|
|
659
|
+
var depth = 0;
|
|
660
|
+
var _end = index;
|
|
661
|
+
do {
|
|
662
|
+
if (source[_end] === ESCAPE) {
|
|
663
|
+
_end++;
|
|
664
|
+
} else if (source[_end] === '(') {
|
|
665
|
+
depth++;
|
|
666
|
+
} else if (source[_end] === ')') {
|
|
667
|
+
depth--;
|
|
668
|
+
}
|
|
669
|
+
_end++;
|
|
670
|
+
} while (_end < length && depth > 0);
|
|
671
|
+
if ('*+?'.indexOf(source[_end]) >= 0) {
|
|
672
|
+
_end++;
|
|
673
|
+
}
|
|
674
|
+
tokens.push({
|
|
675
|
+
boundary: source.slice(index, _end)
|
|
676
|
+
});
|
|
677
|
+
index = _end;
|
|
678
|
+
} else if (_char4 === '^' || _char4 === '$') {
|
|
679
|
+
tokens.push({
|
|
680
|
+
boundary: _char4
|
|
681
|
+
});
|
|
682
|
+
index++;
|
|
683
|
+
} else {
|
|
684
|
+
tokens.push({
|
|
685
|
+
single: _char4
|
|
686
|
+
});
|
|
687
|
+
index++;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
var out = EMPTY;
|
|
691
|
+
var run = [];
|
|
692
|
+
var flush = function flush() {
|
|
693
|
+
var lastWildcard;
|
|
694
|
+
run.forEach(function (token, at) {
|
|
695
|
+
if (token.wildcard) {
|
|
696
|
+
lastWildcard = at;
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
run.forEach(function (token, at) {
|
|
700
|
+
if (!token.wildcard) {
|
|
701
|
+
out += token.single;
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
// A wildcard that is not the last in the run is pinned to the whole
|
|
706
|
+
// fixed piece that separates it from the next wildcard, not just to
|
|
707
|
+
// that piece's first character: stopping at the first character alone
|
|
708
|
+
// would let the wildcard hand over at a place where the rest of the
|
|
709
|
+
// separator cannot follow, and the pin leaves no way back, so
|
|
710
|
+
// `f*o/*/*` would miss `foo/b/c` -- the first `o` of `foo` is not the
|
|
711
|
+
// one the `o/` after it needs. Every piece matches exactly one
|
|
712
|
+
// character, so pinning to the first place the whole separator fits
|
|
713
|
+
// is the leftmost place it can sit, and the wildcards that follow
|
|
714
|
+
// take up whatever is left.
|
|
715
|
+
out += at === lastWildcard ? WILDCARD : "(?:(?!".concat(separatorAfter(run, at), ")[^\\/])*");
|
|
716
|
+
});
|
|
717
|
+
run = [];
|
|
718
|
+
};
|
|
719
|
+
tokens.forEach(function (token) {
|
|
720
|
+
if (token.boundary === undefined) {
|
|
721
|
+
run.push(token);
|
|
722
|
+
return;
|
|
723
|
+
}
|
|
724
|
+
flush();
|
|
725
|
+
out += token.boundary;
|
|
726
|
+
});
|
|
727
|
+
flush();
|
|
728
|
+
return out;
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
// @param {pattern}
|
|
732
|
+
var makeRegexPrefix = function makeRegexPrefix(pattern) {
|
|
733
|
+
var _extractBrackets = extractBrackets(pattern),
|
|
734
|
+
source = _extractBrackets.source,
|
|
735
|
+
sources = _extractBrackets.sources;
|
|
736
|
+
var replaced = REPLACERS.reduce(
|
|
737
|
+
// A pass whose matcher finds nothing hands back the very string it was
|
|
738
|
+
// given, so asking first costs a search and saves a rewrite. Ten of the
|
|
739
|
+
// fifteen passes never fire for a typical .gitignore line, and between
|
|
740
|
+
// them they were 45% of this chain.
|
|
741
|
+
function (prev, _ref) {
|
|
742
|
+
var _ref2 = _slicedToArray(_ref, 3),
|
|
743
|
+
matcher = _ref2[0],
|
|
744
|
+
replacer = _ref2[1],
|
|
745
|
+
required = _ref2[2];
|
|
746
|
+
if (matcher === DIRECT) {
|
|
747
|
+
return replacer(prev, pattern);
|
|
748
|
+
}
|
|
749
|
+
if (required !== UNDEFINED && prev.indexOf(required) < 0) {
|
|
750
|
+
return prev;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
// A pass whose matcher finds nothing hands back the very string it was
|
|
754
|
+
// given, so asking first costs a search and saves a rewrite.
|
|
755
|
+
return matcher.test(prev) ? prev.replace(matcher, replacer.bind(pattern)) : prev;
|
|
756
|
+
}, source);
|
|
757
|
+
|
|
758
|
+
// Most patterns hold no bracket expression at all, and then there is
|
|
759
|
+
// nothing to put back.
|
|
760
|
+
return sources.length ? replaced.replace(REGEX_RESTORE_PLACEHOLDER, function (match, index) {
|
|
761
|
+
return sources[index];
|
|
762
|
+
}) : replaced;
|
|
763
|
+
};
|
|
764
|
+
|
|
765
|
+
// `checkRegex` tests a path with a trailing slash, 'abc/', the way
|
|
766
|
+
// `git check-ignore` matches that literal string once the directory itself
|
|
767
|
+
// is known not to be excluded (see `checkIgnore`): a trailing '/' of the
|
|
768
|
+
// pattern is dropped, a basename pattern sees an empty basename, and only a
|
|
769
|
+
// pattern whose last segment is a pending wildcard can match what is left
|
|
770
|
+
// after the final slash -- 'abc/*' and 'abc/**' match 'abc/', and 'abc/**'
|
|
771
|
+
// also matches 'abc/d/' (#77, #169).
|
|
772
|
+
var checkSourceOf = function checkSourceOf(body, prefix) {
|
|
773
|
+
if (body[body.length - 1] === SLASH) {
|
|
774
|
+
prefix = makeRegexPrefix(body.slice(0, -1));
|
|
775
|
+
}
|
|
776
|
+
var head = prefix.slice(0, -1);
|
|
777
|
+
var last = prefix[prefix.length - 1];
|
|
778
|
+
return last === TRAILING_WILDCARD ? "".concat(head, "$") : last === TRAILING_DOUBLESTAR ? "".concat(head, ".*$") : NEVER_MATCH;
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
// A trailing slash does not stop a pattern being basename-only: it restricts
|
|
782
|
+
// the match to a directory, it does not let the pattern reach across one.
|
|
783
|
+
// Everything else a pattern can hold -- a wildcard, a character class, an
|
|
784
|
+
// escape -- stays inside a single path segment too, so a pattern with no
|
|
785
|
+
// separator in it can only ever describe the last one.
|
|
786
|
+
var matchesBasename = function matchesBasename(body) {
|
|
787
|
+
var index = body.indexOf(SLASH);
|
|
788
|
+
return index < 0 || index === body.length - 1;
|
|
789
|
+
};
|
|
790
|
+
|
|
791
|
+
// The last segment of a path, keeping a trailing slash, because a pattern that
|
|
792
|
+
// ends in one matches only a directory.
|
|
793
|
+
// 'a/b/c.js' -> 'c.js'; 'a/b/' -> 'b/'; 'c.js' -> 'c.js' (no copy made)
|
|
794
|
+
var basenameOf = function basenameOf(path) {
|
|
795
|
+
var end = path.length - 1;
|
|
796
|
+
var index = path.lastIndexOf(SLASH, path[end] === SLASH ? end - 1 : end);
|
|
797
|
+
return index < 0 ? path : path.slice(index + 1);
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
// The parent directory of a path, with its trailing separator, or EMPTY when
|
|
801
|
+
// the path has none.
|
|
802
|
+
// 'a/b/c' -> 'a/b/'; 'a/b/' -> 'a/'; 'a' -> EMPTY; 'a/' -> EMPTY
|
|
803
|
+
//
|
|
804
|
+
// A path holding an empty segment has to be taken apart, because its
|
|
805
|
+
// ancestors are not prefixes of it: the parent of 'a//b' is 'a/', not
|
|
806
|
+
// 'a//', and the parent of '/a/' is nothing at all. Both shapes reach here
|
|
807
|
+
// -- 'a//b' is accepted outright, and `checkIgnore` does not put the path
|
|
808
|
+
// it is given through the relative-path check.
|
|
809
|
+
//
|
|
810
|
+
// Every other path is a prefix of itself, and cutting one costs a fraction of
|
|
811
|
+
// splitting it into an array and joining that back at every level: 73ns
|
|
812
|
+
// against 207ns.
|
|
813
|
+
var parentOf = function parentOf(path) {
|
|
814
|
+
if (path.charCodeAt(0) === SLASH_CODE || path.indexOf(DOUBLE_SLASH) >= 0) {
|
|
815
|
+
var slices = path.split(SLASH).filter(Boolean);
|
|
816
|
+
slices.pop();
|
|
817
|
+
return slices.length ? slices.join(SLASH) + SLASH : EMPTY;
|
|
818
|
+
}
|
|
819
|
+
var end = path.length - 1;
|
|
820
|
+
|
|
821
|
+
// Look back from before a trailing separator, since that one belongs to the
|
|
822
|
+
// path itself.
|
|
823
|
+
//
|
|
824
|
+
// A negative place to start would be a trap here: `lastIndexOf` clamps one
|
|
825
|
+
// to 0 and searches there rather than reporting no match, so '/' would
|
|
826
|
+
// come back as its own parent and the walk would never end. It cannot
|
|
827
|
+
// happen -- that is the only path short enough to produce one, and the
|
|
828
|
+
// test above has already sent it the other way.
|
|
829
|
+
var cut = path.lastIndexOf(SLASH, path.charCodeAt(end) === SLASH_CODE ? end - 1 : end);
|
|
830
|
+
return cut < 0 ? EMPTY : path.slice(0, cut + 1);
|
|
831
|
+
};
|
|
832
|
+
var isString = function isString(subject) {
|
|
833
|
+
return typeof subject === 'string';
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
// Blank lines and comments are told by `createRule`, once the pattern is
|
|
837
|
+
// normalized.
|
|
838
|
+
var checkPattern = function checkPattern(pattern) {
|
|
839
|
+
return pattern && isString(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern);
|
|
840
|
+
};
|
|
841
|
+
var splitPattern = function splitPattern(pattern) {
|
|
842
|
+
return pattern.split(REGEX_SPLITALL_CRLF).filter(Boolean);
|
|
843
|
+
};
|
|
844
|
+
var IgnoreRule = /*#__PURE__*/function () {
|
|
845
|
+
function IgnoreRule(pattern, mark, body, ignoreCase, negative, prefix) {
|
|
846
|
+
_classCallCheck(this, IgnoreRule);
|
|
847
|
+
this.pattern = pattern;
|
|
848
|
+
this.mark = mark;
|
|
849
|
+
this.negative = negative;
|
|
850
|
+
define(this, 'body', body);
|
|
851
|
+
define(this, 'ignoreCase', ignoreCase);
|
|
852
|
+
define(this, 'regexPrefix', prefix);
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
// Worked out on first use and kept behind an own property, the way `regex`
|
|
856
|
+
// caches itself in `_regex`. Deciding it in the constructor instead would
|
|
857
|
+
// add a fourth `defineProperty` to every rule ever built, which cost 4% of
|
|
858
|
+
// every compile -- including the compiles of rules that are never matched
|
|
859
|
+
// against anything.
|
|
860
|
+
_createClass(IgnoreRule, [{
|
|
861
|
+
key: "_basenameOnly",
|
|
862
|
+
get: function get() {
|
|
863
|
+
return define(this, '_basenameOnly', matchesBasename(this.body));
|
|
864
|
+
}
|
|
865
|
+
}, {
|
|
866
|
+
key: "regex",
|
|
867
|
+
get: function get() {
|
|
868
|
+
var key = UNDERSCORE + MODE_IGNORE;
|
|
869
|
+
if (this[key]) {
|
|
870
|
+
return this[key];
|
|
871
|
+
}
|
|
872
|
+
return this._make(MODE_IGNORE, key);
|
|
873
|
+
}
|
|
874
|
+
}, {
|
|
875
|
+
key: "checkRegex",
|
|
876
|
+
get: function get() {
|
|
877
|
+
var key = UNDERSCORE + MODE_CHECK_IGNORE;
|
|
878
|
+
if (this[key]) {
|
|
879
|
+
return this[key];
|
|
880
|
+
}
|
|
881
|
+
return this._make(MODE_CHECK_IGNORE, key);
|
|
882
|
+
}
|
|
883
|
+
}, {
|
|
884
|
+
key: "_make",
|
|
885
|
+
value: function _make(mode, key) {
|
|
886
|
+
var str = pinWildcards(mode === MODE_IGNORE ? this.regexPrefix.replace(REGEX_REPLACE_TRAILING_WILDCARD, replaceTrailingWildcard).replace(REGEX_REPLACE_TRAILING_DOUBLESTAR, replaceTrailingDoublestar) : checkSourceOf(this.body, this.regexPrefix));
|
|
887
|
+
var regex = this.ignoreCase ? new RegExp(str, 'i') : new RegExp(str);
|
|
888
|
+
return define(this, key, regex);
|
|
889
|
+
}
|
|
890
|
+
}]);
|
|
891
|
+
return IgnoreRule;
|
|
892
|
+
}();
|
|
893
|
+
var isLineEnd = function isLineEnd(_char5) {
|
|
894
|
+
return _char5 === '\r' || _char5 === '\n';
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
// Drop a line terminator, which can remain when patterns are passed as an
|
|
898
|
+
// array, and then the trailing spaces. Git trims spaces only, and a space
|
|
899
|
+
// escaped by an odd run of backslashes stays, unescaped, as the last one.
|
|
900
|
+
// Scanned from the end: a regular expression can only try each start in
|
|
901
|
+
// turn, which is quadratic over a long run of spaces or backslashes.
|
|
902
|
+
// 'a ' -> 'a'; 'a\ ' -> 'a '; 'a\\ ' -> 'a\\'; 'a\t' -> 'a\t'
|
|
903
|
+
var trimEnd = function trimEnd(body) {
|
|
904
|
+
var end = body.length;
|
|
905
|
+
while (end && isLineEnd(body[end - 1])) {
|
|
906
|
+
end--;
|
|
907
|
+
}
|
|
908
|
+
var lineEnd = end;
|
|
909
|
+
while (end && body[end - 1] === SPACE) {
|
|
910
|
+
end--;
|
|
911
|
+
}
|
|
912
|
+
if (end === lineEnd) {
|
|
913
|
+
return body.slice(0, end);
|
|
914
|
+
}
|
|
915
|
+
var backslashes = 0;
|
|
916
|
+
while (backslashes < end && body[end - backslashes - 1] === ESCAPE) {
|
|
917
|
+
backslashes++;
|
|
918
|
+
}
|
|
919
|
+
return backslashes % 2 ? body.slice(0, end - 1) + SPACE : body.slice(0, end);
|
|
920
|
+
};
|
|
921
|
+
var createRule = function createRule(_ref3, ignoreCase) {
|
|
922
|
+
var pattern = _ref3.pattern,
|
|
923
|
+
mark = _ref3.mark;
|
|
924
|
+
// Git drops a BOM before it reads the first line, so before anything else.
|
|
925
|
+
var body = pattern[0] === BOM ? pattern.slice(1) : pattern;
|
|
926
|
+
|
|
927
|
+
// > A line starting with # serves as a comment.
|
|
928
|
+
if (body[0] === '#') {
|
|
929
|
+
return;
|
|
930
|
+
}
|
|
931
|
+
var negative = false;
|
|
932
|
+
|
|
933
|
+
// > An optional prefix "!" which negates the pattern;
|
|
934
|
+
if (body[0] === '!') {
|
|
935
|
+
negative = true;
|
|
936
|
+
body = body.slice(1);
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
// Normalize the body before checking which slashes anchor the pattern.
|
|
940
|
+
// Otherwise `bar/ ` is mistaken for a pattern containing an inner slash.
|
|
941
|
+
// Only a body ending in a space or a line terminator has anything to trim.
|
|
942
|
+
var last = body[body.length - 1];
|
|
943
|
+
if (last === SPACE || last === '\r' || last === '\n') {
|
|
944
|
+
body = trimEnd(body);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
// > A blank line matches no files, so it can serve as a separator for
|
|
948
|
+
// > readability.
|
|
949
|
+
// Nor does a lone "!", or anything else left empty here: an empty pattern
|
|
950
|
+
// would compile to a regex matching every path.
|
|
951
|
+
if (!body) {
|
|
952
|
+
return;
|
|
953
|
+
}
|
|
954
|
+
body = body
|
|
955
|
+
// > Put a backslash ("\") in front of the first "!" for patterns that
|
|
956
|
+
// > begin with a literal "!", for example, `"\!important!.txt"`.
|
|
957
|
+
.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')
|
|
958
|
+
// > Put a backslash ("\") in front of the first hash for patterns that
|
|
959
|
+
// > begin with a hash.
|
|
960
|
+
.replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#');
|
|
961
|
+
var regexPrefix = makeRegexPrefix(body);
|
|
962
|
+
return new IgnoreRule(pattern, mark, body, ignoreCase, negative, regexPrefix);
|
|
963
|
+
};
|
|
964
|
+
var RuleManager = /*#__PURE__*/function () {
|
|
965
|
+
function RuleManager(ignoreCase) {
|
|
966
|
+
_classCallCheck(this, RuleManager);
|
|
967
|
+
this._ignoreCase = ignoreCase;
|
|
968
|
+
this._rules = [];
|
|
969
|
+
|
|
970
|
+
// How many of the rules git would tag `EXC_FLAG_NODIR`.
|
|
971
|
+
//
|
|
972
|
+
// The scan uses it to decide, once for the whole set, whether handing
|
|
973
|
+
// those rules the basename is worth what it costs the others. The
|
|
974
|
+
// shortcut saves a full-path scan on every rule it applies to and costs
|
|
975
|
+
// a check on every rule it does not, so a set where almost nothing is
|
|
976
|
+
// basename-only comes out behind -- a 955 pattern set with 44 of them
|
|
977
|
+
// measured 19% slower with the shortcut always on.
|
|
978
|
+
//
|
|
979
|
+
// Deciding this by measurement rather than by meaning is safe: a
|
|
980
|
+
// basename-only pattern gives the very same answer against the whole
|
|
981
|
+
// path, it just takes longer to say so. The choice can only change how
|
|
982
|
+
// fast the scan runs, never what it returns.
|
|
983
|
+
this._basenameCount = 0;
|
|
984
|
+
}
|
|
985
|
+
_createClass(RuleManager, [{
|
|
986
|
+
key: "_add",
|
|
987
|
+
value: function _add(pattern) {
|
|
988
|
+
// #32
|
|
989
|
+
if (pattern && pattern[KEY_IGNORE]) {
|
|
990
|
+
this._rules = this._rules.concat(pattern._rules._rules);
|
|
991
|
+
this._basenameCount += pattern._rules._basenameCount;
|
|
992
|
+
this._added = true;
|
|
993
|
+
return;
|
|
994
|
+
}
|
|
995
|
+
if (isString(pattern)) {
|
|
996
|
+
pattern = {
|
|
997
|
+
pattern: pattern
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
var rule = checkPattern(pattern.pattern) && createRule(pattern, this._ignoreCase);
|
|
1001
|
+
if (rule) {
|
|
1002
|
+
this._added = true;
|
|
1003
|
+
this._rules.push(rule);
|
|
1004
|
+
|
|
1005
|
+
// Deliberately not `rule._basenameOnly`: reading that would materialise
|
|
1006
|
+
// the rule's own copy, and the whole point of leaving it lazy is that
|
|
1007
|
+
// a rule which is compiled and never matched never pays for it.
|
|
1008
|
+
if (matchesBasename(rule.body)) {
|
|
1009
|
+
this._basenameCount++;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
// @param {Array<string> | string | Ignore} pattern
|
|
1015
|
+
}, {
|
|
1016
|
+
key: "add",
|
|
1017
|
+
value: function add(pattern) {
|
|
1018
|
+
this._added = false;
|
|
1019
|
+
makeArray(isString(pattern) ? splitPattern(pattern) : pattern).forEach(this._add, this);
|
|
1020
|
+
if (this._added) {
|
|
1021
|
+
this._literalRules = UNDEFINED;
|
|
1022
|
+
}
|
|
1023
|
+
return this._added;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
// Match the literal 'abc/' for `checkIgnore`, last rule wins. Only a rule
|
|
1027
|
+
// ending in a wildcard can match it (see `checkSourceOf`), so the rest
|
|
1028
|
+
// are left out once, rather than tested or compiled for every path.
|
|
1029
|
+
}, {
|
|
1030
|
+
key: "testLiteral",
|
|
1031
|
+
value: function testLiteral(path) {
|
|
1032
|
+
var rules = this._literalRules || (this._literalRules = this._rules.filter(function (_ref4) {
|
|
1033
|
+
var body = _ref4.body;
|
|
1034
|
+
return body[body.length - (body[body.length - 1] === SLASH ? 2 : 1)] === '*';
|
|
1035
|
+
}));
|
|
1036
|
+
var ignored = false;
|
|
1037
|
+
var unignored = false;
|
|
1038
|
+
var matchedRule;
|
|
1039
|
+
for (var index = rules.length - 1; index >= 0; index--) {
|
|
1040
|
+
var rule = rules[index];
|
|
1041
|
+
if (rule.checkRegex.test(path)) {
|
|
1042
|
+
ignored = !rule.negative;
|
|
1043
|
+
unignored = rule.negative;
|
|
1044
|
+
matchedRule = rule.negative ? UNDEFINED : rule;
|
|
1045
|
+
break;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
var ret = {
|
|
1049
|
+
ignored: ignored,
|
|
1050
|
+
unignored: unignored
|
|
1051
|
+
};
|
|
1052
|
+
if (matchedRule) {
|
|
1053
|
+
ret.rule = matchedRule;
|
|
1054
|
+
}
|
|
1055
|
+
return ret;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
// Test one single path without recursively checking parent directories
|
|
1059
|
+
//
|
|
1060
|
+
// - checkUnignored `boolean` whether should check if the path is unignored,
|
|
1061
|
+
// setting `checkUnignored` to `false` could reduce additional
|
|
1062
|
+
// path matching.
|
|
1063
|
+
// - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
|
|
1064
|
+
|
|
1065
|
+
// @returns {TestResult} true if a file is ignored
|
|
1066
|
+
}, {
|
|
1067
|
+
key: "test",
|
|
1068
|
+
value: function test(path, checkUnignored, mode) {
|
|
1069
|
+
var ignored = false;
|
|
1070
|
+
var unignored = false;
|
|
1071
|
+
var matchedRule;
|
|
1072
|
+
|
|
1073
|
+
// Most of a .gitignore is patterns with no slash in them, and running
|
|
1074
|
+
// those against the whole path makes the regular expression engine walk
|
|
1075
|
+
// every directory name on the way to the only segment that could match.
|
|
1076
|
+
// Handing them the basename instead is what git does, and it is where
|
|
1077
|
+
// the time in a directory walk goes: the rule scan was two thirds of it.
|
|
1078
|
+
var rules = this._rules;
|
|
1079
|
+
var length = rules.length;
|
|
1080
|
+
var shortcut = this._basenameCount * 2 >= length;
|
|
1081
|
+
var basename = shortcut ? basenameOf(path) : path;
|
|
1082
|
+
|
|
1083
|
+
// A plain loop rather than `forEach`, so that `path`, `basename` and
|
|
1084
|
+
// `shortcut` are locals. As a callback they became closure variables,
|
|
1085
|
+
// and reaching for one of those once per rule cost 10% of a scan over a
|
|
1086
|
+
// large rule set -- more than the shortcut they were there to serve.
|
|
1087
|
+
for (var index = 0; index < length; index++) {
|
|
1088
|
+
var rule = rules[index];
|
|
1089
|
+
var negative = rule.negative;
|
|
1090
|
+
|
|
1091
|
+
// | ignored : unignored
|
|
1092
|
+
// -------- | ---------------------------------------
|
|
1093
|
+
// negative | 0:0 | 0:1 | 1:0 | 1:1
|
|
1094
|
+
// -------- | ------- | ------- | ------- | --------
|
|
1095
|
+
// 0 | TEST | TEST | SKIP | X
|
|
1096
|
+
// 1 | TESTIF | SKIP | TEST | X
|
|
1097
|
+
|
|
1098
|
+
// - SKIP: always skip
|
|
1099
|
+
// - TEST: always test
|
|
1100
|
+
// - TESTIF: only test if checkUnignored
|
|
1101
|
+
// - X: that never happen
|
|
1102
|
+
var skip = unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored;
|
|
1103
|
+
if (!skip && rule[mode].test(shortcut && rule._basenameOnly ? basename : path)) {
|
|
1104
|
+
ignored = !negative;
|
|
1105
|
+
unignored = negative;
|
|
1106
|
+
matchedRule = negative ? UNDEFINED : rule;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
var ret = {
|
|
1110
|
+
ignored: ignored,
|
|
1111
|
+
unignored: unignored
|
|
1112
|
+
};
|
|
1113
|
+
if (matchedRule) {
|
|
1114
|
+
ret.rule = matchedRule;
|
|
1115
|
+
}
|
|
1116
|
+
return ret;
|
|
1117
|
+
}
|
|
1118
|
+
}]);
|
|
1119
|
+
return RuleManager;
|
|
1120
|
+
}();
|
|
1121
|
+
var throwError = function throwError(message, Ctor) {
|
|
1122
|
+
throw new Ctor(message);
|
|
1123
|
+
};
|
|
1124
|
+
var checkPath = function checkPath(path, originalPath, doThrow) {
|
|
1125
|
+
if (!isString(path)) {
|
|
1126
|
+
return doThrow("path must be a string, but got `".concat(originalPath, "`"), TypeError);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
// We don't know if we should ignore EMPTY, so throw
|
|
1130
|
+
if (!path) {
|
|
1131
|
+
return doThrow("path must not be empty", TypeError);
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
// Check if it is a relative path
|
|
1135
|
+
if (checkPath.isNotRelative(path)) {
|
|
1136
|
+
var r = '`path.relative()`d';
|
|
1137
|
+
return doThrow("path should be a ".concat(r, " string, but got \"").concat(originalPath, "\""), RangeError);
|
|
1138
|
+
}
|
|
1139
|
+
return true;
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1142
|
+
// > pathname should be a `path.relative()`d one
|
|
1143
|
+
//
|
|
1144
|
+
// The same thing `REGEX_TEST_INVALID_PATH` says, spelled out: a path is not
|
|
1145
|
+
// relative if it begins with a separator, or with `./` or `../`, or is
|
|
1146
|
+
// nothing but `.` or `..`. Every match is decided by the first three
|
|
1147
|
+
// characters, and this runs on every path handed to the library -- where it
|
|
1148
|
+
// was 55% of a cached lookup, more than the cache lookup itself.
|
|
1149
|
+
var isNotRelative = function isNotRelative(path) {
|
|
1150
|
+
var first = path.charCodeAt(0);
|
|
1151
|
+
if (first === SLASH_CODE) {
|
|
1152
|
+
return true;
|
|
1153
|
+
}
|
|
1154
|
+
if (first !== DOT_CODE) {
|
|
1155
|
+
return false;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
// '.'
|
|
1159
|
+
if (path.length === 1) {
|
|
1160
|
+
return true;
|
|
1161
|
+
}
|
|
1162
|
+
var second = path.charCodeAt(1);
|
|
1163
|
+
|
|
1164
|
+
// './'
|
|
1165
|
+
if (second === SLASH_CODE) {
|
|
1166
|
+
return true;
|
|
1167
|
+
}
|
|
1168
|
+
if (second !== DOT_CODE) {
|
|
1169
|
+
return false;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
// '..' or '../'
|
|
1173
|
+
return path.length === 2 || path.charCodeAt(2) === SLASH_CODE;
|
|
1174
|
+
};
|
|
1175
|
+
checkPath.isNotRelative = isNotRelative;
|
|
1176
|
+
|
|
1177
|
+
// On windows, the following function will be replaced
|
|
1178
|
+
/* istanbul ignore next */
|
|
1179
|
+
checkPath.convert = function (p) {
|
|
1180
|
+
return p;
|
|
1181
|
+
};
|
|
1182
|
+
var Ignore = /*#__PURE__*/function () {
|
|
1183
|
+
function Ignore() {
|
|
1184
|
+
var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
1185
|
+
_ref5$ignorecase = _ref5.ignorecase,
|
|
1186
|
+
ignorecase = _ref5$ignorecase === void 0 ? true : _ref5$ignorecase,
|
|
1187
|
+
_ref5$ignoreCase = _ref5.ignoreCase,
|
|
1188
|
+
ignoreCase = _ref5$ignoreCase === void 0 ? ignorecase : _ref5$ignoreCase,
|
|
1189
|
+
_ref5$allowRelativePa = _ref5.allowRelativePaths,
|
|
1190
|
+
allowRelativePaths = _ref5$allowRelativePa === void 0 ? false : _ref5$allowRelativePa;
|
|
1191
|
+
_classCallCheck(this, Ignore);
|
|
1192
|
+
define(this, KEY_IGNORE, true);
|
|
1193
|
+
this._rules = new RuleManager(ignoreCase);
|
|
1194
|
+
this._strictPathCheck = !allowRelativePaths;
|
|
1195
|
+
this._initCache();
|
|
1196
|
+
}
|
|
1197
|
+
_createClass(Ignore, [{
|
|
1198
|
+
key: "_initCache",
|
|
1199
|
+
value: function _initCache() {
|
|
1200
|
+
// A cache for the result of `.ignores()`
|
|
1201
|
+
this._ignoreCache = Object.create(null);
|
|
1202
|
+
|
|
1203
|
+
// A cache for the result of `.test()`
|
|
1204
|
+
this._testCache = Object.create(null);
|
|
1205
|
+
}
|
|
1206
|
+
}, {
|
|
1207
|
+
key: "add",
|
|
1208
|
+
value: function add(pattern) {
|
|
1209
|
+
if (this._rules.add(pattern)) {
|
|
1210
|
+
// Some rules have just added to the ignore,
|
|
1211
|
+
// making the behavior changed,
|
|
1212
|
+
// so we need to re-initialize the result cache
|
|
1213
|
+
this._initCache();
|
|
1214
|
+
}
|
|
1215
|
+
return this;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
// legacy
|
|
1219
|
+
}, {
|
|
1220
|
+
key: "addPattern",
|
|
1221
|
+
value: function addPattern(pattern) {
|
|
1222
|
+
return this.add(pattern);
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
// @returns {TestResult}
|
|
1226
|
+
}, {
|
|
1227
|
+
key: "_test",
|
|
1228
|
+
value: function _test(originalPath, cache, checkUnignored) {
|
|
1229
|
+
var path = originalPath
|
|
1230
|
+
// Supports nullable path
|
|
1231
|
+
&& checkPath.convert(originalPath);
|
|
1232
|
+
checkPath(path, originalPath, this._strictPathCheck ? throwError : RETURN_FALSE);
|
|
1233
|
+
return this._t(path, cache, checkUnignored);
|
|
1234
|
+
}
|
|
1235
|
+
}, {
|
|
1236
|
+
key: "checkIgnore",
|
|
1237
|
+
value: function checkIgnore(path) {
|
|
1238
|
+
// If the path doest not end with a slash, `.ignores()` is much equivalent
|
|
1239
|
+
// to `git check-ignore`
|
|
1240
|
+
if (path.charCodeAt(path.length - 1) !== SLASH_CODE) {
|
|
1241
|
+
return this.test(path);
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
// Like `git check-ignore`: a directory excluded by itself or by an
|
|
1245
|
+
// ancestor settles it, and only then is the literal 'abc/' matched
|
|
1246
|
+
// against the rules (see `checkSourceOf`).
|
|
1247
|
+
var dir = this._t(path, this._testCache, true);
|
|
1248
|
+
if (dir.ignored) {
|
|
1249
|
+
return dir;
|
|
1250
|
+
}
|
|
1251
|
+
var literal = this._rules.testLiteral(path);
|
|
1252
|
+
return literal.ignored || literal.unignored ? literal : dir;
|
|
1253
|
+
}
|
|
1254
|
+
}, {
|
|
1255
|
+
key: "_t",
|
|
1256
|
+
value: function _t(
|
|
1257
|
+
// The path to be tested
|
|
1258
|
+
path,
|
|
1259
|
+
// The cache for the result of a certain checking
|
|
1260
|
+
cache,
|
|
1261
|
+
// Whether should check if the path is unignored
|
|
1262
|
+
checkUnignored) {
|
|
1263
|
+
if (path in cache) {
|
|
1264
|
+
return cache[path];
|
|
1265
|
+
}
|
|
1266
|
+
var parentPath = parentOf(path);
|
|
1267
|
+
|
|
1268
|
+
// If the path contains a parent directory, check the parent first
|
|
1269
|
+
var parent = parentPath ? this._t(parentPath, cache, checkUnignored) : UNDEFINED;
|
|
1270
|
+
return cache[path] = parent && parent.ignored
|
|
1271
|
+
// > It is not possible to re-include a file if a parent directory of
|
|
1272
|
+
// > that file is excluded.
|
|
1273
|
+
? parent : this._rules.test(path, checkUnignored, MODE_IGNORE);
|
|
1274
|
+
}
|
|
1275
|
+
}, {
|
|
1276
|
+
key: "ignores",
|
|
1277
|
+
value: function ignores(path) {
|
|
1278
|
+
return this._test(path, this._ignoreCache, false).ignored;
|
|
1279
|
+
}
|
|
1280
|
+
}, {
|
|
1281
|
+
key: "createFilter",
|
|
1282
|
+
value: function createFilter() {
|
|
1283
|
+
var _this = this;
|
|
1284
|
+
return function (path) {
|
|
1285
|
+
return !_this.ignores(path);
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
}, {
|
|
1289
|
+
key: "filter",
|
|
1290
|
+
value: function filter(paths) {
|
|
1291
|
+
return makeArray(paths).filter(this.createFilter());
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
// @returns {TestResult}
|
|
1295
|
+
}, {
|
|
1296
|
+
key: "test",
|
|
1297
|
+
value: function test(path) {
|
|
1298
|
+
return this._test(path, this._testCache, true);
|
|
1299
|
+
}
|
|
1300
|
+
}]);
|
|
1301
|
+
return Ignore;
|
|
1302
|
+
}();
|
|
1303
|
+
var factory = function factory(options) {
|
|
1304
|
+
return new Ignore(options);
|
|
1305
|
+
};
|
|
1306
|
+
var isPathValid = function isPathValid(path) {
|
|
1307
|
+
return checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
|
|
1308
|
+
};
|
|
1309
|
+
|
|
1310
|
+
/* istanbul ignore next */
|
|
1311
|
+
var setupWindows = function setupWindows() {
|
|
1312
|
+
/* eslint no-control-regex: "off" */
|
|
1313
|
+
var makePosix = function makePosix(str) {
|
|
1314
|
+
return /^\\\\\?\\/.test(str) || /[\0-\x1F"<>\|]+/.test(str) ? str : str.replace(/\\/g, '/');
|
|
1315
|
+
};
|
|
1316
|
+
checkPath.convert = makePosix;
|
|
1317
|
+
|
|
1318
|
+
// 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/'
|
|
1319
|
+
// 'd:\\foo'
|
|
1320
|
+
var REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
1321
|
+
checkPath.isNotRelative = function (path) {
|
|
1322
|
+
return REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
|
|
1323
|
+
};
|
|
1324
|
+
};
|
|
1325
|
+
|
|
1326
|
+
// Windows
|
|
1327
|
+
// --------------------------------------------------------------
|
|
1328
|
+
/* istanbul ignore next */
|
|
1329
|
+
if (
|
|
1330
|
+
// Detect `process` so that it can run in browsers.
|
|
1331
|
+
typeof process !== 'undefined' && process.platform === 'win32') {
|
|
1332
|
+
setupWindows();
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
// COMMONJS_EXPORTS ////////////////////////////////////////////////////////////
|
|
1336
|
+
|
|
1337
|
+
module.exports = factory;
|
|
1338
|
+
|
|
1339
|
+
// Although it is an anti-pattern,
|
|
1340
|
+
// it is still widely misused by a lot of libraries in github
|
|
1341
|
+
// Ref: https://github.com/search?q=ignore.default%28%29&type=code
|
|
1342
|
+
factory["default"] = factory;
|
|
1343
|
+
module.exports.isPathValid = isPathValid;
|
|
1344
|
+
|
|
1345
|
+
// For testing purposes
|
|
1346
|
+
define(module.exports, Symbol["for"]('setupWindows'), setupWindows);
|