@bleedingdev/modern-js-utils 3.2.0-ultramodern.0
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/LICENSE +21 -0
- package/README.md +26 -0
- package/dist/cjs/cli/alias.js +82 -0
- package/dist/cjs/cli/applyOptionsChain.js +50 -0
- package/dist/cjs/cli/commands.js +69 -0
- package/dist/cjs/cli/common.js +59 -0
- package/dist/cjs/cli/config.js +39 -0
- package/dist/cjs/cli/constants.js +136 -0
- package/dist/cjs/cli/ensure.js +56 -0
- package/dist/cjs/cli/fs.js +46 -0
- package/dist/cjs/cli/get/config.js +48 -0
- package/dist/cjs/cli/get/data.js +106 -0
- package/dist/cjs/cli/get/index.js +112 -0
- package/dist/cjs/cli/index.js +212 -0
- package/dist/cjs/cli/is/config.js +86 -0
- package/dist/cjs/cli/is/env.js +52 -0
- package/dist/cjs/cli/is/index.js +79 -0
- package/dist/cjs/cli/is/project.js +147 -0
- package/dist/cjs/cli/is/type.js +84 -0
- package/dist/cjs/cli/logger.js +39 -0
- package/dist/cjs/cli/modulePath.js +87 -0
- package/dist/cjs/cli/monorepo.js +110 -0
- package/dist/cjs/cli/package.js +97 -0
- package/dist/cjs/cli/path.js +111 -0
- package/dist/cjs/cli/port.js +79 -0
- package/dist/cjs/cli/prettyInstructions.js +117 -0
- package/dist/cjs/cli/require.js +127 -0
- package/dist/cjs/cli/route.js +76 -0
- package/dist/cjs/cli/runtimeExports.js +86 -0
- package/dist/cjs/cli/tsconfig.js +51 -0
- package/dist/cjs/cli/version.js +67 -0
- package/dist/cjs/cli/watch.js +87 -0
- package/dist/cjs/compiled.js +209 -0
- package/dist/cjs/import.js +56 -0
- package/dist/cjs/index.js +72 -0
- package/dist/cjs/universal/constants.js +84 -0
- package/dist/cjs/universal/index.js +36 -0
- package/dist/cjs/universal/path.js +36 -0
- package/dist/cjs/universal/pluginDagSort.js +75 -0
- package/dist/compiled/address/index.js +171 -0
- package/dist/compiled/address/lib/address.d.ts +28 -0
- package/dist/compiled/address/package.json +1 -0
- package/dist/compiled/browserslist/index.d.ts +178 -0
- package/dist/compiled/browserslist/index.js +1329 -0
- package/dist/compiled/browserslist/license +20 -0
- package/dist/compiled/browserslist/package.json +1 -0
- package/dist/compiled/chalk/index.d.ts +415 -0
- package/dist/compiled/chalk/index.js +2368 -0
- package/dist/compiled/chalk/license +9 -0
- package/dist/compiled/chalk/package.json +1 -0
- package/dist/compiled/chokidar/anymatch/index.d.ts +19 -0
- package/dist/compiled/chokidar/fsevents.node +0 -0
- package/dist/compiled/chokidar/index.js +4162 -0
- package/dist/compiled/chokidar/index.js.LICENSE.txt +41 -0
- package/dist/compiled/chokidar/license +21 -0
- package/dist/compiled/chokidar/package.json +1 -0
- package/dist/compiled/chokidar/types/index.d.ts +188 -0
- package/dist/compiled/commander/index.js +1540 -0
- package/dist/compiled/commander/index.mjs +2 -0
- package/dist/compiled/commander/license +22 -0
- package/dist/compiled/commander/package.json +1 -0
- package/dist/compiled/commander/typings/index.d.ts +890 -0
- package/dist/compiled/debug/index.d.ts +54 -0
- package/dist/compiled/debug/index.js +621 -0
- package/dist/compiled/debug/license +20 -0
- package/dist/compiled/debug/ms/index.d.ts +25 -0
- package/dist/compiled/debug/package.json +1 -0
- package/dist/compiled/dotenv/index.js +101 -0
- package/dist/compiled/dotenv/license +23 -0
- package/dist/compiled/dotenv/package.json +1 -0
- package/dist/compiled/dotenv/types/index.d.ts +59 -0
- package/dist/compiled/dotenv-expand/index.d.ts +15 -0
- package/dist/compiled/dotenv-expand/index.js +54 -0
- package/dist/compiled/dotenv-expand/license +24 -0
- package/dist/compiled/dotenv-expand/package.json +1 -0
- package/dist/compiled/execa/index.d.ts +564 -0
- package/dist/compiled/execa/index.js +1738 -0
- package/dist/compiled/execa/license +9 -0
- package/dist/compiled/execa/package.json +1 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/dist/compiled/fast-glob/index.js +4665 -0
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +38 -0
- package/dist/compiled/fast-glob/license +21 -0
- package/dist/compiled/fast-glob/out/index.d.ts +27 -0
- package/dist/compiled/fast-glob/out/managers/tasks.d.ts +22 -0
- package/dist/compiled/fast-glob/out/settings.d.ts +164 -0
- package/dist/compiled/fast-glob/out/types/index.d.ts +31 -0
- package/dist/compiled/fast-glob/package.json +1 -0
- package/dist/compiled/filesize/filesize.d.ts +131 -0
- package/dist/compiled/filesize/index.js +198 -0
- package/dist/compiled/filesize/index.js.LICENSE.txt +7 -0
- package/dist/compiled/filesize/license +28 -0
- package/dist/compiled/filesize/package.json +1 -0
- package/dist/compiled/fs-extra/index.d.ts +563 -0
- package/dist/compiled/fs-extra/index.js +2222 -0
- package/dist/compiled/fs-extra/license +15 -0
- package/dist/compiled/fs-extra/package.json +1 -0
- package/dist/compiled/glob/index.d.ts +91 -0
- package/dist/compiled/glob/index.js +2011 -0
- package/dist/compiled/glob/license +21 -0
- package/dist/compiled/glob/minimatch/index.d.ts +204 -0
- package/dist/compiled/glob/package.json +1 -0
- package/dist/compiled/globby/index.d.ts +186 -0
- package/dist/compiled/globby/index.js +690 -0
- package/dist/compiled/globby/license +9 -0
- package/dist/compiled/globby/package.json +1 -0
- package/dist/compiled/gzip-size/index.d.ts +96 -0
- package/dist/compiled/gzip-size/index.js +157 -0
- package/dist/compiled/gzip-size/license +9 -0
- package/dist/compiled/gzip-size/package.json +1 -0
- package/dist/compiled/import-lazy/index.d.ts +26 -0
- package/dist/compiled/import-lazy/index.js +45 -0
- package/dist/compiled/import-lazy/license +9 -0
- package/dist/compiled/import-lazy/package.json +1 -0
- package/dist/compiled/inquirer/index.d.ts +997 -0
- package/dist/compiled/inquirer/index.js +20167 -0
- package/dist/compiled/inquirer/index.js.LICENSE.txt +7 -0
- package/dist/compiled/inquirer/lib/objects/choice.d.ts +65 -0
- package/dist/compiled/inquirer/lib/objects/choices.d.ts +206 -0
- package/dist/compiled/inquirer/lib/objects/separator.d.ts +37 -0
- package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +37 -0
- package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +65 -0
- package/dist/compiled/inquirer/lib/ui/prompt.d.ts +104 -0
- package/dist/compiled/inquirer/license +22 -0
- package/dist/compiled/inquirer/package.json +1 -0
- package/dist/compiled/inquirer/through/index.d.ts +25 -0
- package/dist/compiled/js-yaml/index.d.ts +154 -0
- package/dist/compiled/js-yaml/index.js +2191 -0
- package/dist/compiled/js-yaml/index.mjs +2167 -0
- package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -0
- package/dist/compiled/js-yaml/license +21 -0
- package/dist/compiled/js-yaml/package.json +1 -0
- package/dist/compiled/json5/index.js +983 -0
- package/dist/compiled/json5/lib/index.d.ts +4 -0
- package/dist/compiled/json5/lib/parse.d.ts +15 -0
- package/dist/compiled/json5/lib/stringify.d.ts +89 -0
- package/dist/compiled/json5/package.json +1 -0
- package/dist/compiled/lodash/common/array.d.ts +2126 -0
- package/dist/compiled/lodash/common/collection.d.ts +1930 -0
- package/dist/compiled/lodash/common/common.d.ts +280 -0
- package/dist/compiled/lodash/common/date.d.ts +23 -0
- package/dist/compiled/lodash/common/function.d.ts +1446 -0
- package/dist/compiled/lodash/common/lang.d.ts +1693 -0
- package/dist/compiled/lodash/common/math.d.ts +405 -0
- package/dist/compiled/lodash/common/number.d.ts +131 -0
- package/dist/compiled/lodash/common/object.d.ts +2519 -0
- package/dist/compiled/lodash/common/seq.d.ts +210 -0
- package/dist/compiled/lodash/common/string.d.ts +788 -0
- package/dist/compiled/lodash/common/util.d.ts +1220 -0
- package/dist/compiled/lodash/index.d.ts +46 -0
- package/dist/compiled/lodash/index.js +1 -0
- package/dist/compiled/lodash/index.mjs +1 -0
- package/dist/compiled/lodash/license +47 -0
- package/dist/compiled/lodash/package.json +1 -0
- package/dist/compiled/mime-types/index.d.ts +14 -0
- package/dist/compiled/mime-types/index.js +116 -0
- package/dist/compiled/mime-types/index.js.LICENSE.txt +13 -0
- package/dist/compiled/mime-types/license +23 -0
- package/dist/compiled/mime-types/package.json +1 -0
- package/dist/compiled/minimist/index.d.ts +95 -0
- package/dist/compiled/minimist/index.js +202 -0
- package/dist/compiled/minimist/license +18 -0
- package/dist/compiled/minimist/package.json +1 -0
- package/dist/compiled/nanoid/index.d.ts +91 -0
- package/dist/compiled/nanoid/index.js +83 -0
- package/dist/compiled/nanoid/index.mjs +69 -0
- package/dist/compiled/nanoid/license +20 -0
- package/dist/compiled/nanoid/package.json +1 -0
- package/dist/compiled/ora/cli-spinners/index.d.ts +125 -0
- package/dist/compiled/ora/index.d.ts +277 -0
- package/dist/compiled/ora/index.js +3936 -0
- package/dist/compiled/ora/index.js.LICENSE.txt +1 -0
- package/dist/compiled/ora/license +9 -0
- package/dist/compiled/ora/package.json +1 -0
- package/dist/compiled/pkg-up/index.d.ts +48 -0
- package/dist/compiled/pkg-up/index.js +15 -0
- package/dist/compiled/pkg-up/license +9 -0
- package/dist/compiled/pkg-up/package.json +1 -0
- package/dist/compiled/semver/classes/comparator.d.ts +17 -0
- package/dist/compiled/semver/classes/range.d.ts +21 -0
- package/dist/compiled/semver/classes/semver.d.ts +62 -0
- package/dist/compiled/semver/functions/clean.d.ts +8 -0
- package/dist/compiled/semver/functions/cmp.d.ts +16 -0
- package/dist/compiled/semver/functions/coerce.d.ts +12 -0
- package/dist/compiled/semver/functions/compare-build.d.ts +16 -0
- package/dist/compiled/semver/functions/compare-loose.d.ts +5 -0
- package/dist/compiled/semver/functions/compare.d.ts +20 -0
- package/dist/compiled/semver/functions/diff.d.ts +13 -0
- package/dist/compiled/semver/functions/eq.d.ts +9 -0
- package/dist/compiled/semver/functions/gt.d.ts +9 -0
- package/dist/compiled/semver/functions/gte.d.ts +9 -0
- package/dist/compiled/semver/functions/inc.d.ts +15 -0
- package/dist/compiled/semver/functions/lt.d.ts +9 -0
- package/dist/compiled/semver/functions/lte.d.ts +8 -0
- package/dist/compiled/semver/functions/major.d.ts +9 -0
- package/dist/compiled/semver/functions/minor.d.ts +9 -0
- package/dist/compiled/semver/functions/neq.d.ts +9 -0
- package/dist/compiled/semver/functions/parse.d.ts +12 -0
- package/dist/compiled/semver/functions/patch.d.ts +9 -0
- package/dist/compiled/semver/functions/prerelease.d.ts +12 -0
- package/dist/compiled/semver/functions/rcompare.d.ts +15 -0
- package/dist/compiled/semver/functions/rsort.d.ts +9 -0
- package/dist/compiled/semver/functions/satisfies.d.ts +14 -0
- package/dist/compiled/semver/functions/sort.d.ts +9 -0
- package/dist/compiled/semver/functions/valid.d.ts +11 -0
- package/dist/compiled/semver/index.d.ts +133 -0
- package/dist/compiled/semver/index.js +1779 -0
- package/dist/compiled/semver/internals/identifiers.d.ts +13 -0
- package/dist/compiled/semver/license +15 -0
- package/dist/compiled/semver/package.json +1 -0
- package/dist/compiled/semver/ranges/gtr.d.ts +14 -0
- package/dist/compiled/semver/ranges/intersects.d.ts +13 -0
- package/dist/compiled/semver/ranges/ltr.d.ts +14 -0
- package/dist/compiled/semver/ranges/max-satisfying.d.ts +14 -0
- package/dist/compiled/semver/ranges/min-satisfying.d.ts +14 -0
- package/dist/compiled/semver/ranges/min-version.d.ts +10 -0
- package/dist/compiled/semver/ranges/outside.d.ts +15 -0
- package/dist/compiled/semver/ranges/simplify.d.ts +14 -0
- package/dist/compiled/semver/ranges/subset.d.ts +13 -0
- package/dist/compiled/semver/ranges/to-comparators.d.ts +9 -0
- package/dist/compiled/semver/ranges/valid.d.ts +12 -0
- package/dist/compiled/signale/index.d.ts +162 -0
- package/dist/compiled/signale/index.js +1704 -0
- package/dist/compiled/signale/package.json +1 -0
- package/dist/compiled/slash/index.d.ts +25 -0
- package/dist/compiled/slash/index.js +32 -0
- package/dist/compiled/slash/license +9 -0
- package/dist/compiled/slash/package.json +1 -0
- package/dist/compiled/strip-ansi/index.d.ts +17 -0
- package/dist/compiled/strip-ansi/index.js +34 -0
- package/dist/compiled/strip-ansi/license +9 -0
- package/dist/compiled/strip-ansi/package.json +1 -0
- package/dist/compiled/tsconfig-paths/index.js +629 -0
- package/dist/compiled/tsconfig-paths/index.mjs +2 -0
- package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +33 -0
- package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +34 -0
- package/dist/compiled/tsconfig-paths/lib/index.d.ts +5 -0
- package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
- package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +21 -0
- package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
- package/dist/compiled/tsconfig-paths/lib/register.d.ts +12 -0
- package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +15 -0
- package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
- package/dist/compiled/tsconfig-paths/license +21 -0
- package/dist/compiled/tsconfig-paths/package.json +1 -0
- package/dist/compiled/upath/index.js +135 -0
- package/dist/compiled/upath/license +22 -0
- package/dist/compiled/upath/package.json +1 -0
- package/dist/compiled/upath/upath.d.ts +241 -0
- package/dist/compiled/url-join/index.d.ts +17 -0
- package/dist/compiled/url-join/index.js +61 -0
- package/dist/compiled/url-join/license +21 -0
- package/dist/compiled/url-join/package.json +1 -0
- package/dist/compiled/webpack-chain/index.js +1475 -0
- package/dist/compiled/webpack-chain/license +373 -0
- package/dist/compiled/webpack-chain/package.json +1 -0
- package/dist/compiled/webpack-chain/types/index.d.ts +599 -0
- package/dist/esm/cli/alias.mjs +31 -0
- package/dist/esm/cli/applyOptionsChain.mjs +16 -0
- package/dist/esm/cli/commands.mjs +23 -0
- package/dist/esm/cli/common.mjs +9 -0
- package/dist/esm/cli/config.mjs +5 -0
- package/dist/esm/cli/constants.mjs +30 -0
- package/dist/esm/cli/ensure.mjs +9 -0
- package/dist/esm/cli/fs.mjs +9 -0
- package/dist/esm/cli/get/config.mjs +14 -0
- package/dist/esm/cli/get/data.mjs +49 -0
- package/dist/esm/cli/get/index.mjs +18 -0
- package/dist/esm/cli/index.mjs +23 -0
- package/dist/esm/cli/is/config.mjs +37 -0
- package/dist/esm/cli/is/env.mjs +6 -0
- package/dist/esm/cli/is/index.mjs +4 -0
- package/dist/esm/cli/is/project.mjs +75 -0
- package/dist/esm/cli/is/type.mjs +26 -0
- package/dist/esm/cli/logger.mjs +1 -0
- package/dist/esm/cli/modulePath.mjs +33 -0
- package/dist/esm/cli/monorepo.mjs +50 -0
- package/dist/esm/cli/package.mjs +51 -0
- package/dist/esm/cli/path.mjs +35 -0
- package/dist/esm/cli/port.mjs +35 -0
- package/dist/esm/cli/prettyInstructions.mjs +70 -0
- package/dist/esm/cli/require.mjs +79 -0
- package/dist/esm/cli/route.mjs +36 -0
- package/dist/esm/cli/runtimeExports.mjs +42 -0
- package/dist/esm/cli/tsconfig.mjs +7 -0
- package/dist/esm/cli/version.mjs +24 -0
- package/dist/esm/cli/watch.mjs +40 -0
- package/dist/esm/compiled.mjs +45 -0
- package/dist/esm/import.mjs +9 -0
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/rslib-runtime.mjs +12 -0
- package/dist/esm/universal/constants.mjs +14 -0
- package/dist/esm/universal/index.mjs +1 -0
- package/dist/esm/universal/path.mjs +2 -0
- package/dist/esm/universal/pluginDagSort.mjs +41 -0
- package/dist/esm-node/cli/alias.mjs +32 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +17 -0
- package/dist/esm-node/cli/commands.mjs +24 -0
- package/dist/esm-node/cli/common.mjs +10 -0
- package/dist/esm-node/cli/config.mjs +6 -0
- package/dist/esm-node/cli/constants.mjs +31 -0
- package/dist/esm-node/cli/ensure.mjs +10 -0
- package/dist/esm-node/cli/fs.mjs +10 -0
- package/dist/esm-node/cli/get/config.mjs +15 -0
- package/dist/esm-node/cli/get/data.mjs +50 -0
- package/dist/esm-node/cli/get/index.mjs +19 -0
- package/dist/esm-node/cli/index.mjs +24 -0
- package/dist/esm-node/cli/is/config.mjs +38 -0
- package/dist/esm-node/cli/is/env.mjs +7 -0
- package/dist/esm-node/cli/is/index.mjs +5 -0
- package/dist/esm-node/cli/is/project.mjs +76 -0
- package/dist/esm-node/cli/is/type.mjs +27 -0
- package/dist/esm-node/cli/logger.mjs +2 -0
- package/dist/esm-node/cli/modulePath.mjs +34 -0
- package/dist/esm-node/cli/monorepo.mjs +51 -0
- package/dist/esm-node/cli/package.mjs +52 -0
- package/dist/esm-node/cli/path.mjs +36 -0
- package/dist/esm-node/cli/port.mjs +36 -0
- package/dist/esm-node/cli/prettyInstructions.mjs +71 -0
- package/dist/esm-node/cli/require.mjs +80 -0
- package/dist/esm-node/cli/route.mjs +37 -0
- package/dist/esm-node/cli/runtimeExports.mjs +43 -0
- package/dist/esm-node/cli/tsconfig.mjs +8 -0
- package/dist/esm-node/cli/version.mjs +25 -0
- package/dist/esm-node/cli/watch.mjs +41 -0
- package/dist/esm-node/compiled.mjs +45 -0
- package/dist/esm-node/import.mjs +10 -0
- package/dist/esm-node/index.mjs +4 -0
- package/dist/esm-node/universal/constants.mjs +15 -0
- package/dist/esm-node/universal/index.mjs +2 -0
- package/dist/esm-node/universal/path.mjs +3 -0
- package/dist/esm-node/universal/pluginDagSort.mjs +42 -0
- package/dist/types/cli/alias.d.ts +20 -0
- package/dist/types/cli/applyOptionsChain.d.ts +3 -0
- package/dist/types/cli/commands.d.ts +8 -0
- package/dist/types/cli/common.d.ts +9 -0
- package/dist/types/cli/config.d.ts +4 -0
- package/dist/types/cli/constants.d.ts +55 -0
- package/dist/types/cli/ensure.d.ts +8 -0
- package/dist/types/cli/fs.d.ts +7 -0
- package/dist/types/cli/get/config.d.ts +1 -0
- package/dist/types/cli/get/data.d.ts +6 -0
- package/dist/types/cli/get/index.d.ts +11 -0
- package/dist/types/cli/index.d.ts +23 -0
- package/dist/types/cli/is/config.d.ts +22 -0
- package/dist/types/cli/is/env.d.ts +8 -0
- package/dist/types/cli/is/index.d.ts +4 -0
- package/dist/types/cli/is/project.d.ts +39 -0
- package/dist/types/cli/is/type.d.ts +15 -0
- package/dist/types/cli/logger.d.ts +1 -0
- package/dist/types/cli/modulePath.d.ts +5 -0
- package/dist/types/cli/monorepo.d.ts +9 -0
- package/dist/types/cli/package.d.ts +5 -0
- package/dist/types/cli/path.d.ts +11 -0
- package/dist/types/cli/port.d.ts +12 -0
- package/dist/types/cli/prettyInstructions.d.ts +9 -0
- package/dist/types/cli/require.d.ts +9 -0
- package/dist/types/cli/route.d.ts +4 -0
- package/dist/types/cli/runtimeExports.d.ts +5 -0
- package/dist/types/cli/tsconfig.d.ts +1 -0
- package/dist/types/cli/version.d.ts +4 -0
- package/dist/types/cli/watch.d.ts +8 -0
- package/dist/types/compiled.d.ts +37 -0
- package/dist/types/import.d.ts +5 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/universal/constants.d.ts +47 -0
- package/dist/types/universal/index.d.ts +1 -0
- package/dist/types/universal/path.d.ts +1 -0
- package/dist/types/universal/pluginDagSort.d.ts +1 -0
- package/package.json +174 -0
- package/rslib.config.mts +162 -0
- package/rstest.config.mts +8 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
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.
|
|
16
|
+
|
|
17
|
+
## Glob Logo
|
|
18
|
+
|
|
19
|
+
Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
|
|
20
|
+
under a Creative Commons Attribution-ShareAlike 4.0 International License
|
|
21
|
+
https://creativecommons.org/licenses/by-sa/4.0/
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
// Type definitions for Minimatch 3.0
|
|
2
|
+
// Project: https://github.com/isaacs/minimatch
|
|
3
|
+
// Definitions by: vvakame <https://github.com/vvakame>
|
|
4
|
+
// Shant Marouti <https://github.com/shantmarouti>
|
|
5
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Tests a path against the pattern using the options.
|
|
9
|
+
*/
|
|
10
|
+
declare function M(target: string, pattern: string, options?: M.IOptions): boolean;
|
|
11
|
+
|
|
12
|
+
declare namespace M {
|
|
13
|
+
/**
|
|
14
|
+
* Match against the list of files, in the style of fnmatch or glob.
|
|
15
|
+
* If nothing is matched, and options.nonull is set,
|
|
16
|
+
* then return a list containing the pattern itself.
|
|
17
|
+
*/
|
|
18
|
+
function match(list: ReadonlyArray<string>, pattern: string, options?: IOptions): string[];
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Returns a function that tests its supplied argument, suitable for use with Array.filter
|
|
22
|
+
*/
|
|
23
|
+
function filter(pattern: string, options?: IOptions): (element: string, indexed: number, array: ReadonlyArray<string>) => boolean;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Make a regular expression object from the pattern.
|
|
27
|
+
*/
|
|
28
|
+
function makeRe(pattern: string, options?: IOptions): RegExp;
|
|
29
|
+
|
|
30
|
+
let Minimatch: IMinimatchStatic;
|
|
31
|
+
|
|
32
|
+
interface IOptions {
|
|
33
|
+
/**
|
|
34
|
+
* Dump a ton of stuff to stderr.
|
|
35
|
+
*
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
debug?: boolean | undefined;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Do not expand {a,b} and {1..3} brace sets.
|
|
42
|
+
*
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
|
+
nobrace?: boolean | undefined;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Disable ** matching against multiple folder names.
|
|
49
|
+
*
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
noglobstar?: boolean | undefined;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Allow patterns to match filenames starting with a period,
|
|
56
|
+
* even if the pattern does not explicitly have a period in that spot.
|
|
57
|
+
*
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
dot?: boolean | undefined;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Disable "extglob" style patterns like +(a|b).
|
|
64
|
+
*
|
|
65
|
+
* @default false
|
|
66
|
+
*/
|
|
67
|
+
noext?: boolean | undefined;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Perform a case-insensitive match.
|
|
71
|
+
*
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
nocase?: boolean | undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* When a match is not found by minimatch.match,
|
|
78
|
+
* return a list containing the pattern itself if this option is set.
|
|
79
|
+
* Otherwise, an empty list is returned if there are no matches.
|
|
80
|
+
*
|
|
81
|
+
* @default false
|
|
82
|
+
*/
|
|
83
|
+
nonull?: boolean | undefined;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* If set, then patterns without slashes will be matched against
|
|
87
|
+
* the basename of the path if it contains slashes.
|
|
88
|
+
*
|
|
89
|
+
* @default false
|
|
90
|
+
*/
|
|
91
|
+
matchBase?: boolean | undefined;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Suppress the behavior of treating #
|
|
95
|
+
* at the start of a pattern as a comment.
|
|
96
|
+
*
|
|
97
|
+
* @default false
|
|
98
|
+
*/
|
|
99
|
+
nocomment?: boolean | undefined;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Suppress the behavior of treating a leading ! character as negation.
|
|
103
|
+
*
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
106
|
+
nonegate?: boolean | undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Returns from negate expressions the same as if they were not negated.
|
|
110
|
+
* (Ie, true on a hit, false on a miss.)
|
|
111
|
+
*
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
flipNegate?: boolean | undefined;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
interface IMinimatchStatic {
|
|
118
|
+
new(pattern: string, options?: IOptions): IMinimatch;
|
|
119
|
+
prototype: IMinimatch;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
interface IMinimatch {
|
|
123
|
+
/**
|
|
124
|
+
* The original pattern the minimatch object represents.
|
|
125
|
+
*/
|
|
126
|
+
pattern: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* The options supplied to the constructor.
|
|
130
|
+
*/
|
|
131
|
+
options: IOptions;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* A 2-dimensional array of regexp or string expressions.
|
|
135
|
+
*/
|
|
136
|
+
set: any[][]; // (RegExp | string)[][]
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* A single regular expression expressing the entire pattern.
|
|
140
|
+
* Created by the makeRe method.
|
|
141
|
+
*/
|
|
142
|
+
regexp: RegExp;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* True if the pattern is negated.
|
|
146
|
+
*/
|
|
147
|
+
negate: boolean;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* True if the pattern is a comment.
|
|
151
|
+
*/
|
|
152
|
+
comment: boolean;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* True if the pattern is ""
|
|
156
|
+
*/
|
|
157
|
+
empty: boolean;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Generate the regexp member if necessary, and return it.
|
|
161
|
+
* Will return false if the pattern is invalid.
|
|
162
|
+
*/
|
|
163
|
+
makeRe(): RegExp; // regexp or boolean
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Return true if the filename matches the pattern, or false otherwise.
|
|
167
|
+
*/
|
|
168
|
+
match(fname: string): boolean;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Take a /-split filename, and match it against a single row in the regExpSet.
|
|
172
|
+
* This method is mainly for internal use, but is exposed so that it can be used
|
|
173
|
+
* by a glob-walker that needs to avoid excessive filesystem calls.
|
|
174
|
+
*/
|
|
175
|
+
matchOne(files: string[], pattern: string[], partial: boolean): boolean;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* @deprecated. For internal use.
|
|
179
|
+
*/
|
|
180
|
+
debug(): void;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @deprecated. For internal use.
|
|
184
|
+
*/
|
|
185
|
+
make(): void;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @deprecated. For internal use.
|
|
189
|
+
*/
|
|
190
|
+
parseNegate(): void;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @deprecated. For internal use.
|
|
194
|
+
*/
|
|
195
|
+
braceExpand(pattern: string, options: IOptions): void;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @deprecated. For internal use.
|
|
199
|
+
*/
|
|
200
|
+
parse(pattern: string, isSub?: boolean): void;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export = M;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"glob","author":"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)","version":"7.2.0","funding":{"url":"https://github.com/sponsors/isaacs"},"license":"ISC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import {Options as FastGlobOptions, Entry as FastGlobEntry} from '../fast-glob';
|
|
2
|
+
|
|
3
|
+
declare namespace globby {
|
|
4
|
+
type ExpandDirectoriesOption =
|
|
5
|
+
| boolean
|
|
6
|
+
| readonly string[]
|
|
7
|
+
| {files?: readonly string[]; extensions?: readonly string[]};
|
|
8
|
+
|
|
9
|
+
type Entry = FastGlobEntry;
|
|
10
|
+
|
|
11
|
+
interface GlobbyOptions extends FastGlobOptions {
|
|
12
|
+
/**
|
|
13
|
+
If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `Object` with `files` and `extensions` like in the example below.
|
|
14
|
+
|
|
15
|
+
Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`.
|
|
16
|
+
|
|
17
|
+
@default true
|
|
18
|
+
|
|
19
|
+
@example
|
|
20
|
+
```
|
|
21
|
+
import globby = require('./globby');
|
|
22
|
+
|
|
23
|
+
(async () => {
|
|
24
|
+
const paths = await globby('images', {
|
|
25
|
+
expandDirectories: {
|
|
26
|
+
files: ['cat', 'unicorn', '*.jpg'],
|
|
27
|
+
extensions: ['png']
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
console.log(paths);
|
|
32
|
+
//=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg']
|
|
33
|
+
})();
|
|
34
|
+
```
|
|
35
|
+
*/
|
|
36
|
+
readonly expandDirectories?: ExpandDirectoriesOption;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
Respect ignore patterns in `.gitignore` files that apply to the globbed files.
|
|
40
|
+
|
|
41
|
+
@default false
|
|
42
|
+
*/
|
|
43
|
+
readonly gitignore?: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
interface GlobTask {
|
|
47
|
+
readonly pattern: string;
|
|
48
|
+
readonly options: GlobbyOptions;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
interface GitignoreOptions {
|
|
52
|
+
readonly cwd?: string;
|
|
53
|
+
readonly ignore?: readonly string[];
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
type FilterFunction = (path: string) => boolean;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
interface Gitignore {
|
|
60
|
+
/**
|
|
61
|
+
@returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
|
|
62
|
+
*/
|
|
63
|
+
sync: (options?: globby.GitignoreOptions) => globby.FilterFunction;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
`.gitignore` files matched by the ignore config are not used for the resulting filter function.
|
|
67
|
+
|
|
68
|
+
@returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
|
|
69
|
+
|
|
70
|
+
@example
|
|
71
|
+
```
|
|
72
|
+
import {gitignore} from './globby';
|
|
73
|
+
|
|
74
|
+
(async () => {
|
|
75
|
+
const isIgnored = await gitignore();
|
|
76
|
+
console.log(isIgnored('some/file'));
|
|
77
|
+
})();
|
|
78
|
+
```
|
|
79
|
+
*/
|
|
80
|
+
(options?: globby.GitignoreOptions): Promise<globby.FilterFunction>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare const globby: {
|
|
84
|
+
/**
|
|
85
|
+
Find files and directories using glob patterns.
|
|
86
|
+
|
|
87
|
+
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
|
|
88
|
+
|
|
89
|
+
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
90
|
+
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
|
|
91
|
+
@returns The matching paths.
|
|
92
|
+
*/
|
|
93
|
+
sync: ((
|
|
94
|
+
patterns: string | readonly string[],
|
|
95
|
+
options: globby.GlobbyOptions & {objectMode: true}
|
|
96
|
+
) => globby.Entry[]) & ((
|
|
97
|
+
patterns: string | readonly string[],
|
|
98
|
+
options?: globby.GlobbyOptions
|
|
99
|
+
) => string[]);
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
Find files and directories using glob patterns.
|
|
103
|
+
|
|
104
|
+
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
|
|
105
|
+
|
|
106
|
+
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
107
|
+
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
|
|
108
|
+
@returns The stream of matching paths.
|
|
109
|
+
|
|
110
|
+
@example
|
|
111
|
+
```
|
|
112
|
+
import globby = require('./globby');
|
|
113
|
+
|
|
114
|
+
(async () => {
|
|
115
|
+
for await (const path of globby.stream('*.tmp')) {
|
|
116
|
+
console.log(path);
|
|
117
|
+
}
|
|
118
|
+
})();
|
|
119
|
+
```
|
|
120
|
+
*/
|
|
121
|
+
stream: (
|
|
122
|
+
patterns: string | readonly string[],
|
|
123
|
+
options?: globby.GlobbyOptions
|
|
124
|
+
) => NodeJS.ReadableStream;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
|
|
128
|
+
|
|
129
|
+
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
130
|
+
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
|
|
131
|
+
@returns An object in the format `{pattern: string, options: object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
|
|
132
|
+
*/
|
|
133
|
+
generateGlobTasks: (
|
|
134
|
+
patterns: string | readonly string[],
|
|
135
|
+
options?: globby.GlobbyOptions
|
|
136
|
+
) => globby.GlobTask[];
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
Note that the options affect the results.
|
|
140
|
+
|
|
141
|
+
This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options).
|
|
142
|
+
|
|
143
|
+
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
144
|
+
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3).
|
|
145
|
+
@returns Whether there are any special glob characters in the `patterns`.
|
|
146
|
+
*/
|
|
147
|
+
hasMagic: (
|
|
148
|
+
patterns: string | readonly string[],
|
|
149
|
+
options?: FastGlobOptions
|
|
150
|
+
) => boolean;
|
|
151
|
+
|
|
152
|
+
readonly gitignore: Gitignore;
|
|
153
|
+
|
|
154
|
+
(
|
|
155
|
+
patterns: string | readonly string[],
|
|
156
|
+
options: globby.GlobbyOptions & {objectMode: true}
|
|
157
|
+
): Promise<globby.Entry[]>;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
Find files and directories using glob patterns.
|
|
161
|
+
|
|
162
|
+
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
|
|
163
|
+
|
|
164
|
+
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
165
|
+
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
|
|
166
|
+
@returns The matching paths.
|
|
167
|
+
|
|
168
|
+
@example
|
|
169
|
+
```
|
|
170
|
+
import globby = require('./globby');
|
|
171
|
+
|
|
172
|
+
(async () => {
|
|
173
|
+
const paths = await globby(['*', '!cake']);
|
|
174
|
+
|
|
175
|
+
console.log(paths);
|
|
176
|
+
//=> ['unicorn', 'rainbow']
|
|
177
|
+
})();
|
|
178
|
+
```
|
|
179
|
+
*/
|
|
180
|
+
(
|
|
181
|
+
patterns: string | readonly string[],
|
|
182
|
+
options?: globby.GlobbyOptions
|
|
183
|
+
): Promise<string[]>;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export = globby;
|