projen 0.91.17 → 0.91.18
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/.jsii +3 -3
- package/lib/awscdk/auto-discover.js +5 -5
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +1 -1
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/{minimatch/node_modules/brace-expansion → @nodelib/fs.scandir}/LICENSE +2 -2
- package/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +586 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +60 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +331 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +122 -0
- package/node_modules/braces/package.json +77 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +94 -0
- package/node_modules/end-of-stream/package.json +37 -0
- package/node_modules/execa/index.js +361 -0
- package/node_modules/execa/lib/errname.js +39 -0
- package/node_modules/execa/lib/stdio.js +41 -0
- package/node_modules/execa/license +9 -0
- package/node_modules/execa/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/execa/node_modules/cross-spawn/README.md +94 -0
- package/node_modules/execa/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/execa/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/execa/node_modules/cross-spawn/lib/parse.js +125 -0
- package/node_modules/execa/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/node_modules/execa/node_modules/cross-spawn/lib/util/readShebang.js +32 -0
- package/node_modules/execa/node_modules/cross-spawn/lib/util/resolveCommand.js +51 -0
- package/node_modules/execa/node_modules/cross-spawn/package.json +75 -0
- package/node_modules/execa/node_modules/semver/README.md +412 -0
- package/node_modules/execa/node_modules/semver/bin/semver +160 -0
- package/node_modules/execa/node_modules/semver/package.json +38 -0
- package/node_modules/execa/node_modules/semver/range.bnf +16 -0
- package/node_modules/execa/node_modules/semver/semver.js +1525 -0
- package/node_modules/execa/node_modules/shebang-command/index.js +19 -0
- package/node_modules/execa/node_modules/shebang-command/license +21 -0
- package/node_modules/execa/node_modules/shebang-command/package.json +39 -0
- package/node_modules/execa/node_modules/shebang-command/readme.md +39 -0
- package/node_modules/execa/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/execa/node_modules/shebang-regex/package.json +32 -0
- package/node_modules/execa/node_modules/shebang-regex/readme.md +29 -0
- package/node_modules/{shelljs/node_modules/glob → execa/node_modules/which}/LICENSE +0 -6
- package/node_modules/execa/node_modules/which/README.md +51 -0
- package/node_modules/execa/node_modules/which/bin/which +52 -0
- package/node_modules/execa/node_modules/which/package.json +30 -0
- package/node_modules/execa/node_modules/which/which.js +135 -0
- package/node_modules/execa/package.json +69 -0
- package/node_modules/execa/readme.md +327 -0
- package/node_modules/fast-glob/LICENSE +21 -0
- package/node_modules/fast-glob/README.md +830 -0
- package/node_modules/fast-glob/node_modules/glob-parent/LICENSE +15 -0
- package/node_modules/fast-glob/node_modules/glob-parent/README.md +137 -0
- package/node_modules/fast-glob/node_modules/glob-parent/index.js +42 -0
- package/node_modules/fast-glob/node_modules/glob-parent/package.json +48 -0
- package/node_modules/fast-glob/out/index.d.ts +40 -0
- package/node_modules/fast-glob/out/index.js +102 -0
- package/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
- package/node_modules/fast-glob/out/managers/tasks.js +110 -0
- package/node_modules/fast-glob/out/providers/async.d.ts +9 -0
- package/node_modules/fast-glob/out/providers/async.js +23 -0
- package/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
- package/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
- package/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
- package/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
- package/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
- package/node_modules/fast-glob/out/providers/filters/error.js +15 -0
- package/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
- package/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
- package/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
- package/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
- package/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
- package/node_modules/fast-glob/out/providers/provider.js +48 -0
- package/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
- package/node_modules/fast-glob/out/providers/stream.js +31 -0
- package/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
- package/node_modules/fast-glob/out/providers/sync.js +23 -0
- package/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
- package/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
- package/node_modules/fast-glob/out/readers/async.d.ts +10 -0
- package/node_modules/fast-glob/out/readers/async.js +35 -0
- package/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
- package/node_modules/fast-glob/out/readers/reader.js +33 -0
- package/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
- package/node_modules/fast-glob/out/readers/stream.js +55 -0
- package/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
- package/node_modules/fast-glob/out/readers/sync.js +43 -0
- package/node_modules/fast-glob/out/settings.d.ts +164 -0
- package/node_modules/fast-glob/out/settings.js +59 -0
- package/node_modules/fast-glob/out/types/index.d.ts +31 -0
- package/node_modules/fast-glob/out/types/index.js +2 -0
- package/node_modules/fast-glob/out/utils/array.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/array.js +22 -0
- package/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/errno.js +7 -0
- package/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
- package/node_modules/fast-glob/out/utils/fs.js +19 -0
- package/node_modules/fast-glob/out/utils/index.d.ts +8 -0
- package/node_modules/fast-glob/out/utils/index.js +17 -0
- package/node_modules/fast-glob/out/utils/path.d.ts +13 -0
- package/node_modules/fast-glob/out/utils/path.js +68 -0
- package/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
- package/node_modules/fast-glob/out/utils/pattern.js +206 -0
- package/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
- package/node_modules/fast-glob/out/utils/stream.js +17 -0
- package/node_modules/fast-glob/out/utils/string.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/string.js +11 -0
- package/node_modules/fast-glob/package.json +81 -0
- package/node_modules/fastq/.github/dependabot.yml +11 -0
- package/node_modules/fastq/.github/workflows/ci.yml +75 -0
- package/node_modules/fastq/LICENSE +13 -0
- package/node_modules/fastq/README.md +312 -0
- package/node_modules/fastq/SECURITY.md +15 -0
- package/node_modules/fastq/bench.js +66 -0
- package/node_modules/fastq/example.js +14 -0
- package/node_modules/fastq/example.mjs +11 -0
- package/node_modules/fastq/index.d.ts +57 -0
- package/node_modules/fastq/package.json +53 -0
- package/node_modules/fastq/queue.js +311 -0
- package/node_modules/fastq/test/example.ts +83 -0
- package/node_modules/fastq/test/promise.js +291 -0
- package/node_modules/fastq/test/test.js +653 -0
- package/node_modules/fastq/test/tsconfig.json +11 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +248 -0
- package/node_modules/fill-range/package.json +74 -0
- package/node_modules/get-stream/buffer-stream.js +51 -0
- package/node_modules/get-stream/index.js +50 -0
- package/node_modules/get-stream/license +9 -0
- package/node_modules/get-stream/package.json +46 -0
- package/node_modules/get-stream/readme.md +123 -0
- package/node_modules/is-extglob/LICENSE +21 -0
- package/node_modules/is-extglob/README.md +107 -0
- package/node_modules/is-extglob/index.js +20 -0
- package/node_modules/is-extglob/package.json +69 -0
- package/node_modules/is-glob/LICENSE +21 -0
- package/node_modules/is-glob/README.md +206 -0
- package/node_modules/is-glob/index.js +150 -0
- package/node_modules/is-glob/package.json +81 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +82 -0
- package/node_modules/is-stream/index.js +21 -0
- package/node_modules/is-stream/license +21 -0
- package/node_modules/is-stream/package.json +38 -0
- package/node_modules/is-stream/readme.md +42 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +31 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/merge2/LICENSE +21 -0
- package/node_modules/merge2/README.md +144 -0
- package/node_modules/merge2/index.js +144 -0
- package/node_modules/merge2/package.json +43 -0
- package/node_modules/micromatch/LICENSE +21 -0
- package/node_modules/micromatch/README.md +1024 -0
- package/node_modules/micromatch/index.js +474 -0
- package/node_modules/micromatch/package.json +119 -0
- package/node_modules/nice-try/LICENSE +21 -0
- package/node_modules/nice-try/README.md +32 -0
- package/node_modules/nice-try/package.json +33 -0
- package/node_modules/nice-try/src/index.js +12 -0
- package/node_modules/npm-run-path/index.js +39 -0
- package/node_modules/npm-run-path/license +21 -0
- package/node_modules/npm-run-path/package.json +45 -0
- package/node_modules/npm-run-path/readme.md +81 -0
- package/node_modules/p-finally/index.js +15 -0
- package/node_modules/p-finally/license +21 -0
- package/node_modules/p-finally/package.json +42 -0
- package/node_modules/p-finally/readme.md +47 -0
- package/node_modules/path-key/index.js +13 -0
- package/node_modules/path-key/license +21 -0
- package/node_modules/path-key/package.json +39 -0
- package/node_modules/path-key/readme.md +51 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +708 -0
- package/node_modules/picomatch/index.js +3 -0
- package/node_modules/picomatch/lib/constants.js +179 -0
- package/node_modules/picomatch/lib/parse.js +1091 -0
- package/node_modules/picomatch/lib/picomatch.js +342 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/picomatch/package.json +81 -0
- package/node_modules/pump/.github/FUNDING.yml +2 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +74 -0
- package/node_modules/pump/SECURITY.md +5 -0
- package/node_modules/pump/index.js +86 -0
- package/node_modules/pump/package.json +24 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/{concat-map → queue-microtask}/LICENSE +3 -1
- package/node_modules/queue-microtask/README.md +90 -0
- package/node_modules/queue-microtask/index.d.ts +2 -0
- package/node_modules/queue-microtask/index.js +9 -0
- package/node_modules/queue-microtask/package.json +55 -0
- package/node_modules/reusify/.github/dependabot.yml +7 -0
- package/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/node_modules/reusify/LICENSE +22 -0
- package/node_modules/reusify/README.md +139 -0
- package/node_modules/reusify/SECURITY.md +15 -0
- package/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/node_modules/reusify/benchmarks/fib.js +13 -0
- package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/node_modules/reusify/eslint.config.js +14 -0
- package/node_modules/reusify/package.json +50 -0
- package/node_modules/reusify/reusify.d.ts +14 -0
- package/node_modules/reusify/reusify.js +33 -0
- package/node_modules/reusify/test.js +66 -0
- package/node_modules/reusify/tsconfig.json +11 -0
- package/node_modules/run-parallel/LICENSE +20 -0
- package/node_modules/run-parallel/README.md +85 -0
- package/node_modules/run-parallel/index.js +51 -0
- package/node_modules/run-parallel/package.json +58 -0
- package/node_modules/shelljs/LICENSE +23 -20
- package/node_modules/shelljs/README.md +173 -65
- package/node_modules/shelljs/package.json +38 -22
- package/node_modules/shelljs/plugin.js +1 -1
- package/node_modules/shelljs/shell.js +70 -12
- package/node_modules/shelljs/src/cat.js +3 -3
- package/node_modules/shelljs/src/cd.js +2 -1
- package/node_modules/shelljs/src/chmod.js +17 -11
- package/node_modules/shelljs/src/cmd.js +122 -0
- package/node_modules/shelljs/src/common.js +103 -29
- package/node_modules/shelljs/src/cp.js +24 -14
- package/node_modules/shelljs/src/dirs.js +7 -9
- package/node_modules/shelljs/src/echo.js +1 -2
- package/node_modules/shelljs/src/errorCode.js +10 -0
- package/node_modules/shelljs/src/exec-child.js +60 -28
- package/node_modules/shelljs/src/exec.js +39 -10
- package/node_modules/shelljs/src/find.js +8 -3
- package/node_modules/shelljs/src/grep.js +15 -4
- package/node_modules/shelljs/src/head.js +1 -1
- package/node_modules/shelljs/src/ln.js +3 -1
- package/node_modules/shelljs/src/ls.js +29 -15
- package/node_modules/shelljs/src/mkdir.js +13 -11
- package/node_modules/shelljs/src/mv.js +4 -3
- package/node_modules/shelljs/src/pwd.js +1 -1
- package/node_modules/shelljs/src/rm.js +11 -11
- package/node_modules/shelljs/src/sed.js +12 -4
- package/node_modules/shelljs/src/set.js +0 -1
- package/node_modules/shelljs/src/sort.js +3 -2
- package/node_modules/shelljs/src/tail.js +12 -2
- package/node_modules/shelljs/src/test.js +3 -2
- package/node_modules/shelljs/src/to.js +2 -1
- package/node_modules/shelljs/src/toEnd.js +2 -1
- package/node_modules/shelljs/src/touch.js +13 -7
- package/node_modules/shelljs/src/uniq.js +5 -4
- package/node_modules/shelljs/src/which.js +5 -4
- package/node_modules/shx/README.md +27 -15
- package/node_modules/shx/lib/help.js +1 -1
- package/node_modules/shx/lib/shx.js +13 -8
- package/node_modules/shx/package.json +17 -25
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +202 -0
- package/node_modules/signal-exit/package.json +38 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/strip-eof/index.js +15 -0
- package/node_modules/strip-eof/license +21 -0
- package/node_modules/strip-eof/package.json +39 -0
- package/node_modules/strip-eof/readme.md +28 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +88 -0
- package/package.json +2 -2
- package/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/concat-map/index.js +0 -13
- package/node_modules/concat-map/package.json +0 -43
- package/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/minimatch/README.md +0 -230
- package/node_modules/minimatch/minimatch.js +0 -947
- package/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -129
- package/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -201
- package/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -47
- package/node_modules/minimatch/package.json +0 -33
- package/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/path-is-absolute/package.json +0 -43
- package/node_modules/path-is-absolute/readme.md +0 -59
- package/node_modules/shelljs/commands.js +0 -29
- package/node_modules/shelljs/node_modules/glob/README.md +0 -378
- package/node_modules/shelljs/node_modules/glob/common.js +0 -238
- package/node_modules/shelljs/node_modules/glob/glob.js +0 -790
- package/node_modules/shelljs/node_modules/glob/package.json +0 -55
- package/node_modules/shelljs/node_modules/glob/sync.js +0 -486
- /package/node_modules/{minimatch → execa/node_modules/semver}/LICENSE +0 -0
- /package/node_modules/{path-is-absolute → execa/node_modules/shebang-regex}/license +0 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { FileSystemAdapter, Pattern } from './types';
|
|
2
|
+
export declare const DEFAULT_FILE_SYSTEM_ADAPTER: FileSystemAdapter;
|
|
3
|
+
export type Options = {
|
|
4
|
+
/**
|
|
5
|
+
* Return the absolute path for entries.
|
|
6
|
+
*
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
absolute?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* If set to `true`, then patterns without slashes will be matched against
|
|
12
|
+
* the basename of the path if it contains slashes.
|
|
13
|
+
*
|
|
14
|
+
* @default false
|
|
15
|
+
*/
|
|
16
|
+
baseNameMatch?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Enables Bash-like brace expansion.
|
|
19
|
+
*
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
|
+
braceExpansion?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Enables a case-sensitive mode for matching files.
|
|
25
|
+
*
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
caseSensitiveMatch?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the maximum number of concurrent requests from a reader to read
|
|
31
|
+
* directories.
|
|
32
|
+
*
|
|
33
|
+
* @default os.cpus().length
|
|
34
|
+
*/
|
|
35
|
+
concurrency?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The current working directory in which to search.
|
|
38
|
+
*
|
|
39
|
+
* @default process.cwd()
|
|
40
|
+
*/
|
|
41
|
+
cwd?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the maximum depth of a read directory relative to the start
|
|
44
|
+
* directory.
|
|
45
|
+
*
|
|
46
|
+
* @default Infinity
|
|
47
|
+
*/
|
|
48
|
+
deep?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Allow patterns to match entries that begin with a period (`.`).
|
|
51
|
+
*
|
|
52
|
+
* @default false
|
|
53
|
+
*/
|
|
54
|
+
dot?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Enables Bash-like `extglob` functionality.
|
|
57
|
+
*
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
extglob?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Indicates whether to traverse descendants of symbolic link directories.
|
|
63
|
+
*
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
followSymbolicLinks?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Custom implementation of methods for working with the file system.
|
|
69
|
+
*
|
|
70
|
+
* @default fs.*
|
|
71
|
+
*/
|
|
72
|
+
fs?: Partial<FileSystemAdapter>;
|
|
73
|
+
/**
|
|
74
|
+
* Enables recursively repeats a pattern containing `**`.
|
|
75
|
+
* If `false`, `**` behaves exactly like `*`.
|
|
76
|
+
*
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
globstar?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* An array of glob patterns to exclude matches.
|
|
82
|
+
* This is an alternative way to use negative patterns.
|
|
83
|
+
*
|
|
84
|
+
* @default []
|
|
85
|
+
*/
|
|
86
|
+
ignore?: Pattern[];
|
|
87
|
+
/**
|
|
88
|
+
* Mark the directory path with the final slash.
|
|
89
|
+
*
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
markDirectories?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Returns objects (instead of strings) describing entries.
|
|
95
|
+
*
|
|
96
|
+
* @default false
|
|
97
|
+
*/
|
|
98
|
+
objectMode?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Return only directories.
|
|
101
|
+
*
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
104
|
+
onlyDirectories?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Return only files.
|
|
107
|
+
*
|
|
108
|
+
* @default true
|
|
109
|
+
*/
|
|
110
|
+
onlyFiles?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Enables an object mode (`objectMode`) with an additional `stats` field.
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
stats?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* By default this package suppress only `ENOENT` errors.
|
|
119
|
+
* Set to `true` to suppress any error.
|
|
120
|
+
*
|
|
121
|
+
* @default false
|
|
122
|
+
*/
|
|
123
|
+
suppressErrors?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Throw an error when symbolic link is broken if `true` or safely
|
|
126
|
+
* return `lstat` call if `false`.
|
|
127
|
+
*
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
throwErrorOnBrokenSymbolicLink?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Ensures that the returned entries are unique.
|
|
133
|
+
*
|
|
134
|
+
* @default true
|
|
135
|
+
*/
|
|
136
|
+
unique?: boolean;
|
|
137
|
+
};
|
|
138
|
+
export default class Settings {
|
|
139
|
+
private readonly _options;
|
|
140
|
+
readonly absolute: boolean;
|
|
141
|
+
readonly baseNameMatch: boolean;
|
|
142
|
+
readonly braceExpansion: boolean;
|
|
143
|
+
readonly caseSensitiveMatch: boolean;
|
|
144
|
+
readonly concurrency: number;
|
|
145
|
+
readonly cwd: string;
|
|
146
|
+
readonly deep: number;
|
|
147
|
+
readonly dot: boolean;
|
|
148
|
+
readonly extglob: boolean;
|
|
149
|
+
readonly followSymbolicLinks: boolean;
|
|
150
|
+
readonly fs: FileSystemAdapter;
|
|
151
|
+
readonly globstar: boolean;
|
|
152
|
+
readonly ignore: Pattern[];
|
|
153
|
+
readonly markDirectories: boolean;
|
|
154
|
+
readonly objectMode: boolean;
|
|
155
|
+
readonly onlyDirectories: boolean;
|
|
156
|
+
readonly onlyFiles: boolean;
|
|
157
|
+
readonly stats: boolean;
|
|
158
|
+
readonly suppressErrors: boolean;
|
|
159
|
+
readonly throwErrorOnBrokenSymbolicLink: boolean;
|
|
160
|
+
readonly unique: boolean;
|
|
161
|
+
constructor(_options?: Options);
|
|
162
|
+
private _getValue;
|
|
163
|
+
private _getFileSystemMethods;
|
|
164
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
const os = require("os");
|
|
6
|
+
/**
|
|
7
|
+
* The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
|
|
8
|
+
* https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
|
|
9
|
+
*/
|
|
10
|
+
const CPU_COUNT = Math.max(os.cpus().length, 1);
|
|
11
|
+
exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
12
|
+
lstat: fs.lstat,
|
|
13
|
+
lstatSync: fs.lstatSync,
|
|
14
|
+
stat: fs.stat,
|
|
15
|
+
statSync: fs.statSync,
|
|
16
|
+
readdir: fs.readdir,
|
|
17
|
+
readdirSync: fs.readdirSync
|
|
18
|
+
};
|
|
19
|
+
class Settings {
|
|
20
|
+
constructor(_options = {}) {
|
|
21
|
+
this._options = _options;
|
|
22
|
+
this.absolute = this._getValue(this._options.absolute, false);
|
|
23
|
+
this.baseNameMatch = this._getValue(this._options.baseNameMatch, false);
|
|
24
|
+
this.braceExpansion = this._getValue(this._options.braceExpansion, true);
|
|
25
|
+
this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true);
|
|
26
|
+
this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT);
|
|
27
|
+
this.cwd = this._getValue(this._options.cwd, process.cwd());
|
|
28
|
+
this.deep = this._getValue(this._options.deep, Infinity);
|
|
29
|
+
this.dot = this._getValue(this._options.dot, false);
|
|
30
|
+
this.extglob = this._getValue(this._options.extglob, true);
|
|
31
|
+
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, true);
|
|
32
|
+
this.fs = this._getFileSystemMethods(this._options.fs);
|
|
33
|
+
this.globstar = this._getValue(this._options.globstar, true);
|
|
34
|
+
this.ignore = this._getValue(this._options.ignore, []);
|
|
35
|
+
this.markDirectories = this._getValue(this._options.markDirectories, false);
|
|
36
|
+
this.objectMode = this._getValue(this._options.objectMode, false);
|
|
37
|
+
this.onlyDirectories = this._getValue(this._options.onlyDirectories, false);
|
|
38
|
+
this.onlyFiles = this._getValue(this._options.onlyFiles, true);
|
|
39
|
+
this.stats = this._getValue(this._options.stats, false);
|
|
40
|
+
this.suppressErrors = this._getValue(this._options.suppressErrors, false);
|
|
41
|
+
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, false);
|
|
42
|
+
this.unique = this._getValue(this._options.unique, true);
|
|
43
|
+
if (this.onlyDirectories) {
|
|
44
|
+
this.onlyFiles = false;
|
|
45
|
+
}
|
|
46
|
+
if (this.stats) {
|
|
47
|
+
this.objectMode = true;
|
|
48
|
+
}
|
|
49
|
+
// Remove the cast to the array in the next major (#404).
|
|
50
|
+
this.ignore = [].concat(this.ignore);
|
|
51
|
+
}
|
|
52
|
+
_getValue(option, value) {
|
|
53
|
+
return option === undefined ? value : option;
|
|
54
|
+
}
|
|
55
|
+
_getFileSystemMethods(methods = {}) {
|
|
56
|
+
return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.default = Settings;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as fsWalk from '@nodelib/fs.walk';
|
|
3
|
+
export type ErrnoException = NodeJS.ErrnoException;
|
|
4
|
+
export type Entry = fsWalk.Entry;
|
|
5
|
+
export type EntryItem = string | Entry;
|
|
6
|
+
export type Pattern = string;
|
|
7
|
+
export type PatternRe = RegExp;
|
|
8
|
+
export type PatternsGroup = Record<string, Pattern[]>;
|
|
9
|
+
export type ReaderOptions = fsWalk.Options & {
|
|
10
|
+
transform(entry: Entry): EntryItem;
|
|
11
|
+
deepFilter: DeepFilterFunction;
|
|
12
|
+
entryFilter: EntryFilterFunction;
|
|
13
|
+
errorFilter: ErrorFilterFunction;
|
|
14
|
+
fs: FileSystemAdapter;
|
|
15
|
+
stats: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type ErrorFilterFunction = fsWalk.ErrorFilterFunction;
|
|
18
|
+
export type EntryFilterFunction = fsWalk.EntryFilterFunction;
|
|
19
|
+
export type DeepFilterFunction = fsWalk.DeepFilterFunction;
|
|
20
|
+
export type EntryTransformerFunction = (entry: Entry) => EntryItem;
|
|
21
|
+
export type MicromatchOptions = {
|
|
22
|
+
dot?: boolean;
|
|
23
|
+
matchBase?: boolean;
|
|
24
|
+
nobrace?: boolean;
|
|
25
|
+
nocase?: boolean;
|
|
26
|
+
noext?: boolean;
|
|
27
|
+
noglobstar?: boolean;
|
|
28
|
+
posix?: boolean;
|
|
29
|
+
strictSlashes?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type FileSystemAdapter = fsWalk.FileSystemAdapter;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.splitWhen = exports.flatten = void 0;
|
|
4
|
+
function flatten(items) {
|
|
5
|
+
return items.reduce((collection, item) => [].concat(collection, item), []);
|
|
6
|
+
}
|
|
7
|
+
exports.flatten = flatten;
|
|
8
|
+
function splitWhen(items, predicate) {
|
|
9
|
+
const result = [[]];
|
|
10
|
+
let groupIndex = 0;
|
|
11
|
+
for (const item of items) {
|
|
12
|
+
if (predicate(item)) {
|
|
13
|
+
groupIndex++;
|
|
14
|
+
result[groupIndex] = [];
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
result[groupIndex].push(item);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return result;
|
|
21
|
+
}
|
|
22
|
+
exports.splitWhen = splitWhen;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDirentFromStats = void 0;
|
|
4
|
+
class DirentFromStats {
|
|
5
|
+
constructor(name, stats) {
|
|
6
|
+
this.name = name;
|
|
7
|
+
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
8
|
+
this.isCharacterDevice = stats.isCharacterDevice.bind(stats);
|
|
9
|
+
this.isDirectory = stats.isDirectory.bind(stats);
|
|
10
|
+
this.isFIFO = stats.isFIFO.bind(stats);
|
|
11
|
+
this.isFile = stats.isFile.bind(stats);
|
|
12
|
+
this.isSocket = stats.isSocket.bind(stats);
|
|
13
|
+
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function createDirentFromStats(name, stats) {
|
|
17
|
+
return new DirentFromStats(name, stats);
|
|
18
|
+
}
|
|
19
|
+
exports.createDirentFromStats = createDirentFromStats;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as array from './array';
|
|
2
|
+
import * as errno from './errno';
|
|
3
|
+
import * as fs from './fs';
|
|
4
|
+
import * as path from './path';
|
|
5
|
+
import * as pattern from './pattern';
|
|
6
|
+
import * as stream from './stream';
|
|
7
|
+
import * as string from './string';
|
|
8
|
+
export { array, errno, fs, path, pattern, stream, string };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
4
|
+
const array = require("./array");
|
|
5
|
+
exports.array = array;
|
|
6
|
+
const errno = require("./errno");
|
|
7
|
+
exports.errno = errno;
|
|
8
|
+
const fs = require("./fs");
|
|
9
|
+
exports.fs = fs;
|
|
10
|
+
const path = require("./path");
|
|
11
|
+
exports.path = path;
|
|
12
|
+
const pattern = require("./pattern");
|
|
13
|
+
exports.pattern = pattern;
|
|
14
|
+
const stream = require("./stream");
|
|
15
|
+
exports.stream = stream;
|
|
16
|
+
const string = require("./string");
|
|
17
|
+
exports.string = string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Pattern } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Designed to work only with simple paths: `dir\\file`.
|
|
4
|
+
*/
|
|
5
|
+
export declare function unixify(filepath: string): string;
|
|
6
|
+
export declare function makeAbsolute(cwd: string, filepath: string): string;
|
|
7
|
+
export declare function removeLeadingDotSegment(entry: string): string;
|
|
8
|
+
export declare const escape: typeof escapeWindowsPath;
|
|
9
|
+
export declare function escapeWindowsPath(pattern: Pattern): Pattern;
|
|
10
|
+
export declare function escapePosixPath(pattern: Pattern): Pattern;
|
|
11
|
+
export declare const convertPathToPattern: typeof convertWindowsPathToPattern;
|
|
12
|
+
export declare function convertWindowsPathToPattern(filepath: string): Pattern;
|
|
13
|
+
export declare function convertPosixPathToPattern(filepath: string): Pattern;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
4
|
+
const os = require("os");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const IS_WINDOWS_PLATFORM = os.platform() === 'win32';
|
|
7
|
+
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
|
|
8
|
+
/**
|
|
9
|
+
* All non-escaped special characters.
|
|
10
|
+
* Posix: ()*?[]{|}, !+@ before (, ! at the beginning, \\ before non-special characters.
|
|
11
|
+
* Windows: (){}[], !+@ before (, ! at the beginning.
|
|
12
|
+
*/
|
|
13
|
+
const POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
14
|
+
const WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g;
|
|
15
|
+
/**
|
|
16
|
+
* The device path (\\.\ or \\?\).
|
|
17
|
+
* https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#dos-device-paths
|
|
18
|
+
*/
|
|
19
|
+
const DOS_DEVICE_PATH_RE = /^\\\\([.?])/;
|
|
20
|
+
/**
|
|
21
|
+
* All backslashes except those escaping special characters.
|
|
22
|
+
* Windows: !()+@{}
|
|
23
|
+
* https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions
|
|
24
|
+
*/
|
|
25
|
+
const WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g;
|
|
26
|
+
/**
|
|
27
|
+
* Designed to work only with simple paths: `dir\\file`.
|
|
28
|
+
*/
|
|
29
|
+
function unixify(filepath) {
|
|
30
|
+
return filepath.replace(/\\/g, '/');
|
|
31
|
+
}
|
|
32
|
+
exports.unixify = unixify;
|
|
33
|
+
function makeAbsolute(cwd, filepath) {
|
|
34
|
+
return path.resolve(cwd, filepath);
|
|
35
|
+
}
|
|
36
|
+
exports.makeAbsolute = makeAbsolute;
|
|
37
|
+
function removeLeadingDotSegment(entry) {
|
|
38
|
+
// We do not use `startsWith` because this is 10x slower than current implementation for some cases.
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
|
|
40
|
+
if (entry.charAt(0) === '.') {
|
|
41
|
+
const secondCharactery = entry.charAt(1);
|
|
42
|
+
if (secondCharactery === '/' || secondCharactery === '\\') {
|
|
43
|
+
return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return entry;
|
|
47
|
+
}
|
|
48
|
+
exports.removeLeadingDotSegment = removeLeadingDotSegment;
|
|
49
|
+
exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
|
|
50
|
+
function escapeWindowsPath(pattern) {
|
|
51
|
+
return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2');
|
|
52
|
+
}
|
|
53
|
+
exports.escapeWindowsPath = escapeWindowsPath;
|
|
54
|
+
function escapePosixPath(pattern) {
|
|
55
|
+
return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, '\\$2');
|
|
56
|
+
}
|
|
57
|
+
exports.escapePosixPath = escapePosixPath;
|
|
58
|
+
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
|
|
59
|
+
function convertWindowsPathToPattern(filepath) {
|
|
60
|
+
return escapeWindowsPath(filepath)
|
|
61
|
+
.replace(DOS_DEVICE_PATH_RE, '//$1')
|
|
62
|
+
.replace(WINDOWS_BACKSLASHES_RE, '/');
|
|
63
|
+
}
|
|
64
|
+
exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
|
|
65
|
+
function convertPosixPathToPattern(filepath) {
|
|
66
|
+
return escapePosixPath(filepath);
|
|
67
|
+
}
|
|
68
|
+
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { MicromatchOptions, Pattern, PatternRe } from '../types';
|
|
2
|
+
type PatternTypeOptions = {
|
|
3
|
+
braceExpansion?: boolean;
|
|
4
|
+
caseSensitiveMatch?: boolean;
|
|
5
|
+
extglob?: boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare function isStaticPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
|
|
8
|
+
export declare function isDynamicPattern(pattern: Pattern, options?: PatternTypeOptions): boolean;
|
|
9
|
+
export declare function convertToPositivePattern(pattern: Pattern): Pattern;
|
|
10
|
+
export declare function convertToNegativePattern(pattern: Pattern): Pattern;
|
|
11
|
+
export declare function isNegativePattern(pattern: Pattern): boolean;
|
|
12
|
+
export declare function isPositivePattern(pattern: Pattern): boolean;
|
|
13
|
+
export declare function getNegativePatterns(patterns: Pattern[]): Pattern[];
|
|
14
|
+
export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
|
|
15
|
+
/**
|
|
16
|
+
* Returns patterns that can be applied inside the current directory.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* // ['./*', '*', 'a/*']
|
|
20
|
+
* getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
|
|
21
|
+
*/
|
|
22
|
+
export declare function getPatternsInsideCurrentDirectory(patterns: Pattern[]): Pattern[];
|
|
23
|
+
/**
|
|
24
|
+
* Returns patterns to be expanded relative to (outside) the current directory.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* // ['../*', './../*']
|
|
28
|
+
* getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
|
|
29
|
+
*/
|
|
30
|
+
export declare function getPatternsOutsideCurrentDirectory(patterns: Pattern[]): Pattern[];
|
|
31
|
+
export declare function isPatternRelatedToParentDirectory(pattern: Pattern): boolean;
|
|
32
|
+
export declare function getBaseDirectory(pattern: Pattern): string;
|
|
33
|
+
export declare function hasGlobStar(pattern: Pattern): boolean;
|
|
34
|
+
export declare function endsWithSlashGlobStar(pattern: Pattern): boolean;
|
|
35
|
+
export declare function isAffectDepthOfReadingPattern(pattern: Pattern): boolean;
|
|
36
|
+
export declare function expandPatternsWithBraceExpansion(patterns: Pattern[]): Pattern[];
|
|
37
|
+
export declare function expandBraceExpansion(pattern: Pattern): Pattern[];
|
|
38
|
+
export declare function getPatternParts(pattern: Pattern, options: MicromatchOptions): Pattern[];
|
|
39
|
+
export declare function makeRe(pattern: Pattern, options: MicromatchOptions): PatternRe;
|
|
40
|
+
export declare function convertPatternsToRe(patterns: Pattern[], options: MicromatchOptions): PatternRe[];
|
|
41
|
+
export declare function matchAny(entry: string, patternsRe: PatternRe[]): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* This package only works with forward slashes as a path separator.
|
|
44
|
+
* Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
|
|
45
|
+
*/
|
|
46
|
+
export declare function removeDuplicateSlashes(pattern: string): string;
|
|
47
|
+
export declare function partitionAbsoluteAndRelative(patterns: Pattern[]): Pattern[][];
|
|
48
|
+
export declare function isAbsolute(pattern: string): boolean;
|
|
49
|
+
export {};
|