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,15 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2015, 2019 Elan Shanker
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://gulpjs.com">
|
|
3
|
+
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
# glob-parent
|
|
8
|
+
|
|
9
|
+
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Azure Pipelines Build Status][azure-pipelines-image]][azure-pipelines-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
|
|
10
|
+
|
|
11
|
+
Extract the non-magic parent path from a glob string.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
var globParent = require('glob-parent');
|
|
17
|
+
|
|
18
|
+
globParent('path/to/*.js'); // 'path/to'
|
|
19
|
+
globParent('/root/path/to/*.js'); // '/root/path/to'
|
|
20
|
+
globParent('/*.js'); // '/'
|
|
21
|
+
globParent('*.js'); // '.'
|
|
22
|
+
globParent('**/*.js'); // '.'
|
|
23
|
+
globParent('path/{to,from}'); // 'path'
|
|
24
|
+
globParent('path/!(to|from)'); // 'path'
|
|
25
|
+
globParent('path/?(to|from)'); // 'path'
|
|
26
|
+
globParent('path/+(to|from)'); // 'path'
|
|
27
|
+
globParent('path/*(to|from)'); // 'path'
|
|
28
|
+
globParent('path/@(to|from)'); // 'path'
|
|
29
|
+
globParent('path/**/*'); // 'path'
|
|
30
|
+
|
|
31
|
+
// if provided a non-glob path, returns the nearest dir
|
|
32
|
+
globParent('path/foo/bar.js'); // 'path/foo'
|
|
33
|
+
globParent('path/foo/'); // 'path/foo'
|
|
34
|
+
globParent('path/foo'); // 'path' (see issue #3 for details)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## API
|
|
38
|
+
|
|
39
|
+
### `globParent(maybeGlobString, [options])`
|
|
40
|
+
|
|
41
|
+
Takes a string and returns the part of the path before the glob begins. Be aware of Escaping rules and Limitations below.
|
|
42
|
+
|
|
43
|
+
#### options
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
{
|
|
47
|
+
// Disables the automatic conversion of slashes for Windows
|
|
48
|
+
flipBackslashes: true
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Escaping
|
|
53
|
+
|
|
54
|
+
The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters:
|
|
55
|
+
|
|
56
|
+
- `?` (question mark) unless used as a path segment alone
|
|
57
|
+
- `*` (asterisk)
|
|
58
|
+
- `|` (pipe)
|
|
59
|
+
- `(` (opening parenthesis)
|
|
60
|
+
- `)` (closing parenthesis)
|
|
61
|
+
- `{` (opening curly brace)
|
|
62
|
+
- `}` (closing curly brace)
|
|
63
|
+
- `[` (opening bracket)
|
|
64
|
+
- `]` (closing bracket)
|
|
65
|
+
|
|
66
|
+
**Example**
|
|
67
|
+
|
|
68
|
+
```js
|
|
69
|
+
globParent('foo/[bar]/') // 'foo'
|
|
70
|
+
globParent('foo/\\[bar]/') // 'foo/[bar]'
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Limitations
|
|
74
|
+
|
|
75
|
+
### Braces & Brackets
|
|
76
|
+
This library attempts a quick and imperfect method of determining which path
|
|
77
|
+
parts have glob magic without fully parsing/lexing the pattern. There are some
|
|
78
|
+
advanced use cases that can trip it up, such as nested braces where the outer
|
|
79
|
+
pair is escaped and the inner one contains a path separator. If you find
|
|
80
|
+
yourself in the unlikely circumstance of being affected by this or need to
|
|
81
|
+
ensure higher-fidelity glob handling in your library, it is recommended that you
|
|
82
|
+
pre-process your input with [expand-braces] and/or [expand-brackets].
|
|
83
|
+
|
|
84
|
+
### Windows
|
|
85
|
+
Backslashes are not valid path separators for globs. If a path with backslashes
|
|
86
|
+
is provided anyway, for simple cases, glob-parent will replace the path
|
|
87
|
+
separator for you and return the non-glob parent path (now with
|
|
88
|
+
forward-slashes, which are still valid as Windows path separators).
|
|
89
|
+
|
|
90
|
+
This cannot be used in conjunction with escape characters.
|
|
91
|
+
|
|
92
|
+
```js
|
|
93
|
+
// BAD
|
|
94
|
+
globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)'
|
|
95
|
+
|
|
96
|
+
// GOOD
|
|
97
|
+
globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)'
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
If you are using escape characters for a pattern without path parts (i.e.
|
|
101
|
+
relative to `cwd`), prefix with `./` to avoid confusing glob-parent.
|
|
102
|
+
|
|
103
|
+
```js
|
|
104
|
+
// BAD
|
|
105
|
+
globParent('foo \\[bar]') // 'foo '
|
|
106
|
+
globParent('foo \\[bar]*') // 'foo '
|
|
107
|
+
|
|
108
|
+
// GOOD
|
|
109
|
+
globParent('./foo \\[bar]') // 'foo [bar]'
|
|
110
|
+
globParent('./foo \\[bar]*') // '.'
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
ISC
|
|
116
|
+
|
|
117
|
+
[expand-braces]: https://github.com/jonschlinkert/expand-braces
|
|
118
|
+
[expand-brackets]: https://github.com/jonschlinkert/expand-brackets
|
|
119
|
+
|
|
120
|
+
[downloads-image]: https://img.shields.io/npm/dm/glob-parent.svg
|
|
121
|
+
[npm-url]: https://www.npmjs.com/package/glob-parent
|
|
122
|
+
[npm-image]: https://img.shields.io/npm/v/glob-parent.svg
|
|
123
|
+
|
|
124
|
+
[azure-pipelines-url]: https://dev.azure.com/gulpjs/gulp/_build/latest?definitionId=2&branchName=master
|
|
125
|
+
[azure-pipelines-image]: https://dev.azure.com/gulpjs/gulp/_apis/build/status/glob-parent?branchName=master
|
|
126
|
+
|
|
127
|
+
[travis-url]: https://travis-ci.org/gulpjs/glob-parent
|
|
128
|
+
[travis-image]: https://img.shields.io/travis/gulpjs/glob-parent.svg?label=travis-ci
|
|
129
|
+
|
|
130
|
+
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/glob-parent
|
|
131
|
+
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/glob-parent.svg?label=appveyor
|
|
132
|
+
|
|
133
|
+
[coveralls-url]: https://coveralls.io/r/gulpjs/glob-parent
|
|
134
|
+
[coveralls-image]: https://img.shields.io/coveralls/gulpjs/glob-parent/master.svg
|
|
135
|
+
|
|
136
|
+
[gitter-url]: https://gitter.im/gulpjs/gulp
|
|
137
|
+
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var isGlob = require('is-glob');
|
|
4
|
+
var pathPosixDirname = require('path').posix.dirname;
|
|
5
|
+
var isWin32 = require('os').platform() === 'win32';
|
|
6
|
+
|
|
7
|
+
var slash = '/';
|
|
8
|
+
var backslash = /\\/g;
|
|
9
|
+
var enclosure = /[\{\[].*[\}\]]$/;
|
|
10
|
+
var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
|
|
11
|
+
var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @param {string} str
|
|
15
|
+
* @param {Object} opts
|
|
16
|
+
* @param {boolean} [opts.flipBackslashes=true]
|
|
17
|
+
* @returns {string}
|
|
18
|
+
*/
|
|
19
|
+
module.exports = function globParent(str, opts) {
|
|
20
|
+
var options = Object.assign({ flipBackslashes: true }, opts);
|
|
21
|
+
|
|
22
|
+
// flip windows path separators
|
|
23
|
+
if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
|
|
24
|
+
str = str.replace(backslash, slash);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// special case for strings ending in enclosure containing path separator
|
|
28
|
+
if (enclosure.test(str)) {
|
|
29
|
+
str += slash;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// preserves full path in case of trailing path separator
|
|
33
|
+
str += 'a';
|
|
34
|
+
|
|
35
|
+
// remove path parts that are globby
|
|
36
|
+
do {
|
|
37
|
+
str = pathPosixDirname(str);
|
|
38
|
+
} while (isGlob(str) || globby.test(str));
|
|
39
|
+
|
|
40
|
+
// remove escape chars and return result
|
|
41
|
+
return str.replace(escaped, '$1');
|
|
42
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "glob-parent",
|
|
3
|
+
"version": "5.1.2",
|
|
4
|
+
"description": "Extract the non-magic parent path from a glob string.",
|
|
5
|
+
"author": "Gulp Team <team@gulpjs.com> (https://gulpjs.com/)",
|
|
6
|
+
"contributors": [
|
|
7
|
+
"Elan Shanker (https://github.com/es128)",
|
|
8
|
+
"Blaine Bublitz <blaine.bublitz@gmail.com>"
|
|
9
|
+
],
|
|
10
|
+
"repository": "gulpjs/glob-parent",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">= 6"
|
|
14
|
+
},
|
|
15
|
+
"main": "index.js",
|
|
16
|
+
"files": [
|
|
17
|
+
"LICENSE",
|
|
18
|
+
"index.js"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"lint": "eslint .",
|
|
22
|
+
"pretest": "npm run lint",
|
|
23
|
+
"test": "nyc mocha --async-only",
|
|
24
|
+
"azure-pipelines": "nyc mocha --async-only --reporter xunit -O output=test.xunit",
|
|
25
|
+
"coveralls": "nyc report --reporter=text-lcov | coveralls"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"is-glob": "^4.0.1"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"coveralls": "^3.0.11",
|
|
32
|
+
"eslint": "^2.13.1",
|
|
33
|
+
"eslint-config-gulp": "^3.0.1",
|
|
34
|
+
"expect": "^1.20.2",
|
|
35
|
+
"mocha": "^6.0.2",
|
|
36
|
+
"nyc": "^13.3.0"
|
|
37
|
+
},
|
|
38
|
+
"keywords": [
|
|
39
|
+
"glob",
|
|
40
|
+
"parent",
|
|
41
|
+
"strip",
|
|
42
|
+
"path",
|
|
43
|
+
"dirname",
|
|
44
|
+
"directory",
|
|
45
|
+
"base",
|
|
46
|
+
"wildcard"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as taskManager from './managers/tasks';
|
|
3
|
+
import { Options as OptionsInternal } from './settings';
|
|
4
|
+
import { Entry as EntryInternal, FileSystemAdapter as FileSystemAdapterInternal, Pattern as PatternInternal } from './types';
|
|
5
|
+
type EntryObjectModePredicate = {
|
|
6
|
+
[TKey in keyof Pick<OptionsInternal, 'objectMode'>]-?: true;
|
|
7
|
+
};
|
|
8
|
+
type EntryStatsPredicate = {
|
|
9
|
+
[TKey in keyof Pick<OptionsInternal, 'stats'>]-?: true;
|
|
10
|
+
};
|
|
11
|
+
type EntryObjectPredicate = EntryObjectModePredicate | EntryStatsPredicate;
|
|
12
|
+
declare function FastGlob(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): Promise<EntryInternal[]>;
|
|
13
|
+
declare function FastGlob(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Promise<string[]>;
|
|
14
|
+
declare namespace FastGlob {
|
|
15
|
+
type Options = OptionsInternal;
|
|
16
|
+
type Entry = EntryInternal;
|
|
17
|
+
type Task = taskManager.Task;
|
|
18
|
+
type Pattern = PatternInternal;
|
|
19
|
+
type FileSystemAdapter = FileSystemAdapterInternal;
|
|
20
|
+
const glob: typeof FastGlob;
|
|
21
|
+
const globSync: typeof sync;
|
|
22
|
+
const globStream: typeof stream;
|
|
23
|
+
const async: typeof FastGlob;
|
|
24
|
+
function sync(source: PatternInternal | PatternInternal[], options: OptionsInternal & EntryObjectPredicate): EntryInternal[];
|
|
25
|
+
function sync(source: PatternInternal | PatternInternal[], options?: OptionsInternal): string[];
|
|
26
|
+
function stream(source: PatternInternal | PatternInternal[], options?: OptionsInternal): NodeJS.ReadableStream;
|
|
27
|
+
function generateTasks(source: PatternInternal | PatternInternal[], options?: OptionsInternal): Task[];
|
|
28
|
+
function isDynamicPattern(source: PatternInternal, options?: OptionsInternal): boolean;
|
|
29
|
+
function escapePath(source: string): PatternInternal;
|
|
30
|
+
function convertPathToPattern(source: string): PatternInternal;
|
|
31
|
+
namespace posix {
|
|
32
|
+
function escapePath(source: string): PatternInternal;
|
|
33
|
+
function convertPathToPattern(source: string): PatternInternal;
|
|
34
|
+
}
|
|
35
|
+
namespace win32 {
|
|
36
|
+
function escapePath(source: string): PatternInternal;
|
|
37
|
+
function convertPathToPattern(source: string): PatternInternal;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export = FastGlob;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const taskManager = require("./managers/tasks");
|
|
3
|
+
const async_1 = require("./providers/async");
|
|
4
|
+
const stream_1 = require("./providers/stream");
|
|
5
|
+
const sync_1 = require("./providers/sync");
|
|
6
|
+
const settings_1 = require("./settings");
|
|
7
|
+
const utils = require("./utils");
|
|
8
|
+
async function FastGlob(source, options) {
|
|
9
|
+
assertPatternsInput(source);
|
|
10
|
+
const works = getWorks(source, async_1.default, options);
|
|
11
|
+
const result = await Promise.all(works);
|
|
12
|
+
return utils.array.flatten(result);
|
|
13
|
+
}
|
|
14
|
+
// https://github.com/typescript-eslint/typescript-eslint/issues/60
|
|
15
|
+
// eslint-disable-next-line no-redeclare
|
|
16
|
+
(function (FastGlob) {
|
|
17
|
+
FastGlob.glob = FastGlob;
|
|
18
|
+
FastGlob.globSync = sync;
|
|
19
|
+
FastGlob.globStream = stream;
|
|
20
|
+
FastGlob.async = FastGlob;
|
|
21
|
+
function sync(source, options) {
|
|
22
|
+
assertPatternsInput(source);
|
|
23
|
+
const works = getWorks(source, sync_1.default, options);
|
|
24
|
+
return utils.array.flatten(works);
|
|
25
|
+
}
|
|
26
|
+
FastGlob.sync = sync;
|
|
27
|
+
function stream(source, options) {
|
|
28
|
+
assertPatternsInput(source);
|
|
29
|
+
const works = getWorks(source, stream_1.default, options);
|
|
30
|
+
/**
|
|
31
|
+
* The stream returned by the provider cannot work with an asynchronous iterator.
|
|
32
|
+
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
|
33
|
+
* This affects performance (+25%). I don't see best solution right now.
|
|
34
|
+
*/
|
|
35
|
+
return utils.stream.merge(works);
|
|
36
|
+
}
|
|
37
|
+
FastGlob.stream = stream;
|
|
38
|
+
function generateTasks(source, options) {
|
|
39
|
+
assertPatternsInput(source);
|
|
40
|
+
const patterns = [].concat(source);
|
|
41
|
+
const settings = new settings_1.default(options);
|
|
42
|
+
return taskManager.generate(patterns, settings);
|
|
43
|
+
}
|
|
44
|
+
FastGlob.generateTasks = generateTasks;
|
|
45
|
+
function isDynamicPattern(source, options) {
|
|
46
|
+
assertPatternsInput(source);
|
|
47
|
+
const settings = new settings_1.default(options);
|
|
48
|
+
return utils.pattern.isDynamicPattern(source, settings);
|
|
49
|
+
}
|
|
50
|
+
FastGlob.isDynamicPattern = isDynamicPattern;
|
|
51
|
+
function escapePath(source) {
|
|
52
|
+
assertPatternsInput(source);
|
|
53
|
+
return utils.path.escape(source);
|
|
54
|
+
}
|
|
55
|
+
FastGlob.escapePath = escapePath;
|
|
56
|
+
function convertPathToPattern(source) {
|
|
57
|
+
assertPatternsInput(source);
|
|
58
|
+
return utils.path.convertPathToPattern(source);
|
|
59
|
+
}
|
|
60
|
+
FastGlob.convertPathToPattern = convertPathToPattern;
|
|
61
|
+
let posix;
|
|
62
|
+
(function (posix) {
|
|
63
|
+
function escapePath(source) {
|
|
64
|
+
assertPatternsInput(source);
|
|
65
|
+
return utils.path.escapePosixPath(source);
|
|
66
|
+
}
|
|
67
|
+
posix.escapePath = escapePath;
|
|
68
|
+
function convertPathToPattern(source) {
|
|
69
|
+
assertPatternsInput(source);
|
|
70
|
+
return utils.path.convertPosixPathToPattern(source);
|
|
71
|
+
}
|
|
72
|
+
posix.convertPathToPattern = convertPathToPattern;
|
|
73
|
+
})(posix = FastGlob.posix || (FastGlob.posix = {}));
|
|
74
|
+
let win32;
|
|
75
|
+
(function (win32) {
|
|
76
|
+
function escapePath(source) {
|
|
77
|
+
assertPatternsInput(source);
|
|
78
|
+
return utils.path.escapeWindowsPath(source);
|
|
79
|
+
}
|
|
80
|
+
win32.escapePath = escapePath;
|
|
81
|
+
function convertPathToPattern(source) {
|
|
82
|
+
assertPatternsInput(source);
|
|
83
|
+
return utils.path.convertWindowsPathToPattern(source);
|
|
84
|
+
}
|
|
85
|
+
win32.convertPathToPattern = convertPathToPattern;
|
|
86
|
+
})(win32 = FastGlob.win32 || (FastGlob.win32 = {}));
|
|
87
|
+
})(FastGlob || (FastGlob = {}));
|
|
88
|
+
function getWorks(source, _Provider, options) {
|
|
89
|
+
const patterns = [].concat(source);
|
|
90
|
+
const settings = new settings_1.default(options);
|
|
91
|
+
const tasks = taskManager.generate(patterns, settings);
|
|
92
|
+
const provider = new _Provider(settings);
|
|
93
|
+
return tasks.map(provider.read, provider);
|
|
94
|
+
}
|
|
95
|
+
function assertPatternsInput(input) {
|
|
96
|
+
const source = [].concat(input);
|
|
97
|
+
const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
|
|
98
|
+
if (!isValidSource) {
|
|
99
|
+
throw new TypeError('Patterns must be a string (non empty) or an array of strings');
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
module.exports = FastGlob;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Settings from '../settings';
|
|
2
|
+
import { Pattern, PatternsGroup } from '../types';
|
|
3
|
+
export type Task = {
|
|
4
|
+
base: string;
|
|
5
|
+
dynamic: boolean;
|
|
6
|
+
patterns: Pattern[];
|
|
7
|
+
positive: Pattern[];
|
|
8
|
+
negative: Pattern[];
|
|
9
|
+
};
|
|
10
|
+
export declare function generate(input: Pattern[], settings: Settings): Task[];
|
|
11
|
+
/**
|
|
12
|
+
* Returns tasks grouped by basic pattern directories.
|
|
13
|
+
*
|
|
14
|
+
* Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
|
|
15
|
+
* This is necessary because directory traversal starts at the base directory and goes deeper.
|
|
16
|
+
*/
|
|
17
|
+
export declare function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[];
|
|
18
|
+
export declare function getPositivePatterns(patterns: Pattern[]): Pattern[];
|
|
19
|
+
export declare function getNegativePatternsAsPositive(patterns: Pattern[], ignore: Pattern[]): Pattern[];
|
|
20
|
+
export declare function groupPatternsByBaseDirectory(patterns: Pattern[]): PatternsGroup;
|
|
21
|
+
export declare function convertPatternGroupsToTasks(positive: PatternsGroup, negative: Pattern[], dynamic: boolean): Task[];
|
|
22
|
+
export declare function convertPatternGroupToTask(base: string, positive: Pattern[], negative: Pattern[], dynamic: boolean): Task;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
4
|
+
const utils = require("../utils");
|
|
5
|
+
function generate(input, settings) {
|
|
6
|
+
const patterns = processPatterns(input, settings);
|
|
7
|
+
const ignore = processPatterns(settings.ignore, settings);
|
|
8
|
+
const positivePatterns = getPositivePatterns(patterns);
|
|
9
|
+
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
|
10
|
+
const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
|
|
11
|
+
const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
|
|
12
|
+
const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false);
|
|
13
|
+
const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, /* dynamic */ true);
|
|
14
|
+
return staticTasks.concat(dynamicTasks);
|
|
15
|
+
}
|
|
16
|
+
exports.generate = generate;
|
|
17
|
+
function processPatterns(input, settings) {
|
|
18
|
+
let patterns = input;
|
|
19
|
+
/**
|
|
20
|
+
* The original pattern like `{,*,**,a/*}` can lead to problems checking the depth when matching entry
|
|
21
|
+
* and some problems with the micromatch package (see fast-glob issues: #365, #394).
|
|
22
|
+
*
|
|
23
|
+
* To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown
|
|
24
|
+
* in matching in the case of a large set of patterns after expansion.
|
|
25
|
+
*/
|
|
26
|
+
if (settings.braceExpansion) {
|
|
27
|
+
patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used
|
|
31
|
+
* at any nesting level.
|
|
32
|
+
*
|
|
33
|
+
* We do this here, because otherwise we have to complicate the filtering logic. For example, we need to change
|
|
34
|
+
* the pattern in the filter before creating a regular expression. There is no need to change the patterns
|
|
35
|
+
* in the application. Only on the input.
|
|
36
|
+
*/
|
|
37
|
+
if (settings.baseNameMatch) {
|
|
38
|
+
patterns = patterns.map((pattern) => pattern.includes('/') ? pattern : `**/${pattern}`);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion.
|
|
42
|
+
*/
|
|
43
|
+
return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Returns tasks grouped by basic pattern directories.
|
|
47
|
+
*
|
|
48
|
+
* Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
|
|
49
|
+
* This is necessary because directory traversal starts at the base directory and goes deeper.
|
|
50
|
+
*/
|
|
51
|
+
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
52
|
+
const tasks = [];
|
|
53
|
+
const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
54
|
+
const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive);
|
|
55
|
+
const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
|
|
56
|
+
const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
|
|
57
|
+
tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
|
|
58
|
+
/*
|
|
59
|
+
* For the sake of reducing future accesses to the file system, we merge all tasks within the current directory
|
|
60
|
+
* into a global task, if at least one pattern refers to the root (`.`). In this case, the global task covers the rest.
|
|
61
|
+
*/
|
|
62
|
+
if ('.' in insideCurrentDirectoryGroup) {
|
|
63
|
+
tasks.push(convertPatternGroupToTask('.', patternsInsideCurrentDirectory, negative, dynamic));
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic));
|
|
67
|
+
}
|
|
68
|
+
return tasks;
|
|
69
|
+
}
|
|
70
|
+
exports.convertPatternsToTasks = convertPatternsToTasks;
|
|
71
|
+
function getPositivePatterns(patterns) {
|
|
72
|
+
return utils.pattern.getPositivePatterns(patterns);
|
|
73
|
+
}
|
|
74
|
+
exports.getPositivePatterns = getPositivePatterns;
|
|
75
|
+
function getNegativePatternsAsPositive(patterns, ignore) {
|
|
76
|
+
const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore);
|
|
77
|
+
const positive = negative.map(utils.pattern.convertToPositivePattern);
|
|
78
|
+
return positive;
|
|
79
|
+
}
|
|
80
|
+
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
81
|
+
function groupPatternsByBaseDirectory(patterns) {
|
|
82
|
+
const group = {};
|
|
83
|
+
return patterns.reduce((collection, pattern) => {
|
|
84
|
+
const base = utils.pattern.getBaseDirectory(pattern);
|
|
85
|
+
if (base in collection) {
|
|
86
|
+
collection[base].push(pattern);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
collection[base] = [pattern];
|
|
90
|
+
}
|
|
91
|
+
return collection;
|
|
92
|
+
}, group);
|
|
93
|
+
}
|
|
94
|
+
exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
|
95
|
+
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
96
|
+
return Object.keys(positive).map((base) => {
|
|
97
|
+
return convertPatternGroupToTask(base, positive[base], negative, dynamic);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
|
|
101
|
+
function convertPatternGroupToTask(base, positive, negative, dynamic) {
|
|
102
|
+
return {
|
|
103
|
+
dynamic,
|
|
104
|
+
positive,
|
|
105
|
+
negative,
|
|
106
|
+
base,
|
|
107
|
+
patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Task } from '../managers/tasks';
|
|
2
|
+
import { Entry, EntryItem, ReaderOptions } from '../types';
|
|
3
|
+
import ReaderAsync from '../readers/async';
|
|
4
|
+
import Provider from './provider';
|
|
5
|
+
export default class ProviderAsync extends Provider<Promise<EntryItem[]>> {
|
|
6
|
+
protected _reader: ReaderAsync;
|
|
7
|
+
read(task: Task): Promise<EntryItem[]>;
|
|
8
|
+
api(root: string, task: Task, options: ReaderOptions): Promise<Entry[]>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const async_1 = require("../readers/async");
|
|
4
|
+
const provider_1 = require("./provider");
|
|
5
|
+
class ProviderAsync extends provider_1.default {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this._reader = new async_1.default(this._settings);
|
|
9
|
+
}
|
|
10
|
+
async read(task) {
|
|
11
|
+
const root = this._getRootDirectory(task);
|
|
12
|
+
const options = this._getReaderOptions(task);
|
|
13
|
+
const entries = await this.api(root, task, options);
|
|
14
|
+
return entries.map((entry) => options.transform(entry));
|
|
15
|
+
}
|
|
16
|
+
api(root, task, options) {
|
|
17
|
+
if (task.dynamic) {
|
|
18
|
+
return this._reader.dynamic(root, options);
|
|
19
|
+
}
|
|
20
|
+
return this._reader.static(task.patterns, options);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = ProviderAsync;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MicromatchOptions, EntryFilterFunction, Pattern } from '../../types';
|
|
2
|
+
import Settings from '../../settings';
|
|
3
|
+
export default class DeepFilter {
|
|
4
|
+
private readonly _settings;
|
|
5
|
+
private readonly _micromatchOptions;
|
|
6
|
+
constructor(_settings: Settings, _micromatchOptions: MicromatchOptions);
|
|
7
|
+
getFilter(basePath: string, positive: Pattern[], negative: Pattern[]): EntryFilterFunction;
|
|
8
|
+
private _getMatcher;
|
|
9
|
+
private _getNegativePatternsRe;
|
|
10
|
+
private _filter;
|
|
11
|
+
private _isSkippedByDeep;
|
|
12
|
+
private _getEntryLevel;
|
|
13
|
+
private _isSkippedSymbolicLink;
|
|
14
|
+
private _isSkippedByPositivePatterns;
|
|
15
|
+
private _isSkippedByNegativePatterns;
|
|
16
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils = require("../../utils");
|
|
4
|
+
const partial_1 = require("../matchers/partial");
|
|
5
|
+
class DeepFilter {
|
|
6
|
+
constructor(_settings, _micromatchOptions) {
|
|
7
|
+
this._settings = _settings;
|
|
8
|
+
this._micromatchOptions = _micromatchOptions;
|
|
9
|
+
}
|
|
10
|
+
getFilter(basePath, positive, negative) {
|
|
11
|
+
const matcher = this._getMatcher(positive);
|
|
12
|
+
const negativeRe = this._getNegativePatternsRe(negative);
|
|
13
|
+
return (entry) => this._filter(basePath, entry, matcher, negativeRe);
|
|
14
|
+
}
|
|
15
|
+
_getMatcher(patterns) {
|
|
16
|
+
return new partial_1.default(patterns, this._settings, this._micromatchOptions);
|
|
17
|
+
}
|
|
18
|
+
_getNegativePatternsRe(patterns) {
|
|
19
|
+
const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern);
|
|
20
|
+
return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
|
|
21
|
+
}
|
|
22
|
+
_filter(basePath, entry, matcher, negativeRe) {
|
|
23
|
+
if (this._isSkippedByDeep(basePath, entry.path)) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
if (this._isSkippedSymbolicLink(entry)) {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
30
|
+
if (this._isSkippedByPositivePatterns(filepath, matcher)) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
return this._isSkippedByNegativePatterns(filepath, negativeRe);
|
|
34
|
+
}
|
|
35
|
+
_isSkippedByDeep(basePath, entryPath) {
|
|
36
|
+
/**
|
|
37
|
+
* Avoid unnecessary depth calculations when it doesn't matter.
|
|
38
|
+
*/
|
|
39
|
+
if (this._settings.deep === Infinity) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return this._getEntryLevel(basePath, entryPath) >= this._settings.deep;
|
|
43
|
+
}
|
|
44
|
+
_getEntryLevel(basePath, entryPath) {
|
|
45
|
+
const entryPathDepth = entryPath.split('/').length;
|
|
46
|
+
if (basePath === '') {
|
|
47
|
+
return entryPathDepth;
|
|
48
|
+
}
|
|
49
|
+
const basePathDepth = basePath.split('/').length;
|
|
50
|
+
return entryPathDepth - basePathDepth;
|
|
51
|
+
}
|
|
52
|
+
_isSkippedSymbolicLink(entry) {
|
|
53
|
+
return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
|
|
54
|
+
}
|
|
55
|
+
_isSkippedByPositivePatterns(entryPath, matcher) {
|
|
56
|
+
return !this._settings.baseNameMatch && !matcher.match(entryPath);
|
|
57
|
+
}
|
|
58
|
+
_isSkippedByNegativePatterns(entryPath, patternsRe) {
|
|
59
|
+
return !utils.pattern.matchAny(entryPath, patternsRe);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.default = DeepFilter;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Settings from '../../settings';
|
|
2
|
+
import { EntryFilterFunction, MicromatchOptions, Pattern } from '../../types';
|
|
3
|
+
export default class EntryFilter {
|
|
4
|
+
private readonly _settings;
|
|
5
|
+
private readonly _micromatchOptions;
|
|
6
|
+
readonly index: Map<string, undefined>;
|
|
7
|
+
constructor(_settings: Settings, _micromatchOptions: MicromatchOptions);
|
|
8
|
+
getFilter(positive: Pattern[], negative: Pattern[]): EntryFilterFunction;
|
|
9
|
+
private _filter;
|
|
10
|
+
private _isDuplicateEntry;
|
|
11
|
+
private _createIndexRecord;
|
|
12
|
+
private _onlyFileFilter;
|
|
13
|
+
private _onlyDirectoryFilter;
|
|
14
|
+
private _isMatchToPatternsSet;
|
|
15
|
+
private _isMatchToAbsoluteNegative;
|
|
16
|
+
private _isMatchToPatterns;
|
|
17
|
+
}
|