@oneblink/release-cli 1.2.0-beta.3 → 1.2.0-beta.4
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/package.json +1 -2
- package/node_modules/@yarnpkg/lockfile/README.md +0 -22
- package/node_modules/@yarnpkg/lockfile/index.js +0 -10273
- package/node_modules/@yarnpkg/lockfile/package.json +0 -19
- package/node_modules/ansi-styles/index.js +0 -165
- package/node_modules/ansi-styles/license +0 -9
- package/node_modules/ansi-styles/package.json +0 -60
- package/node_modules/ansi-styles/readme.md +0 -147
- package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/balanced-match/README.md +0 -97
- package/node_modules/balanced-match/index.js +0 -62
- package/node_modules/balanced-match/package.json +0 -52
- package/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/brace-expansion/README.md +0 -129
- package/node_modules/brace-expansion/index.js +0 -201
- package/node_modules/brace-expansion/package.json +0 -51
- package/node_modules/braces/CHANGELOG.md +0 -184
- package/node_modules/braces/LICENSE +0 -21
- package/node_modules/braces/README.md +0 -593
- package/node_modules/braces/index.js +0 -170
- package/node_modules/braces/lib/compile.js +0 -57
- package/node_modules/braces/lib/constants.js +0 -57
- package/node_modules/braces/lib/expand.js +0 -113
- package/node_modules/braces/lib/parse.js +0 -333
- package/node_modules/braces/lib/stringify.js +0 -32
- package/node_modules/braces/lib/utils.js +0 -112
- package/node_modules/braces/package.json +0 -81
- package/node_modules/chalk/index.js +0 -228
- package/node_modules/chalk/index.js.flow +0 -93
- package/node_modules/chalk/license +0 -9
- package/node_modules/chalk/package.json +0 -75
- package/node_modules/chalk/readme.md +0 -314
- package/node_modules/chalk/templates.js +0 -128
- package/node_modules/chalk/types/index.d.ts +0 -97
- package/node_modules/ci-info/CHANGELOG.md +0 -78
- package/node_modules/ci-info/LICENSE +0 -21
- package/node_modules/ci-info/README.md +0 -108
- package/node_modules/ci-info/index.js +0 -66
- package/node_modules/ci-info/package.json +0 -40
- package/node_modules/ci-info/vendors.json +0 -153
- package/node_modules/color-convert/CHANGELOG.md +0 -54
- package/node_modules/color-convert/LICENSE +0 -21
- package/node_modules/color-convert/README.md +0 -68
- package/node_modules/color-convert/conversions.js +0 -868
- package/node_modules/color-convert/index.js +0 -78
- package/node_modules/color-convert/package.json +0 -50
- package/node_modules/color-convert/route.js +0 -97
- package/node_modules/color-name/.eslintrc.json +0 -43
- package/node_modules/color-name/.npmignore +0 -107
- package/node_modules/color-name/LICENSE +0 -8
- package/node_modules/color-name/README.md +0 -11
- package/node_modules/color-name/index.js +0 -152
- package/node_modules/color-name/package.json +0 -29
- package/node_modules/color-name/test.js +0 -7
- package/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/concat-map/LICENSE +0 -18
- 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 -47
- package/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/escape-string-regexp/index.js +0 -11
- package/node_modules/escape-string-regexp/license +0 -21
- package/node_modules/escape-string-regexp/package.json +0 -45
- package/node_modules/escape-string-regexp/readme.md +0 -27
- package/node_modules/fill-range/LICENSE +0 -21
- package/node_modules/fill-range/README.md +0 -237
- package/node_modules/fill-range/index.js +0 -249
- package/node_modules/fill-range/package.json +0 -73
- package/node_modules/find-yarn-workspace-root/CHANGELOG.md +0 -53
- package/node_modules/find-yarn-workspace-root/LICENSE +0 -201
- package/node_modules/find-yarn-workspace-root/README.md +0 -56
- package/node_modules/find-yarn-workspace-root/index.d.ts +0 -3
- package/node_modules/find-yarn-workspace-root/index.js +0 -53
- package/node_modules/find-yarn-workspace-root/package.json +0 -38
- package/node_modules/fs-extra/CHANGELOG.md +0 -842
- package/node_modules/fs-extra/LICENSE +0 -15
- package/node_modules/fs-extra/README.md +0 -261
- package/node_modules/fs-extra/lib/copy/copy.js +0 -246
- package/node_modules/fs-extra/lib/copy/index.js +0 -6
- package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +0 -193
- package/node_modules/fs-extra/lib/copy-sync/index.js +0 -5
- package/node_modules/fs-extra/lib/empty/index.js +0 -48
- package/node_modules/fs-extra/lib/ensure/file.js +0 -49
- package/node_modules/fs-extra/lib/ensure/index.js +0 -23
- package/node_modules/fs-extra/lib/ensure/link.js +0 -61
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +0 -99
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +0 -31
- package/node_modules/fs-extra/lib/ensure/symlink.js +0 -63
- package/node_modules/fs-extra/lib/fs/index.js +0 -104
- package/node_modules/fs-extra/lib/index.js +0 -28
- package/node_modules/fs-extra/lib/json/index.js +0 -16
- package/node_modules/fs-extra/lib/json/jsonfile.js +0 -12
- package/node_modules/fs-extra/lib/json/output-json-sync.js +0 -18
- package/node_modules/fs-extra/lib/json/output-json.js +0 -27
- package/node_modules/fs-extra/lib/mkdirs/index.js +0 -14
- package/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +0 -54
- package/node_modules/fs-extra/lib/mkdirs/mkdirs.js +0 -63
- package/node_modules/fs-extra/lib/mkdirs/win32.js +0 -25
- package/node_modules/fs-extra/lib/move/index.js +0 -82
- package/node_modules/fs-extra/lib/move-sync/index.js +0 -117
- package/node_modules/fs-extra/lib/output/index.js +0 -40
- package/node_modules/fs-extra/lib/path-exists/index.js +0 -12
- package/node_modules/fs-extra/lib/remove/index.js +0 -9
- package/node_modules/fs-extra/lib/remove/rimraf.js +0 -314
- package/node_modules/fs-extra/lib/util/buffer.js +0 -12
- package/node_modules/fs-extra/lib/util/utimes.js +0 -79
- package/node_modules/fs-extra/package.json +0 -72
- package/node_modules/fs.realpath/LICENSE +0 -43
- package/node_modules/fs.realpath/README.md +0 -33
- package/node_modules/fs.realpath/index.js +0 -66
- package/node_modules/fs.realpath/old.js +0 -303
- package/node_modules/fs.realpath/package.json +0 -30
- package/node_modules/glob/LICENSE +0 -21
- package/node_modules/glob/README.md +0 -375
- package/node_modules/glob/changelog.md +0 -67
- package/node_modules/glob/common.js +0 -240
- package/node_modules/glob/glob.js +0 -790
- package/node_modules/glob/package.json +0 -50
- package/node_modules/glob/sync.js +0 -486
- package/node_modules/graceful-fs/LICENSE +0 -15
- package/node_modules/graceful-fs/README.md +0 -133
- package/node_modules/graceful-fs/clone.js +0 -23
- package/node_modules/graceful-fs/graceful-fs.js +0 -373
- package/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/node_modules/graceful-fs/package.json +0 -54
- package/node_modules/graceful-fs/polyfills.js +0 -346
- package/node_modules/has-flag/index.js +0 -8
- package/node_modules/has-flag/license +0 -9
- package/node_modules/has-flag/package.json +0 -48
- package/node_modules/has-flag/readme.md +0 -70
- package/node_modules/inflight/LICENSE +0 -15
- package/node_modules/inflight/README.md +0 -37
- package/node_modules/inflight/inflight.js +0 -54
- package/node_modules/inflight/package.json +0 -33
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -33
- package/node_modules/is-ci/CHANGELOG.md +0 -14
- package/node_modules/is-ci/LICENSE +0 -21
- package/node_modules/is-ci/README.md +0 -50
- package/node_modules/is-ci/bin.js +0 -4
- package/node_modules/is-ci/index.js +0 -3
- package/node_modules/is-ci/package.json +0 -42
- package/node_modules/is-docker/cli.js +0 -5
- package/node_modules/is-docker/index.d.ts +0 -15
- package/node_modules/is-docker/index.js +0 -29
- package/node_modules/is-docker/license +0 -9
- package/node_modules/is-docker/package.json +0 -46
- package/node_modules/is-docker/readme.md +0 -27
- package/node_modules/is-number/LICENSE +0 -21
- package/node_modules/is-number/README.md +0 -187
- package/node_modules/is-number/index.js +0 -18
- package/node_modules/is-number/package.json +0 -86
- package/node_modules/is-wsl/index.d.ts +0 -15
- package/node_modules/is-wsl/index.js +0 -31
- package/node_modules/is-wsl/license +0 -9
- package/node_modules/is-wsl/package.json +0 -49
- package/node_modules/is-wsl/readme.md +0 -36
- package/node_modules/isexe/.npmignore +0 -2
- package/node_modules/isexe/LICENSE +0 -15
- package/node_modules/isexe/README.md +0 -51
- package/node_modules/isexe/index.js +0 -57
- package/node_modules/isexe/mode.js +0 -41
- package/node_modules/isexe/package.json +0 -35
- package/node_modules/isexe/test/basic.js +0 -221
- package/node_modules/isexe/windows.js +0 -42
- package/node_modules/jsonfile/CHANGELOG.md +0 -145
- package/node_modules/jsonfile/LICENSE +0 -15
- package/node_modules/jsonfile/README.md +0 -168
- package/node_modules/jsonfile/index.js +0 -134
- package/node_modules/jsonfile/package.json +0 -41
- package/node_modules/klaw-sync/CHANGELOG.md +0 -73
- package/node_modules/klaw-sync/LICENSE +0 -20
- package/node_modules/klaw-sync/README.md +0 -164
- package/node_modules/klaw-sync/klaw-sync.js +0 -29
- package/node_modules/klaw-sync/package.json +0 -51
- package/node_modules/lru-cache/LICENSE +0 -15
- package/node_modules/lru-cache/README.md +0 -166
- package/node_modules/lru-cache/index.js +0 -334
- package/node_modules/lru-cache/package.json +0 -38
- package/node_modules/micromatch/CHANGELOG.md +0 -109
- package/node_modules/micromatch/LICENSE +0 -21
- package/node_modules/micromatch/README.md +0 -1008
- package/node_modules/micromatch/index.js +0 -467
- package/node_modules/micromatch/package.json +0 -123
- package/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/minimatch/README.md +0 -209
- package/node_modules/minimatch/minimatch.js +0 -923
- package/node_modules/minimatch/package.json +0 -34
- package/node_modules/minimist/.travis.yml +0 -8
- package/node_modules/minimist/LICENSE +0 -18
- package/node_modules/minimist/example/parse.js +0 -2
- package/node_modules/minimist/index.js +0 -245
- package/node_modules/minimist/package.json +0 -49
- package/node_modules/minimist/readme.markdown +0 -95
- package/node_modules/minimist/test/all_bool.js +0 -32
- package/node_modules/minimist/test/bool.js +0 -178
- package/node_modules/minimist/test/dash.js +0 -31
- package/node_modules/minimist/test/default_bool.js +0 -35
- package/node_modules/minimist/test/dotted.js +0 -22
- package/node_modules/minimist/test/kv_short.js +0 -16
- package/node_modules/minimist/test/long.js +0 -31
- package/node_modules/minimist/test/num.js +0 -36
- package/node_modules/minimist/test/parse.js +0 -197
- package/node_modules/minimist/test/parse_modified.js +0 -9
- package/node_modules/minimist/test/proto.js +0 -44
- package/node_modules/minimist/test/short.js +0 -67
- package/node_modules/minimist/test/stop_early.js +0 -15
- package/node_modules/minimist/test/unknown.js +0 -102
- package/node_modules/minimist/test/whitespace.js +0 -8
- package/node_modules/nice-try/CHANGELOG.md +0 -21
- package/node_modules/nice-try/LICENSE +0 -21
- package/node_modules/nice-try/README.md +0 -32
- package/node_modules/nice-try/package.json +0 -37
- package/node_modules/nice-try/src/index.js +0 -12
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -37
- package/node_modules/open/index.d.ts +0 -88
- package/node_modules/open/index.js +0 -195
- package/node_modules/open/license +0 -9
- package/node_modules/open/package.json +0 -64
- package/node_modules/open/readme.md +0 -154
- package/node_modules/open/xdg-open +0 -1066
- package/node_modules/os-tmpdir/index.js +0 -25
- package/node_modules/os-tmpdir/license +0 -21
- package/node_modules/os-tmpdir/package.json +0 -45
- package/node_modules/os-tmpdir/readme.md +0 -32
- package/node_modules/patch-package/CHANGELOG.md +0 -389
- package/node_modules/patch-package/LICENSE +0 -19
- package/node_modules/patch-package/README.md +0 -269
- package/node_modules/patch-package/dist/PackageDetails.js +0 -102
- package/node_modules/patch-package/dist/PackageDetails.test.js +0 -228
- package/node_modules/patch-package/dist/applyPatches.js +0 -261
- package/node_modules/patch-package/dist/assertNever.js +0 -8
- package/node_modules/patch-package/dist/createIssue.js +0 -83
- package/node_modules/patch-package/dist/detectPackageManager.js +0 -64
- package/node_modules/patch-package/dist/filterFiles.js +0 -17
- package/node_modules/patch-package/dist/getAppRootPath.js +0 -22
- package/node_modules/patch-package/dist/getPackageResolution.js +0 -85
- package/node_modules/patch-package/dist/getPackageVersion.js +0 -9
- package/node_modules/patch-package/dist/index.js +0 -161
- package/node_modules/patch-package/dist/makePatch.js +0 -231
- package/node_modules/patch-package/dist/makeRegExp.js +0 -28
- package/node_modules/patch-package/dist/packageIsDevDependency.js +0 -15
- package/node_modules/patch-package/dist/packageIsDevDependency.test.js +0 -32
- package/node_modules/patch-package/dist/patch/apply.js +0 -197
- package/node_modules/patch-package/dist/patch/parse.js +0 -330
- package/node_modules/patch-package/dist/patch/read.js +0 -49
- package/node_modules/patch-package/dist/patch/reverse.js +0 -96
- package/node_modules/patch-package/dist/patchFs.js +0 -20
- package/node_modules/patch-package/dist/path.js +0 -17
- package/node_modules/patch-package/dist/resolveRelativeFileDependencies.js +0 -21
- package/node_modules/patch-package/dist/resolveRelativeFileDependencies.test.js +0 -22
- package/node_modules/patch-package/dist/spawnSafe.js +0 -28
- package/node_modules/patch-package/index.js +0 -3
- package/node_modules/patch-package/node_modules/cross-spawn/CHANGELOG.md +0 -100
- package/node_modules/patch-package/node_modules/cross-spawn/LICENSE +0 -21
- package/node_modules/patch-package/node_modules/cross-spawn/README.md +0 -94
- package/node_modules/patch-package/node_modules/cross-spawn/index.js +0 -39
- package/node_modules/patch-package/node_modules/cross-spawn/lib/enoent.js +0 -59
- package/node_modules/patch-package/node_modules/cross-spawn/lib/parse.js +0 -125
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/escape.js +0 -45
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/readShebang.js +0 -32
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/resolveCommand.js +0 -47
- package/node_modules/patch-package/node_modules/cross-spawn/package.json +0 -80
- package/node_modules/patch-package/node_modules/path-key/index.js +0 -13
- package/node_modules/patch-package/node_modules/path-key/license +0 -21
- package/node_modules/patch-package/node_modules/path-key/package.json +0 -43
- package/node_modules/patch-package/node_modules/path-key/readme.md +0 -51
- package/node_modules/patch-package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/patch-package/node_modules/rimraf/README.md +0 -101
- package/node_modules/patch-package/node_modules/rimraf/bin.js +0 -50
- package/node_modules/patch-package/node_modules/rimraf/package.json +0 -33
- package/node_modules/patch-package/node_modules/rimraf/rimraf.js +0 -372
- package/node_modules/patch-package/node_modules/semver/CHANGELOG.md +0 -39
- package/node_modules/patch-package/node_modules/semver/LICENSE +0 -15
- package/node_modules/patch-package/node_modules/semver/README.md +0 -412
- package/node_modules/patch-package/node_modules/semver/bin/semver +0 -160
- package/node_modules/patch-package/node_modules/semver/package.json +0 -32
- package/node_modules/patch-package/node_modules/semver/range.bnf +0 -16
- package/node_modules/patch-package/node_modules/semver/semver.js +0 -1483
- package/node_modules/patch-package/node_modules/shebang-command/index.js +0 -19
- package/node_modules/patch-package/node_modules/shebang-command/license +0 -21
- package/node_modules/patch-package/node_modules/shebang-command/package.json +0 -43
- package/node_modules/patch-package/node_modules/shebang-command/readme.md +0 -39
- package/node_modules/patch-package/node_modules/shebang-regex/index.js +0 -2
- package/node_modules/patch-package/node_modules/shebang-regex/license +0 -21
- package/node_modules/patch-package/node_modules/shebang-regex/package.json +0 -36
- package/node_modules/patch-package/node_modules/shebang-regex/readme.md +0 -29
- package/node_modules/patch-package/node_modules/slash/index.js +0 -11
- package/node_modules/patch-package/node_modules/slash/license +0 -9
- package/node_modules/patch-package/node_modules/slash/package.json +0 -38
- package/node_modules/patch-package/node_modules/slash/readme.md +0 -44
- package/node_modules/patch-package/node_modules/which/CHANGELOG.md +0 -152
- package/node_modules/patch-package/node_modules/which/LICENSE +0 -15
- package/node_modules/patch-package/node_modules/which/README.md +0 -51
- package/node_modules/patch-package/node_modules/which/bin/which +0 -52
- package/node_modules/patch-package/node_modules/which/package.json +0 -34
- package/node_modules/patch-package/node_modules/which/which.js +0 -135
- package/node_modules/patch-package/package.json +0 -100
- package/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/path-is-absolute/license +0 -21
- package/node_modules/path-is-absolute/package.json +0 -47
- package/node_modules/path-is-absolute/readme.md +0 -59
- package/node_modules/picomatch/CHANGELOG.md +0 -120
- package/node_modules/picomatch/LICENSE +0 -21
- package/node_modules/picomatch/README.md +0 -691
- package/node_modules/picomatch/index.js +0 -3
- package/node_modules/picomatch/lib/constants.js +0 -179
- package/node_modules/picomatch/lib/parse.js +0 -1078
- package/node_modules/picomatch/lib/picomatch.js +0 -339
- package/node_modules/picomatch/lib/scan.js +0 -385
- package/node_modules/picomatch/lib/utils.js +0 -64
- package/node_modules/picomatch/package.json +0 -85
- package/node_modules/semver/CHANGELOG.md +0 -111
- package/node_modules/semver/LICENSE +0 -15
- package/node_modules/semver/README.md +0 -566
- package/node_modules/semver/bin/semver.js +0 -173
- package/node_modules/semver/classes/comparator.js +0 -135
- package/node_modules/semver/classes/index.js +0 -5
- package/node_modules/semver/classes/range.js +0 -510
- package/node_modules/semver/classes/semver.js +0 -287
- package/node_modules/semver/functions/clean.js +0 -6
- package/node_modules/semver/functions/cmp.js +0 -48
- package/node_modules/semver/functions/coerce.js +0 -51
- package/node_modules/semver/functions/compare-build.js +0 -7
- package/node_modules/semver/functions/compare-loose.js +0 -3
- package/node_modules/semver/functions/compare.js +0 -5
- package/node_modules/semver/functions/diff.js +0 -23
- package/node_modules/semver/functions/eq.js +0 -3
- package/node_modules/semver/functions/gt.js +0 -3
- package/node_modules/semver/functions/gte.js +0 -3
- package/node_modules/semver/functions/inc.js +0 -15
- package/node_modules/semver/functions/lt.js +0 -3
- package/node_modules/semver/functions/lte.js +0 -3
- package/node_modules/semver/functions/major.js +0 -3
- package/node_modules/semver/functions/minor.js +0 -3
- package/node_modules/semver/functions/neq.js +0 -3
- package/node_modules/semver/functions/parse.js +0 -33
- package/node_modules/semver/functions/patch.js +0 -3
- package/node_modules/semver/functions/prerelease.js +0 -6
- package/node_modules/semver/functions/rcompare.js +0 -3
- package/node_modules/semver/functions/rsort.js +0 -3
- package/node_modules/semver/functions/satisfies.js +0 -10
- package/node_modules/semver/functions/sort.js +0 -3
- package/node_modules/semver/functions/valid.js +0 -6
- package/node_modules/semver/index.js +0 -48
- package/node_modules/semver/internal/constants.js +0 -17
- package/node_modules/semver/internal/debug.js +0 -9
- package/node_modules/semver/internal/identifiers.js +0 -23
- package/node_modules/semver/internal/parse-options.js +0 -11
- package/node_modules/semver/internal/re.js +0 -182
- package/node_modules/semver/package.json +0 -45
- package/node_modules/semver/preload.js +0 -2
- package/node_modules/semver/range.bnf +0 -16
- package/node_modules/semver/ranges/gtr.js +0 -4
- package/node_modules/semver/ranges/intersects.js +0 -7
- package/node_modules/semver/ranges/ltr.js +0 -4
- package/node_modules/semver/ranges/max-satisfying.js +0 -25
- package/node_modules/semver/ranges/min-satisfying.js +0 -24
- package/node_modules/semver/ranges/min-version.js +0 -60
- package/node_modules/semver/ranges/outside.js +0 -80
- package/node_modules/semver/ranges/simplify.js +0 -44
- package/node_modules/semver/ranges/subset.js +0 -222
- package/node_modules/semver/ranges/to-comparators.js +0 -8
- package/node_modules/semver/ranges/valid.js +0 -11
- package/node_modules/supports-color/browser.js +0 -5
- package/node_modules/supports-color/index.js +0 -131
- package/node_modules/supports-color/license +0 -9
- package/node_modules/supports-color/package.json +0 -57
- package/node_modules/supports-color/readme.md +0 -66
- package/node_modules/tmp/LICENSE +0 -21
- package/node_modules/tmp/README.md +0 -314
- package/node_modules/tmp/lib/tmp.js +0 -611
- package/node_modules/tmp/package.json +0 -42
- package/node_modules/to-regex-range/LICENSE +0 -21
- package/node_modules/to-regex-range/README.md +0 -305
- package/node_modules/to-regex-range/index.js +0 -288
- package/node_modules/to-regex-range/package.json +0 -92
- package/node_modules/universalify/LICENSE +0 -20
- package/node_modules/universalify/README.md +0 -76
- package/node_modules/universalify/index.js +0 -25
- package/node_modules/universalify/package.json +0 -38
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -33
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/yallist/LICENSE +0 -15
- package/node_modules/yallist/README.md +0 -204
- package/node_modules/yallist/iterator.js +0 -8
- package/node_modules/yallist/package.json +0 -33
- package/node_modules/yallist/yallist.js +0 -426
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const niceTry = require('nice-try');
|
|
5
|
-
const resolveCommand = require('./util/resolveCommand');
|
|
6
|
-
const escape = require('./util/escape');
|
|
7
|
-
const readShebang = require('./util/readShebang');
|
|
8
|
-
const semver = require('semver');
|
|
9
|
-
|
|
10
|
-
const isWin = process.platform === 'win32';
|
|
11
|
-
const isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
12
|
-
const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
13
|
-
|
|
14
|
-
// `options.shell` is supported in Node ^4.8.0, ^5.7.0 and >= 6.0.0
|
|
15
|
-
const supportsShellOption = niceTry(() => semver.satisfies(process.version, '^4.8.0 || ^5.7.0 || >= 6.0.0', true)) || false;
|
|
16
|
-
|
|
17
|
-
function detectShebang(parsed) {
|
|
18
|
-
parsed.file = resolveCommand(parsed);
|
|
19
|
-
|
|
20
|
-
const shebang = parsed.file && readShebang(parsed.file);
|
|
21
|
-
|
|
22
|
-
if (shebang) {
|
|
23
|
-
parsed.args.unshift(parsed.file);
|
|
24
|
-
parsed.command = shebang;
|
|
25
|
-
|
|
26
|
-
return resolveCommand(parsed);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
return parsed.file;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function parseNonShell(parsed) {
|
|
33
|
-
if (!isWin) {
|
|
34
|
-
return parsed;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// Detect & add support for shebangs
|
|
38
|
-
const commandFile = detectShebang(parsed);
|
|
39
|
-
|
|
40
|
-
// We don't need a shell if the command filename is an executable
|
|
41
|
-
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
42
|
-
|
|
43
|
-
// If a shell is required, use cmd.exe and take care of escaping everything correctly
|
|
44
|
-
// Note that `forceShell` is an hidden option used only in tests
|
|
45
|
-
if (parsed.options.forceShell || needsShell) {
|
|
46
|
-
// Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
|
|
47
|
-
// The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
|
|
48
|
-
// Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
|
|
49
|
-
// we need to double escape them
|
|
50
|
-
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
51
|
-
|
|
52
|
-
// Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
|
|
53
|
-
// This is necessary otherwise it will always fail with ENOENT in those cases
|
|
54
|
-
parsed.command = path.normalize(parsed.command);
|
|
55
|
-
|
|
56
|
-
// Escape command & arguments
|
|
57
|
-
parsed.command = escape.command(parsed.command);
|
|
58
|
-
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
59
|
-
|
|
60
|
-
const shellCommand = [parsed.command].concat(parsed.args).join(' ');
|
|
61
|
-
|
|
62
|
-
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
|
|
63
|
-
parsed.command = process.env.comspec || 'cmd.exe';
|
|
64
|
-
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
return parsed;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
function parseShell(parsed) {
|
|
71
|
-
// If node supports the shell option, there's no need to mimic its behavior
|
|
72
|
-
if (supportsShellOption) {
|
|
73
|
-
return parsed;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// Mimic node shell option
|
|
77
|
-
// See https://github.com/nodejs/node/blob/b9f6a2dc059a1062776133f3d4fd848c4da7d150/lib/child_process.js#L335
|
|
78
|
-
const shellCommand = [parsed.command].concat(parsed.args).join(' ');
|
|
79
|
-
|
|
80
|
-
if (isWin) {
|
|
81
|
-
parsed.command = typeof parsed.options.shell === 'string' ? parsed.options.shell : process.env.comspec || 'cmd.exe';
|
|
82
|
-
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
|
|
83
|
-
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
|
|
84
|
-
} else {
|
|
85
|
-
if (typeof parsed.options.shell === 'string') {
|
|
86
|
-
parsed.command = parsed.options.shell;
|
|
87
|
-
} else if (process.platform === 'android') {
|
|
88
|
-
parsed.command = '/system/bin/sh';
|
|
89
|
-
} else {
|
|
90
|
-
parsed.command = '/bin/sh';
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
parsed.args = ['-c', shellCommand];
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
return parsed;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
function parse(command, args, options) {
|
|
100
|
-
// Normalize arguments, similar to nodejs
|
|
101
|
-
if (args && !Array.isArray(args)) {
|
|
102
|
-
options = args;
|
|
103
|
-
args = null;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
args = args ? args.slice(0) : []; // Clone array to avoid changing the original
|
|
107
|
-
options = Object.assign({}, options); // Clone object to avoid changing the original
|
|
108
|
-
|
|
109
|
-
// Build our parsed object
|
|
110
|
-
const parsed = {
|
|
111
|
-
command,
|
|
112
|
-
args,
|
|
113
|
-
options,
|
|
114
|
-
file: undefined,
|
|
115
|
-
original: {
|
|
116
|
-
command,
|
|
117
|
-
args,
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
// Delegate further parsing to shell or non-shell
|
|
122
|
-
return options.shell ? parseShell(parsed) : parseNonShell(parsed);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
module.exports = parse;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// See http://www.robvanderwoude.com/escapechars.php
|
|
4
|
-
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
5
|
-
|
|
6
|
-
function escapeCommand(arg) {
|
|
7
|
-
// Escape meta chars
|
|
8
|
-
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
9
|
-
|
|
10
|
-
return arg;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
14
|
-
// Convert to string
|
|
15
|
-
arg = `${arg}`;
|
|
16
|
-
|
|
17
|
-
// Algorithm below is based on https://qntm.org/cmd
|
|
18
|
-
|
|
19
|
-
// Sequence of backslashes followed by a double quote:
|
|
20
|
-
// double up all the backslashes and escape the double quote
|
|
21
|
-
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
22
|
-
|
|
23
|
-
// Sequence of backslashes followed by the end of the string
|
|
24
|
-
// (which will become a double quote later):
|
|
25
|
-
// double up all the backslashes
|
|
26
|
-
arg = arg.replace(/(\\*)$/, '$1$1');
|
|
27
|
-
|
|
28
|
-
// All other backslashes occur literally
|
|
29
|
-
|
|
30
|
-
// Quote the whole thing:
|
|
31
|
-
arg = `"${arg}"`;
|
|
32
|
-
|
|
33
|
-
// Escape meta chars
|
|
34
|
-
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
35
|
-
|
|
36
|
-
// Double escape meta chars if necessary
|
|
37
|
-
if (doubleEscapeMetaChars) {
|
|
38
|
-
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
return arg;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
module.exports.command = escapeCommand;
|
|
45
|
-
module.exports.argument = escapeArgument;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const fs = require('fs');
|
|
4
|
-
const shebangCommand = require('shebang-command');
|
|
5
|
-
|
|
6
|
-
function readShebang(command) {
|
|
7
|
-
// Read the first 150 bytes from the file
|
|
8
|
-
const size = 150;
|
|
9
|
-
let buffer;
|
|
10
|
-
|
|
11
|
-
if (Buffer.alloc) {
|
|
12
|
-
// Node.js v4.5+ / v5.10+
|
|
13
|
-
buffer = Buffer.alloc(size);
|
|
14
|
-
} else {
|
|
15
|
-
// Old Node.js API
|
|
16
|
-
buffer = new Buffer(size);
|
|
17
|
-
buffer.fill(0); // zero-fill
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
let fd;
|
|
21
|
-
|
|
22
|
-
try {
|
|
23
|
-
fd = fs.openSync(command, 'r');
|
|
24
|
-
fs.readSync(fd, buffer, 0, size, 0);
|
|
25
|
-
fs.closeSync(fd);
|
|
26
|
-
} catch (e) { /* Empty */ }
|
|
27
|
-
|
|
28
|
-
// Attempt to extract shebang (null is returned if not a shebang)
|
|
29
|
-
return shebangCommand(buffer.toString());
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
module.exports = readShebang;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const path = require('path');
|
|
4
|
-
const which = require('which');
|
|
5
|
-
const pathKey = require('path-key')();
|
|
6
|
-
|
|
7
|
-
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
8
|
-
const cwd = process.cwd();
|
|
9
|
-
const hasCustomCwd = parsed.options.cwd != null;
|
|
10
|
-
|
|
11
|
-
// If a custom `cwd` was specified, we need to change the process cwd
|
|
12
|
-
// because `which` will do stat calls but does not support a custom cwd
|
|
13
|
-
if (hasCustomCwd) {
|
|
14
|
-
try {
|
|
15
|
-
process.chdir(parsed.options.cwd);
|
|
16
|
-
} catch (err) {
|
|
17
|
-
/* Empty */
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
let resolved;
|
|
22
|
-
|
|
23
|
-
try {
|
|
24
|
-
resolved = which.sync(parsed.command, {
|
|
25
|
-
path: (parsed.options.env || process.env)[pathKey],
|
|
26
|
-
pathExt: withoutPathExt ? path.delimiter : undefined,
|
|
27
|
-
});
|
|
28
|
-
} catch (e) {
|
|
29
|
-
/* Empty */
|
|
30
|
-
} finally {
|
|
31
|
-
process.chdir(cwd);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// If we successfully resolved, ensure that an absolute path is returned
|
|
35
|
-
// Note that when a custom `cwd` was used, we need to resolve to an absolute path based on it
|
|
36
|
-
if (resolved) {
|
|
37
|
-
resolved = path.resolve(hasCustomCwd ? parsed.options.cwd : '', resolved);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return resolved;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function resolveCommand(parsed) {
|
|
44
|
-
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
module.exports = resolveCommand;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "cross-spawn",
|
|
3
|
-
"version": "6.0.5",
|
|
4
|
-
"description": "Cross platform child_process#spawn and child_process#spawnSync",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"spawn",
|
|
7
|
-
"spawnSync",
|
|
8
|
-
"windows",
|
|
9
|
-
"cross-platform",
|
|
10
|
-
"path-ext",
|
|
11
|
-
"shebang",
|
|
12
|
-
"cmd",
|
|
13
|
-
"execute"
|
|
14
|
-
],
|
|
15
|
-
"author": "André Cruz <andre@moxy.studio>",
|
|
16
|
-
"homepage": "https://github.com/moxystudio/node-cross-spawn",
|
|
17
|
-
"repository": {
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "git@github.com:moxystudio/node-cross-spawn.git"
|
|
20
|
-
},
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"main": "index.js",
|
|
23
|
-
"files": [
|
|
24
|
-
"lib"
|
|
25
|
-
],
|
|
26
|
-
"scripts": {
|
|
27
|
-
"lint": "eslint .",
|
|
28
|
-
"test": "jest --env node --coverage",
|
|
29
|
-
"prerelease": "npm t && npm run lint",
|
|
30
|
-
"release": "standard-version",
|
|
31
|
-
"precommit": "lint-staged",
|
|
32
|
-
"commitmsg": "commitlint -e $GIT_PARAMS"
|
|
33
|
-
},
|
|
34
|
-
"standard-version": {
|
|
35
|
-
"scripts": {
|
|
36
|
-
"posttag": "git push --follow-tags origin master && npm publish"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"lint-staged": {
|
|
40
|
-
"*.js": [
|
|
41
|
-
"eslint --fix",
|
|
42
|
-
"git add"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"commitlint": {
|
|
46
|
-
"extends": [
|
|
47
|
-
"@commitlint/config-conventional"
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
"dependencies": {
|
|
51
|
-
"nice-try": "^1.0.4",
|
|
52
|
-
"path-key": "^2.0.1",
|
|
53
|
-
"semver": "^5.5.0",
|
|
54
|
-
"shebang-command": "^1.2.0",
|
|
55
|
-
"which": "^1.2.9"
|
|
56
|
-
},
|
|
57
|
-
"devDependencies": {
|
|
58
|
-
"@commitlint/cli": "^6.0.0",
|
|
59
|
-
"@commitlint/config-conventional": "^6.0.2",
|
|
60
|
-
"babel-core": "^6.26.0",
|
|
61
|
-
"babel-jest": "^22.1.0",
|
|
62
|
-
"babel-preset-moxy": "^2.2.1",
|
|
63
|
-
"eslint": "^4.3.0",
|
|
64
|
-
"eslint-config-moxy": "^5.0.0",
|
|
65
|
-
"husky": "^0.14.3",
|
|
66
|
-
"jest": "^22.0.0",
|
|
67
|
-
"lint-staged": "^7.0.0",
|
|
68
|
-
"mkdirp": "^0.5.1",
|
|
69
|
-
"regenerator-runtime": "^0.11.1",
|
|
70
|
-
"rimraf": "^2.6.2",
|
|
71
|
-
"standard-version": "^4.2.0"
|
|
72
|
-
},
|
|
73
|
-
"engines": {
|
|
74
|
-
"node": ">=4.8"
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
,"_resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz"
|
|
78
|
-
,"_integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ=="
|
|
79
|
-
,"_from": "cross-spawn@6.0.5"
|
|
80
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
module.exports = opts => {
|
|
3
|
-
opts = opts || {};
|
|
4
|
-
|
|
5
|
-
const env = opts.env || process.env;
|
|
6
|
-
const platform = opts.platform || process.platform;
|
|
7
|
-
|
|
8
|
-
if (platform !== 'win32') {
|
|
9
|
-
return 'PATH';
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
|
|
13
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "path-key",
|
|
3
|
-
"version": "2.0.1",
|
|
4
|
-
"description": "Get the PATH environment variable key cross-platform",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": "sindresorhus/path-key",
|
|
7
|
-
"author": {
|
|
8
|
-
"name": "Sindre Sorhus",
|
|
9
|
-
"email": "sindresorhus@gmail.com",
|
|
10
|
-
"url": "sindresorhus.com"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=4"
|
|
14
|
-
},
|
|
15
|
-
"scripts": {
|
|
16
|
-
"test": "xo && ava"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"index.js"
|
|
20
|
-
],
|
|
21
|
-
"keywords": [
|
|
22
|
-
"path",
|
|
23
|
-
"key",
|
|
24
|
-
"environment",
|
|
25
|
-
"env",
|
|
26
|
-
"variable",
|
|
27
|
-
"var",
|
|
28
|
-
"get",
|
|
29
|
-
"cross-platform",
|
|
30
|
-
"windows"
|
|
31
|
-
],
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"ava": "*",
|
|
34
|
-
"xo": "*"
|
|
35
|
-
},
|
|
36
|
-
"xo": {
|
|
37
|
-
"esnext": true
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
,"_resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz"
|
|
41
|
-
,"_integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw=="
|
|
42
|
-
,"_from": "path-key@2.0.1"
|
|
43
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# path-key [](https://travis-ci.org/sindresorhus/path-key)
|
|
2
|
-
|
|
3
|
-
> Get the [PATH](https://en.wikipedia.org/wiki/PATH_(variable)) environment variable key cross-platform
|
|
4
|
-
|
|
5
|
-
It's usually `PATH`, but on Windows it can be any casing like `Path`...
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
## Install
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
$ npm install --save path-key
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Usage
|
|
16
|
-
|
|
17
|
-
```js
|
|
18
|
-
const pathKey = require('path-key');
|
|
19
|
-
|
|
20
|
-
const key = pathKey();
|
|
21
|
-
//=> 'PATH'
|
|
22
|
-
|
|
23
|
-
const PATH = process.env[key];
|
|
24
|
-
//=> '/usr/local/bin:/usr/bin:/bin'
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
## API
|
|
29
|
-
|
|
30
|
-
### pathKey([options])
|
|
31
|
-
|
|
32
|
-
#### options
|
|
33
|
-
|
|
34
|
-
##### env
|
|
35
|
-
|
|
36
|
-
Type: `Object`<br>
|
|
37
|
-
Default: [`process.env`](https://nodejs.org/api/process.html#process_process_env)
|
|
38
|
-
|
|
39
|
-
Use a custom environment variables object.
|
|
40
|
-
|
|
41
|
-
#### platform
|
|
42
|
-
|
|
43
|
-
Type: `string`<br>
|
|
44
|
-
Default: [`process.platform`](https://nodejs.org/api/process.html#process_process_platform)
|
|
45
|
-
|
|
46
|
-
Get the PATH key for a specific platform.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## License
|
|
50
|
-
|
|
51
|
-
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
@@ -1,15 +0,0 @@
|
|
|
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.
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
[](https://travis-ci.org/isaacs/rimraf) [](https://david-dm.org/isaacs/rimraf) [](https://david-dm.org/isaacs/rimraf#info=devDependencies)
|
|
2
|
-
|
|
3
|
-
The [UNIX command](http://en.wikipedia.org/wiki/Rm_(Unix)) `rm -rf` for node.
|
|
4
|
-
|
|
5
|
-
Install with `npm install rimraf`, or just drop rimraf.js somewhere.
|
|
6
|
-
|
|
7
|
-
## API
|
|
8
|
-
|
|
9
|
-
`rimraf(f, [opts], callback)`
|
|
10
|
-
|
|
11
|
-
The first parameter will be interpreted as a globbing pattern for files. If you
|
|
12
|
-
want to disable globbing you can do so with `opts.disableGlob` (defaults to
|
|
13
|
-
`false`). This might be handy, for instance, if you have filenames that contain
|
|
14
|
-
globbing wildcard characters.
|
|
15
|
-
|
|
16
|
-
The callback will be called with an error if there is one. Certain
|
|
17
|
-
errors are handled for you:
|
|
18
|
-
|
|
19
|
-
* Windows: `EBUSY` and `ENOTEMPTY` - rimraf will back off a maximum of
|
|
20
|
-
`opts.maxBusyTries` times before giving up, adding 100ms of wait
|
|
21
|
-
between each attempt. The default `maxBusyTries` is 3.
|
|
22
|
-
* `ENOENT` - If the file doesn't exist, rimraf will return
|
|
23
|
-
successfully, since your desired outcome is already the case.
|
|
24
|
-
* `EMFILE` - Since `readdir` requires opening a file descriptor, it's
|
|
25
|
-
possible to hit `EMFILE` if too many file descriptors are in use.
|
|
26
|
-
In the sync case, there's nothing to be done for this. But in the
|
|
27
|
-
async case, rimraf will gradually back off with timeouts up to
|
|
28
|
-
`opts.emfileWait` ms, which defaults to 1000.
|
|
29
|
-
|
|
30
|
-
## options
|
|
31
|
-
|
|
32
|
-
* unlink, chmod, stat, lstat, rmdir, readdir,
|
|
33
|
-
unlinkSync, chmodSync, statSync, lstatSync, rmdirSync, readdirSync
|
|
34
|
-
|
|
35
|
-
In order to use a custom file system library, you can override
|
|
36
|
-
specific fs functions on the options object.
|
|
37
|
-
|
|
38
|
-
If any of these functions are present on the options object, then
|
|
39
|
-
the supplied function will be used instead of the default fs
|
|
40
|
-
method.
|
|
41
|
-
|
|
42
|
-
Sync methods are only relevant for `rimraf.sync()`, of course.
|
|
43
|
-
|
|
44
|
-
For example:
|
|
45
|
-
|
|
46
|
-
```javascript
|
|
47
|
-
var myCustomFS = require('some-custom-fs')
|
|
48
|
-
|
|
49
|
-
rimraf('some-thing', myCustomFS, callback)
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
* maxBusyTries
|
|
53
|
-
|
|
54
|
-
If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error code is encountered
|
|
55
|
-
on Windows systems, then rimraf will retry with a linear backoff
|
|
56
|
-
wait of 100ms longer on each try. The default maxBusyTries is 3.
|
|
57
|
-
|
|
58
|
-
Only relevant for async usage.
|
|
59
|
-
|
|
60
|
-
* emfileWait
|
|
61
|
-
|
|
62
|
-
If an `EMFILE` error is encountered, then rimraf will retry
|
|
63
|
-
repeatedly with a linear backoff of 1ms longer on each try, until
|
|
64
|
-
the timeout counter hits this max. The default limit is 1000.
|
|
65
|
-
|
|
66
|
-
If you repeatedly encounter `EMFILE` errors, then consider using
|
|
67
|
-
[graceful-fs](http://npm.im/graceful-fs) in your program.
|
|
68
|
-
|
|
69
|
-
Only relevant for async usage.
|
|
70
|
-
|
|
71
|
-
* glob
|
|
72
|
-
|
|
73
|
-
Set to `false` to disable [glob](http://npm.im/glob) pattern
|
|
74
|
-
matching.
|
|
75
|
-
|
|
76
|
-
Set to an object to pass options to the glob module. The default
|
|
77
|
-
glob options are `{ nosort: true, silent: true }`.
|
|
78
|
-
|
|
79
|
-
Glob version 6 is used in this module.
|
|
80
|
-
|
|
81
|
-
Relevant for both sync and async usage.
|
|
82
|
-
|
|
83
|
-
* disableGlob
|
|
84
|
-
|
|
85
|
-
Set to any non-falsey value to disable globbing entirely.
|
|
86
|
-
(Equivalent to setting `glob: false`.)
|
|
87
|
-
|
|
88
|
-
## rimraf.sync
|
|
89
|
-
|
|
90
|
-
It can remove stuff synchronously, too. But that's not so good. Use
|
|
91
|
-
the async API. It's better.
|
|
92
|
-
|
|
93
|
-
## CLI
|
|
94
|
-
|
|
95
|
-
If installed with `npm install rimraf -g` it can be used as a global
|
|
96
|
-
command `rimraf <path> [<path> ...]` which is useful for cross platform support.
|
|
97
|
-
|
|
98
|
-
## mkdirp
|
|
99
|
-
|
|
100
|
-
If you need to create a directory recursively, check out
|
|
101
|
-
[mkdirp](https://github.com/substack/node-mkdirp).
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
var rimraf = require('./')
|
|
4
|
-
|
|
5
|
-
var help = false
|
|
6
|
-
var dashdash = false
|
|
7
|
-
var noglob = false
|
|
8
|
-
var args = process.argv.slice(2).filter(function(arg) {
|
|
9
|
-
if (dashdash)
|
|
10
|
-
return !!arg
|
|
11
|
-
else if (arg === '--')
|
|
12
|
-
dashdash = true
|
|
13
|
-
else if (arg === '--no-glob' || arg === '-G')
|
|
14
|
-
noglob = true
|
|
15
|
-
else if (arg === '--glob' || arg === '-g')
|
|
16
|
-
noglob = false
|
|
17
|
-
else if (arg.match(/^(-+|\/)(h(elp)?|\?)$/))
|
|
18
|
-
help = true
|
|
19
|
-
else
|
|
20
|
-
return !!arg
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
if (help || args.length === 0) {
|
|
24
|
-
// If they didn't ask for help, then this is not a "success"
|
|
25
|
-
var log = help ? console.log : console.error
|
|
26
|
-
log('Usage: rimraf <path> [<path> ...]')
|
|
27
|
-
log('')
|
|
28
|
-
log(' Deletes all files and folders at "path" recursively.')
|
|
29
|
-
log('')
|
|
30
|
-
log('Options:')
|
|
31
|
-
log('')
|
|
32
|
-
log(' -h, --help Display this usage info')
|
|
33
|
-
log(' -G, --no-glob Do not expand glob patterns in arguments')
|
|
34
|
-
log(' -g, --glob Expand glob patterns in arguments (default)')
|
|
35
|
-
process.exit(help ? 0 : 1)
|
|
36
|
-
} else
|
|
37
|
-
go(0)
|
|
38
|
-
|
|
39
|
-
function go (n) {
|
|
40
|
-
if (n >= args.length)
|
|
41
|
-
return
|
|
42
|
-
var options = {}
|
|
43
|
-
if (noglob)
|
|
44
|
-
options = { glob: false }
|
|
45
|
-
rimraf(args[n], options, function (er) {
|
|
46
|
-
if (er)
|
|
47
|
-
throw er
|
|
48
|
-
go(n+1)
|
|
49
|
-
})
|
|
50
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rimraf",
|
|
3
|
-
"version": "2.7.1",
|
|
4
|
-
"main": "rimraf.js",
|
|
5
|
-
"description": "A deep deletion module for node (like `rm -rf`)",
|
|
6
|
-
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
7
|
-
"license": "ISC",
|
|
8
|
-
"repository": "git://github.com/isaacs/rimraf.git",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"preversion": "npm test",
|
|
11
|
-
"postversion": "npm publish",
|
|
12
|
-
"postpublish": "git push origin --all; git push origin --tags",
|
|
13
|
-
"test": "tap test/*.js"
|
|
14
|
-
},
|
|
15
|
-
"bin": "./bin.js",
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"glob": "^7.1.3"
|
|
18
|
-
},
|
|
19
|
-
"files": [
|
|
20
|
-
"LICENSE",
|
|
21
|
-
"README.md",
|
|
22
|
-
"bin.js",
|
|
23
|
-
"rimraf.js"
|
|
24
|
-
],
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"mkdirp": "^0.5.1",
|
|
27
|
-
"tap": "^12.1.1"
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
,"_resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz"
|
|
31
|
-
,"_integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w=="
|
|
32
|
-
,"_from": "rimraf@2.7.1"
|
|
33
|
-
}
|