@pnpm/exe 11.13.0 → 11.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/node-gyp-bin/node-gyp +6 -0
- package/dist/node-gyp-bin/node-gyp.cmd +5 -0
- package/dist/node_modules/.bin/node-gyp +38 -0
- package/dist/node_modules/.bin/node-which +38 -0
- package/dist/node_modules/.bin/nopt +38 -0
- package/dist/node_modules/.bin/semver +38 -0
- package/dist/node_modules/.package-map.json +1 -0
- package/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/dist/node_modules/abbrev/LICENSE +46 -0
- package/dist/node_modules/abbrev/lib/index.js +53 -0
- package/dist/node_modules/abbrev/package.json +41 -0
- package/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/dist/node_modules/chownr/dist/esm/index.js +85 -0
- package/dist/node_modules/chownr/dist/esm/package.json +3 -0
- package/dist/node_modules/chownr/package.json +69 -0
- package/dist/node_modules/env-paths/index.js +74 -0
- package/dist/node_modules/env-paths/license +9 -0
- package/dist/node_modules/env-paths/package.json +45 -0
- package/dist/node_modules/exponential-backoff/LICENSE +202 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/dist/node_modules/exponential-backoff/package.json +62 -0
- package/dist/node_modules/fdir/LICENSE +7 -0
- package/dist/node_modules/fdir/dist/index.cjs +588 -0
- package/dist/node_modules/fdir/dist/index.d.cts +155 -0
- package/dist/node_modules/fdir/dist/index.d.mts +155 -0
- package/dist/node_modules/fdir/dist/index.mjs +570 -0
- package/dist/node_modules/fdir/package.json +103 -0
- package/dist/node_modules/graceful-fs/LICENSE +15 -0
- package/dist/node_modules/graceful-fs/clone.js +23 -0
- package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/dist/node_modules/graceful-fs/package.json +53 -0
- package/dist/node_modules/graceful-fs/polyfills.js +355 -0
- package/dist/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/dist/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/dist/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/dist/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/dist/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/dist/node_modules/isexe/dist/esm/index.js +16 -0
- package/dist/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/dist/node_modules/isexe/dist/esm/options.js +2 -0
- package/dist/node_modules/isexe/dist/esm/package.json +3 -0
- package/dist/node_modules/isexe/dist/esm/posix.js +62 -0
- package/dist/node_modules/isexe/dist/esm/win32.js +58 -0
- package/dist/node_modules/isexe/package.json +78 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass/dist/esm/index.js +1020 -0
- package/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass/package.json +77 -0
- package/dist/node_modules/minizlib/LICENSE +26 -0
- package/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/dist/node_modules/minizlib/dist/esm/index.js +363 -0
- package/dist/node_modules/minizlib/dist/esm/package.json +3 -0
- package/dist/node_modules/minizlib/package.json +80 -0
- package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/LICENSE +24 -0
- package/dist/node_modules/node-gyp/addon.gypi +204 -0
- package/dist/node_modules/node-gyp/bin/node-gyp.js +145 -0
- package/dist/node_modules/node-gyp/eslint.config.js +3 -0
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/dist/node_modules/node-gyp/gyp/gyp +8 -0
- package/dist/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/dist/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +607 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +706 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +77 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +807 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +541 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +116 -0
- package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/dist/node_modules/node-gyp/lib/build.js +230 -0
- package/dist/node_modules/node-gyp/lib/clean.js +15 -0
- package/dist/node_modules/node-gyp/lib/configure.js +328 -0
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/dist/node_modules/node-gyp/lib/download.js +86 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/dist/node_modules/node-gyp/lib/find-python.js +304 -0
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +606 -0
- package/dist/node_modules/node-gyp/lib/install.js +411 -0
- package/dist/node_modules/node-gyp/lib/list.js +26 -0
- package/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/dist/node_modules/node-gyp/lib/process-release.js +144 -0
- package/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/dist/node_modules/node-gyp/lib/remove.js +43 -0
- package/dist/node_modules/node-gyp/lib/util.js +81 -0
- package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/dist/node_modules/node-gyp/package.json +52 -0
- package/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/dist/node_modules/nopt/LICENSE +15 -0
- package/dist/node_modules/nopt/bin/nopt.js +29 -0
- package/dist/node_modules/nopt/lib/debug.js +5 -0
- package/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/dist/node_modules/nopt/lib/nopt.js +34 -0
- package/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/dist/node_modules/nopt/package.json +52 -0
- package/dist/node_modules/picomatch/LICENSE +21 -0
- package/dist/node_modules/picomatch/index.js +17 -0
- package/dist/node_modules/picomatch/lib/constants.js +184 -0
- package/dist/node_modules/picomatch/lib/parse.js +1416 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +361 -0
- package/dist/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/node_modules/picomatch/lib/utils.js +72 -0
- package/dist/node_modules/picomatch/package.json +83 -0
- package/dist/node_modules/picomatch/posix.js +3 -0
- package/dist/node_modules/proc-log/LICENSE +15 -0
- package/dist/node_modules/proc-log/lib/index.js +158 -0
- package/dist/node_modules/proc-log/package.json +46 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/bin/semver.js +195 -0
- package/dist/node_modules/semver/classes/comparator.js +143 -0
- package/dist/node_modules/semver/classes/index.js +7 -0
- package/dist/node_modules/semver/classes/range.js +577 -0
- package/dist/node_modules/semver/classes/semver.js +350 -0
- package/dist/node_modules/semver/functions/clean.js +8 -0
- package/dist/node_modules/semver/functions/cmp.js +54 -0
- package/dist/node_modules/semver/functions/coerce.js +62 -0
- package/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/dist/node_modules/semver/functions/compare.js +7 -0
- package/dist/node_modules/semver/functions/diff.js +60 -0
- package/dist/node_modules/semver/functions/eq.js +5 -0
- package/dist/node_modules/semver/functions/gt.js +5 -0
- package/dist/node_modules/semver/functions/gte.js +5 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +5 -0
- package/dist/node_modules/semver/functions/lte.js +5 -0
- package/dist/node_modules/semver/functions/major.js +5 -0
- package/dist/node_modules/semver/functions/minor.js +5 -0
- package/dist/node_modules/semver/functions/neq.js +5 -0
- package/dist/node_modules/semver/functions/parse.js +18 -0
- package/dist/node_modules/semver/functions/patch.js +5 -0
- package/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/dist/node_modules/semver/functions/rsort.js +5 -0
- package/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/node_modules/semver/functions/sort.js +5 -0
- package/dist/node_modules/semver/functions/truncate.js +48 -0
- package/dist/node_modules/semver/functions/valid.js +8 -0
- package/dist/node_modules/semver/index.js +93 -0
- package/dist/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/semver/internal/debug.js +11 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/node_modules/semver/internal/re.js +223 -0
- package/dist/node_modules/semver/package.json +78 -0
- package/dist/node_modules/semver/preload.js +4 -0
- package/dist/node_modules/semver/range.bnf +17 -0
- package/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/dist/node_modules/semver/ranges/outside.js +82 -0
- package/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/dist/node_modules/semver/ranges/subset.js +249 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/dist/node_modules/semver/ranges/valid.js +13 -0
- package/dist/node_modules/tar/dist/commonjs/create.js +82 -0
- package/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/dist/node_modules/tar/dist/commonjs/header.js +348 -0
- package/dist/node_modules/tar/dist/commonjs/index.js +64 -0
- package/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/dist/node_modules/tar/dist/commonjs/list.js +145 -0
- package/dist/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/dist/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/dist/node_modules/tar/dist/commonjs/options.js +66 -0
- package/dist/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/dist/node_modules/tar/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/dist/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/dist/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/dist/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/dist/node_modules/tar/dist/commonjs/types.js +70 -0
- package/dist/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/dist/node_modules/tar/dist/commonjs/update.js +33 -0
- package/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/dist/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/dist/node_modules/tar/dist/esm/create.js +76 -0
- package/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/dist/node_modules/tar/dist/esm/extract.js +49 -0
- package/dist/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/dist/node_modules/tar/dist/esm/header.js +311 -0
- package/dist/node_modules/tar/dist/esm/index.js +20 -0
- package/dist/node_modules/tar/dist/esm/index.min.js +4 -0
- package/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/dist/node_modules/tar/dist/esm/list.js +105 -0
- package/dist/node_modules/tar/dist/esm/make-command.js +48 -0
- package/dist/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/dist/node_modules/tar/dist/esm/options.js +54 -0
- package/dist/node_modules/tar/dist/esm/pack.js +502 -0
- package/dist/node_modules/tar/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/dist/esm/parse.js +651 -0
- package/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/dist/node_modules/tar/dist/esm/pax.js +178 -0
- package/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/dist/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/dist/node_modules/tar/dist/esm/replace.js +221 -0
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/dist/node_modules/tar/dist/esm/types.js +65 -0
- package/dist/node_modules/tar/dist/esm/unpack.js +891 -0
- package/dist/node_modules/tar/dist/esm/update.js +30 -0
- package/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/dist/node_modules/tar/dist/esm/winchars.js +9 -0
- package/dist/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/dist/node_modules/tar/package.json +298 -0
- package/dist/node_modules/tinyglobby/LICENSE +21 -0
- package/dist/node_modules/tinyglobby/dist/index.cjs +335 -0
- package/dist/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/dist/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/dist/node_modules/tinyglobby/dist/index.mjs +307 -0
- package/dist/node_modules/tinyglobby/package.json +70 -0
- package/dist/node_modules/undici/LICENSE +21 -0
- package/dist/node_modules/undici/index-fetch.js +35 -0
- package/dist/node_modules/undici/index.js +169 -0
- package/dist/node_modules/undici/lib/api/abort-signal.js +57 -0
- package/dist/node_modules/undici/lib/api/api-connect.js +108 -0
- package/dist/node_modules/undici/lib/api/api-pipeline.js +251 -0
- package/dist/node_modules/undici/lib/api/api-request.js +214 -0
- package/dist/node_modules/undici/lib/api/api-stream.js +220 -0
- package/dist/node_modules/undici/lib/api/api-upgrade.js +108 -0
- package/dist/node_modules/undici/lib/api/index.js +7 -0
- package/dist/node_modules/undici/lib/api/readable.js +385 -0
- package/dist/node_modules/undici/lib/api/util.js +93 -0
- package/dist/node_modules/undici/lib/core/connect.js +240 -0
- package/dist/node_modules/undici/lib/core/constants.js +118 -0
- package/dist/node_modules/undici/lib/core/diagnostics.js +202 -0
- package/dist/node_modules/undici/lib/core/errors.js +425 -0
- package/dist/node_modules/undici/lib/core/request.js +405 -0
- package/dist/node_modules/undici/lib/core/symbols.js +67 -0
- package/dist/node_modules/undici/lib/core/tree.js +152 -0
- package/dist/node_modules/undici/lib/core/util.js +719 -0
- package/dist/node_modules/undici/lib/dispatcher/agent.js +129 -0
- package/dist/node_modules/undici/lib/dispatcher/balanced-pool.js +209 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h1.js +1487 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h2.js +744 -0
- package/dist/node_modules/undici/lib/dispatcher/client.js +623 -0
- package/dist/node_modules/undici/lib/dispatcher/dispatcher-base.js +199 -0
- package/dist/node_modules/undici/lib/dispatcher/dispatcher.js +65 -0
- package/dist/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +160 -0
- package/dist/node_modules/undici/lib/dispatcher/fixed-queue.js +117 -0
- package/dist/node_modules/undici/lib/dispatcher/pool-base.js +194 -0
- package/dist/node_modules/undici/lib/dispatcher/pool-stats.js +34 -0
- package/dist/node_modules/undici/lib/dispatcher/pool.js +107 -0
- package/dist/node_modules/undici/lib/dispatcher/proxy-agent.js +274 -0
- package/dist/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/dist/node_modules/undici/lib/global.js +32 -0
- package/dist/node_modules/undici/lib/handler/decorator-handler.js +44 -0
- package/dist/node_modules/undici/lib/handler/redirect-handler.js +232 -0
- package/dist/node_modules/undici/lib/handler/retry-handler.js +374 -0
- package/dist/node_modules/undici/lib/interceptor/dns.js +375 -0
- package/dist/node_modules/undici/lib/interceptor/dump.js +123 -0
- package/dist/node_modules/undici/lib/interceptor/redirect-interceptor.js +21 -0
- package/dist/node_modules/undici/lib/interceptor/redirect.js +24 -0
- package/dist/node_modules/undici/lib/interceptor/response-error.js +86 -0
- package/dist/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/dist/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/dist/node_modules/undici/lib/llhttp/constants.js +278 -0
- package/dist/node_modules/undici/lib/llhttp/llhttp-wasm.js +5 -0
- package/dist/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +5 -0
- package/dist/node_modules/undici/lib/llhttp/utils.js +15 -0
- package/dist/node_modules/undici/lib/mock/mock-agent.js +160 -0
- package/dist/node_modules/undici/lib/mock/mock-client.js +59 -0
- package/dist/node_modules/undici/lib/mock/mock-errors.js +28 -0
- package/dist/node_modules/undici/lib/mock/mock-interceptor.js +207 -0
- package/dist/node_modules/undici/lib/mock/mock-pool.js +59 -0
- package/dist/node_modules/undici/lib/mock/mock-symbols.js +23 -0
- package/dist/node_modules/undici/lib/mock/mock-utils.js +367 -0
- package/dist/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/dist/node_modules/undici/lib/mock/pluralizer.js +29 -0
- package/dist/node_modules/undici/lib/util/timers.js +423 -0
- package/dist/node_modules/undici/lib/web/cache/cache.js +859 -0
- package/dist/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/dist/node_modules/undici/lib/web/cache/symbols.js +5 -0
- package/dist/node_modules/undici/lib/web/cache/util.js +45 -0
- package/dist/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/dist/node_modules/undici/lib/web/cookies/index.js +184 -0
- package/dist/node_modules/undici/lib/web/cookies/parse.js +310 -0
- package/dist/node_modules/undici/lib/web/cookies/util.js +282 -0
- package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +398 -0
- package/dist/node_modules/undici/lib/web/eventsource/eventsource.js +480 -0
- package/dist/node_modules/undici/lib/web/eventsource/util.js +37 -0
- package/dist/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/dist/node_modules/undici/lib/web/fetch/body.js +529 -0
- package/dist/node_modules/undici/lib/web/fetch/constants.js +124 -0
- package/dist/node_modules/undici/lib/web/fetch/data-url.js +744 -0
- package/dist/node_modules/undici/lib/web/fetch/dispatcher-weakref.js +46 -0
- package/dist/node_modules/undici/lib/web/fetch/file.js +126 -0
- package/dist/node_modules/undici/lib/web/fetch/formdata-parser.js +474 -0
- package/dist/node_modules/undici/lib/web/fetch/formdata.js +252 -0
- package/dist/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/dist/node_modules/undici/lib/web/fetch/headers.js +687 -0
- package/dist/node_modules/undici/lib/web/fetch/index.js +2272 -0
- package/dist/node_modules/undici/lib/web/fetch/request.js +1037 -0
- package/dist/node_modules/undici/lib/web/fetch/response.js +610 -0
- package/dist/node_modules/undici/lib/web/fetch/symbols.js +9 -0
- package/dist/node_modules/undici/lib/web/fetch/util.js +1632 -0
- package/dist/node_modules/undici/lib/web/fetch/webidl.js +695 -0
- package/dist/node_modules/undici/lib/web/fileapi/encoding.js +290 -0
- package/dist/node_modules/undici/lib/web/fileapi/filereader.js +344 -0
- package/dist/node_modules/undici/lib/web/fileapi/progressevent.js +78 -0
- package/dist/node_modules/undici/lib/web/fileapi/symbols.js +10 -0
- package/dist/node_modules/undici/lib/web/fileapi/util.js +391 -0
- package/dist/node_modules/undici/lib/web/websocket/connection.js +371 -0
- package/dist/node_modules/undici/lib/web/websocket/constants.js +66 -0
- package/dist/node_modules/undici/lib/web/websocket/events.js +329 -0
- package/dist/node_modules/undici/lib/web/websocket/frame.js +96 -0
- package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +100 -0
- package/dist/node_modules/undici/lib/web/websocket/receiver.js +513 -0
- package/dist/node_modules/undici/lib/web/websocket/sender.js +104 -0
- package/dist/node_modules/undici/lib/web/websocket/symbols.js +12 -0
- package/dist/node_modules/undici/lib/web/websocket/util.js +322 -0
- package/dist/node_modules/undici/lib/web/websocket/websocket.js +595 -0
- package/dist/node_modules/undici/package.json +160 -0
- package/dist/node_modules/undici/scripts/strip-comments.js +8 -0
- package/{LICENSE → dist/node_modules/v8-compile-cache/LICENSE} +1 -2
- package/dist/node_modules/v8-compile-cache/package.json +34 -0
- package/dist/node_modules/v8-compile-cache/v8-compile-cache.js +373 -0
- package/dist/node_modules/which/LICENSE +15 -0
- package/dist/node_modules/which/bin/which.js +52 -0
- package/dist/node_modules/which/lib/index.js +111 -0
- package/dist/node_modules/which/package.json +52 -0
- package/dist/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/dist/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/yallist/dist/esm/index.js +379 -0
- package/dist/node_modules/yallist/dist/esm/package.json +3 -0
- package/dist/node_modules/yallist/package.json +68 -0
- package/dist/pnpm.mjs +311237 -0
- package/dist/pnpmrc +2 -0
- package/dist/templates/completion.bash +31 -0
- package/dist/templates/completion.fish +22 -0
- package/dist/templates/completion.ps1 +193 -0
- package/dist/templates/completion.zsh +27 -0
- package/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
- package/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
- package/dist/worker.js +11941 -0
- package/package.json +12 -12
- package/pn.cmd +2 -0
- package/pn.ps1 +1 -0
- package/pnpx.cmd +2 -0
- package/pnpx.ps1 +1 -0
- package/pnx.cmd +2 -0
- package/pnx.ps1 +1 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# Copyright (c) 2012 Google Inc. All rights reserved.
|
|
3
|
+
# Use of this source code is governed by a BSD-style license that can be
|
|
4
|
+
# found in the LICENSE file.
|
|
5
|
+
|
|
6
|
+
"""gyptest.py -- test runner for GYP tests."""
|
|
7
|
+
|
|
8
|
+
import argparse
|
|
9
|
+
import os
|
|
10
|
+
import platform
|
|
11
|
+
import subprocess
|
|
12
|
+
import sys
|
|
13
|
+
import time
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def is_test_name(f):
|
|
17
|
+
return f.startswith("gyptest") and f.endswith(".py")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def find_all_gyptest_files(directory):
|
|
21
|
+
result = []
|
|
22
|
+
for root, dirs, files in os.walk(directory):
|
|
23
|
+
result.extend([os.path.join(root, f) for f in files if is_test_name(f)])
|
|
24
|
+
result.sort()
|
|
25
|
+
return result
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def main(argv=None):
|
|
29
|
+
if argv is None:
|
|
30
|
+
argv = sys.argv
|
|
31
|
+
|
|
32
|
+
parser = argparse.ArgumentParser()
|
|
33
|
+
parser.add_argument("-a", "--all", action="store_true", help="run all tests")
|
|
34
|
+
parser.add_argument("-C", "--chdir", action="store", help="change to directory")
|
|
35
|
+
parser.add_argument(
|
|
36
|
+
"-f",
|
|
37
|
+
"--format",
|
|
38
|
+
action="store",
|
|
39
|
+
default="",
|
|
40
|
+
help="run tests with the specified formats",
|
|
41
|
+
)
|
|
42
|
+
parser.add_argument(
|
|
43
|
+
"-G",
|
|
44
|
+
"--gyp_option",
|
|
45
|
+
action="append",
|
|
46
|
+
default=[],
|
|
47
|
+
help="Add -G options to the gyp command line",
|
|
48
|
+
)
|
|
49
|
+
parser.add_argument(
|
|
50
|
+
"-l", "--list", action="store_true", help="list available tests and exit"
|
|
51
|
+
)
|
|
52
|
+
parser.add_argument(
|
|
53
|
+
"-n",
|
|
54
|
+
"--no-exec",
|
|
55
|
+
action="store_true",
|
|
56
|
+
help="no execute, just print the command line",
|
|
57
|
+
)
|
|
58
|
+
parser.add_argument(
|
|
59
|
+
"--path", action="append", default=[], help="additional $PATH directory"
|
|
60
|
+
)
|
|
61
|
+
parser.add_argument(
|
|
62
|
+
"-q",
|
|
63
|
+
"--quiet",
|
|
64
|
+
action="store_true",
|
|
65
|
+
help="quiet, don't print anything unless there are failures",
|
|
66
|
+
)
|
|
67
|
+
parser.add_argument(
|
|
68
|
+
"-v",
|
|
69
|
+
"--verbose",
|
|
70
|
+
action="store_true",
|
|
71
|
+
help="print configuration info and test results.",
|
|
72
|
+
)
|
|
73
|
+
parser.add_argument("tests", nargs="*")
|
|
74
|
+
args = parser.parse_args(argv[1:])
|
|
75
|
+
|
|
76
|
+
if args.chdir:
|
|
77
|
+
os.chdir(args.chdir)
|
|
78
|
+
|
|
79
|
+
if args.path:
|
|
80
|
+
extra_path = [os.path.abspath(p) for p in args.path]
|
|
81
|
+
extra_path = os.pathsep.join(extra_path)
|
|
82
|
+
os.environ["PATH"] = extra_path + os.pathsep + os.environ["PATH"]
|
|
83
|
+
|
|
84
|
+
if not args.tests:
|
|
85
|
+
if not args.all:
|
|
86
|
+
sys.stderr.write("Specify -a to get all tests.\n")
|
|
87
|
+
return 1
|
|
88
|
+
args.tests = ["test"]
|
|
89
|
+
|
|
90
|
+
tests = []
|
|
91
|
+
for arg in args.tests:
|
|
92
|
+
if os.path.isdir(arg):
|
|
93
|
+
tests.extend(find_all_gyptest_files(os.path.normpath(arg)))
|
|
94
|
+
else:
|
|
95
|
+
if not is_test_name(os.path.basename(arg)):
|
|
96
|
+
print(arg, "is not a valid gyp test name.", file=sys.stderr)
|
|
97
|
+
sys.exit(1)
|
|
98
|
+
tests.append(arg)
|
|
99
|
+
|
|
100
|
+
if args.list:
|
|
101
|
+
for test in tests:
|
|
102
|
+
print(test)
|
|
103
|
+
sys.exit(0)
|
|
104
|
+
|
|
105
|
+
os.environ["PYTHONPATH"] = os.path.abspath("test/lib")
|
|
106
|
+
|
|
107
|
+
if args.verbose:
|
|
108
|
+
print_configuration_info()
|
|
109
|
+
|
|
110
|
+
if args.gyp_option and not args.quiet:
|
|
111
|
+
print("Extra Gyp options: %s\n" % args.gyp_option)
|
|
112
|
+
|
|
113
|
+
if args.format:
|
|
114
|
+
format_list = args.format.split(",")
|
|
115
|
+
else:
|
|
116
|
+
format_list = {
|
|
117
|
+
"aix5": ["make"],
|
|
118
|
+
"os400": ["make"],
|
|
119
|
+
"freebsd7": ["make"],
|
|
120
|
+
"freebsd8": ["make"],
|
|
121
|
+
"openbsd5": ["make"],
|
|
122
|
+
"cygwin": ["msvs"],
|
|
123
|
+
"win32": ["msvs", "ninja"],
|
|
124
|
+
"linux": ["make", "ninja"],
|
|
125
|
+
"linux2": ["make", "ninja"],
|
|
126
|
+
"linux3": ["make", "ninja"],
|
|
127
|
+
# TODO: Re-enable xcode-ninja.
|
|
128
|
+
# https://bugs.chromium.org/p/gyp/issues/detail?id=530
|
|
129
|
+
# 'darwin': ['make', 'ninja', 'xcode', 'xcode-ninja'],
|
|
130
|
+
"darwin": ["make", "ninja", "xcode"],
|
|
131
|
+
}[sys.platform]
|
|
132
|
+
|
|
133
|
+
gyp_options = []
|
|
134
|
+
for option in args.gyp_option:
|
|
135
|
+
gyp_options += ["-G", option]
|
|
136
|
+
|
|
137
|
+
runner = Runner(format_list, tests, gyp_options, args.verbose)
|
|
138
|
+
runner.run()
|
|
139
|
+
|
|
140
|
+
if not args.quiet:
|
|
141
|
+
runner.print_results()
|
|
142
|
+
|
|
143
|
+
return 1 if runner.failures else 0
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def print_configuration_info():
|
|
147
|
+
print("Test configuration:")
|
|
148
|
+
if sys.platform == "darwin":
|
|
149
|
+
sys.path.append(os.path.abspath("test/lib"))
|
|
150
|
+
import TestMac # noqa: PLC0415
|
|
151
|
+
|
|
152
|
+
print(f" Mac {platform.mac_ver()[0]} {platform.mac_ver()[2]}")
|
|
153
|
+
print(f" Xcode {TestMac.Xcode.Version()}")
|
|
154
|
+
elif sys.platform == "win32":
|
|
155
|
+
sys.path.append(os.path.abspath("pylib"))
|
|
156
|
+
import gyp.MSVSVersion # noqa: PLC0415
|
|
157
|
+
|
|
158
|
+
print(" Win %s %s\n" % platform.win32_ver()[0:2])
|
|
159
|
+
print(" MSVS %s" % gyp.MSVSVersion.SelectVisualStudioVersion().Description())
|
|
160
|
+
elif sys.platform in ("linux", "linux2"):
|
|
161
|
+
print(" Linux %s" % " ".join(platform.linux_distribution()))
|
|
162
|
+
print(f" Python {platform.python_version()}")
|
|
163
|
+
print(f" PYTHONPATH={os.environ['PYTHONPATH']}")
|
|
164
|
+
print()
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
class Runner:
|
|
168
|
+
def __init__(self, formats, tests, gyp_options, verbose):
|
|
169
|
+
self.formats = formats
|
|
170
|
+
self.tests = tests
|
|
171
|
+
self.verbose = verbose
|
|
172
|
+
self.gyp_options = gyp_options
|
|
173
|
+
self.failures = []
|
|
174
|
+
self.num_tests = len(formats) * len(tests)
|
|
175
|
+
num_digits = len(str(self.num_tests))
|
|
176
|
+
self.fmt_str = "[%%%dd/%%%dd] (%%s) %%s" % (num_digits, num_digits)
|
|
177
|
+
self.isatty = sys.stdout.isatty() and not self.verbose
|
|
178
|
+
self.env = os.environ.copy()
|
|
179
|
+
self.hpos = 0
|
|
180
|
+
|
|
181
|
+
def run(self):
|
|
182
|
+
run_start = time.time()
|
|
183
|
+
|
|
184
|
+
i = 1
|
|
185
|
+
for fmt in self.formats:
|
|
186
|
+
for test in self.tests:
|
|
187
|
+
self.run_test(test, fmt, i)
|
|
188
|
+
i += 1
|
|
189
|
+
|
|
190
|
+
if self.isatty:
|
|
191
|
+
self.erase_current_line()
|
|
192
|
+
|
|
193
|
+
self.took = time.time() - run_start
|
|
194
|
+
|
|
195
|
+
def run_test(self, test, fmt, i):
|
|
196
|
+
if self.isatty:
|
|
197
|
+
self.erase_current_line()
|
|
198
|
+
|
|
199
|
+
msg = self.fmt_str % (i, self.num_tests, fmt, test)
|
|
200
|
+
self.print_(msg)
|
|
201
|
+
|
|
202
|
+
start = time.time()
|
|
203
|
+
cmd = [sys.executable, test] + self.gyp_options
|
|
204
|
+
self.env["TESTGYP_FORMAT"] = fmt
|
|
205
|
+
proc = subprocess.Popen(
|
|
206
|
+
cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, env=self.env
|
|
207
|
+
)
|
|
208
|
+
proc.wait()
|
|
209
|
+
took = time.time() - start
|
|
210
|
+
|
|
211
|
+
stdout = proc.stdout.read().decode("utf8")
|
|
212
|
+
if proc.returncode == 2:
|
|
213
|
+
res = "skipped"
|
|
214
|
+
elif proc.returncode:
|
|
215
|
+
res = "failed"
|
|
216
|
+
self.failures.append(f"({test}) {fmt}")
|
|
217
|
+
else:
|
|
218
|
+
res = "passed"
|
|
219
|
+
res_msg = f" {res} {took:.3f}s"
|
|
220
|
+
self.print_(res_msg)
|
|
221
|
+
|
|
222
|
+
if stdout and not stdout.endswith(("PASSED\n", "NO RESULT\n")):
|
|
223
|
+
print()
|
|
224
|
+
print("\n".join(f" {line}" for line in stdout.splitlines()))
|
|
225
|
+
elif not self.isatty:
|
|
226
|
+
print()
|
|
227
|
+
|
|
228
|
+
def print_(self, msg):
|
|
229
|
+
print(msg, end="")
|
|
230
|
+
index = msg.rfind("\n")
|
|
231
|
+
if index == -1:
|
|
232
|
+
self.hpos += len(msg)
|
|
233
|
+
else:
|
|
234
|
+
self.hpos = len(msg) - index
|
|
235
|
+
sys.stdout.flush()
|
|
236
|
+
|
|
237
|
+
def erase_current_line(self):
|
|
238
|
+
print("\b" * self.hpos + " " * self.hpos + "\b" * self.hpos, end="")
|
|
239
|
+
sys.stdout.flush()
|
|
240
|
+
self.hpos = 0
|
|
241
|
+
|
|
242
|
+
def print_results(self):
|
|
243
|
+
num_failures = len(self.failures)
|
|
244
|
+
if num_failures:
|
|
245
|
+
print()
|
|
246
|
+
if num_failures == 1:
|
|
247
|
+
print("Failed the following test:")
|
|
248
|
+
else:
|
|
249
|
+
print("Failed the following %d tests:" % num_failures)
|
|
250
|
+
print("\t" + "\n\t".join(sorted(self.failures)))
|
|
251
|
+
print()
|
|
252
|
+
print(
|
|
253
|
+
"Ran %d tests in %.3fs, %d failed."
|
|
254
|
+
% (self.num_tests, self.took, num_failures)
|
|
255
|
+
)
|
|
256
|
+
print()
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
if __name__ == "__main__":
|
|
260
|
+
sys.exit(main())
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
// Copyright 2017 - Refael Ackermann
|
|
2
|
+
// Distributed under MIT style license
|
|
3
|
+
// See accompanying file LICENSE at https://github.com/node4good/windows-autoconf
|
|
4
|
+
|
|
5
|
+
// Usage:
|
|
6
|
+
// powershell -ExecutionPolicy Unrestricted -Command "Add-Type -Path Find-VisualStudio.cs; [VisualStudioConfiguration.Main]::PrintJson()"
|
|
7
|
+
// This script needs to be compatible with PowerShell v2 to run on Windows 2008R2 and Windows 7.
|
|
8
|
+
|
|
9
|
+
using System;
|
|
10
|
+
using System.Text;
|
|
11
|
+
using System.Runtime.InteropServices;
|
|
12
|
+
using System.Collections.Generic;
|
|
13
|
+
|
|
14
|
+
namespace VisualStudioConfiguration
|
|
15
|
+
{
|
|
16
|
+
[Flags]
|
|
17
|
+
public enum InstanceState : uint
|
|
18
|
+
{
|
|
19
|
+
None = 0,
|
|
20
|
+
Local = 1,
|
|
21
|
+
Registered = 2,
|
|
22
|
+
NoRebootRequired = 4,
|
|
23
|
+
NoErrors = 8,
|
|
24
|
+
Complete = 4294967295,
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
[Guid("6380BCFF-41D3-4B2E-8B2E-BF8A6810C848")]
|
|
28
|
+
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
29
|
+
[ComImport]
|
|
30
|
+
public interface IEnumSetupInstances
|
|
31
|
+
{
|
|
32
|
+
|
|
33
|
+
void Next([MarshalAs(UnmanagedType.U4), In] int celt,
|
|
34
|
+
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.Interface), Out] ISetupInstance[] rgelt,
|
|
35
|
+
[MarshalAs(UnmanagedType.U4)] out int pceltFetched);
|
|
36
|
+
|
|
37
|
+
void Skip([MarshalAs(UnmanagedType.U4), In] int celt);
|
|
38
|
+
|
|
39
|
+
void Reset();
|
|
40
|
+
|
|
41
|
+
[return: MarshalAs(UnmanagedType.Interface)]
|
|
42
|
+
IEnumSetupInstances Clone();
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[Guid("42843719-DB4C-46C2-8E7C-64F1816EFD5B")]
|
|
46
|
+
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
47
|
+
[ComImport]
|
|
48
|
+
public interface ISetupConfiguration
|
|
49
|
+
{
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[Guid("26AAB78C-4A60-49D6-AF3B-3C35BC93365D")]
|
|
53
|
+
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
54
|
+
[ComImport]
|
|
55
|
+
public interface ISetupConfiguration2 : ISetupConfiguration
|
|
56
|
+
{
|
|
57
|
+
|
|
58
|
+
[return: MarshalAs(UnmanagedType.Interface)]
|
|
59
|
+
IEnumSetupInstances EnumInstances();
|
|
60
|
+
|
|
61
|
+
[return: MarshalAs(UnmanagedType.Interface)]
|
|
62
|
+
ISetupInstance GetInstanceForCurrentProcess();
|
|
63
|
+
|
|
64
|
+
[return: MarshalAs(UnmanagedType.Interface)]
|
|
65
|
+
ISetupInstance GetInstanceForPath([MarshalAs(UnmanagedType.LPWStr), In] string path);
|
|
66
|
+
|
|
67
|
+
[return: MarshalAs(UnmanagedType.Interface)]
|
|
68
|
+
IEnumSetupInstances EnumAllInstances();
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[Guid("B41463C3-8866-43B5-BC33-2B0676F7F42E")]
|
|
72
|
+
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
73
|
+
[ComImport]
|
|
74
|
+
public interface ISetupInstance
|
|
75
|
+
{
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
[Guid("89143C9A-05AF-49B0-B717-72E218A2185C")]
|
|
79
|
+
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
80
|
+
[ComImport]
|
|
81
|
+
public interface ISetupInstance2 : ISetupInstance
|
|
82
|
+
{
|
|
83
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
84
|
+
string GetInstanceId();
|
|
85
|
+
|
|
86
|
+
[return: MarshalAs(UnmanagedType.Struct)]
|
|
87
|
+
System.Runtime.InteropServices.ComTypes.FILETIME GetInstallDate();
|
|
88
|
+
|
|
89
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
90
|
+
string GetInstallationName();
|
|
91
|
+
|
|
92
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
93
|
+
string GetInstallationPath();
|
|
94
|
+
|
|
95
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
96
|
+
string GetInstallationVersion();
|
|
97
|
+
|
|
98
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
99
|
+
string GetDisplayName([MarshalAs(UnmanagedType.U4), In] int lcid);
|
|
100
|
+
|
|
101
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
102
|
+
string GetDescription([MarshalAs(UnmanagedType.U4), In] int lcid);
|
|
103
|
+
|
|
104
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
105
|
+
string ResolvePath([MarshalAs(UnmanagedType.LPWStr), In] string pwszRelativePath);
|
|
106
|
+
|
|
107
|
+
[return: MarshalAs(UnmanagedType.U4)]
|
|
108
|
+
InstanceState GetState();
|
|
109
|
+
|
|
110
|
+
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_UNKNOWN)]
|
|
111
|
+
ISetupPackageReference[] GetPackages();
|
|
112
|
+
|
|
113
|
+
ISetupPackageReference GetProduct();
|
|
114
|
+
|
|
115
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
116
|
+
string GetProductPath();
|
|
117
|
+
|
|
118
|
+
[return: MarshalAs(UnmanagedType.VariantBool)]
|
|
119
|
+
bool IsLaunchable();
|
|
120
|
+
|
|
121
|
+
[return: MarshalAs(UnmanagedType.VariantBool)]
|
|
122
|
+
bool IsComplete();
|
|
123
|
+
|
|
124
|
+
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_UNKNOWN)]
|
|
125
|
+
ISetupPropertyStore GetProperties();
|
|
126
|
+
|
|
127
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
128
|
+
string GetEnginePath();
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
[Guid("DA8D8A16-B2B6-4487-A2F1-594CCCCD6BF5")]
|
|
132
|
+
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
133
|
+
[ComImport]
|
|
134
|
+
public interface ISetupPackageReference
|
|
135
|
+
{
|
|
136
|
+
|
|
137
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
138
|
+
string GetId();
|
|
139
|
+
|
|
140
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
141
|
+
string GetVersion();
|
|
142
|
+
|
|
143
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
144
|
+
string GetChip();
|
|
145
|
+
|
|
146
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
147
|
+
string GetLanguage();
|
|
148
|
+
|
|
149
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
150
|
+
string GetBranch();
|
|
151
|
+
|
|
152
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
153
|
+
string GetType();
|
|
154
|
+
|
|
155
|
+
[return: MarshalAs(UnmanagedType.BStr)]
|
|
156
|
+
string GetUniqueId();
|
|
157
|
+
|
|
158
|
+
[return: MarshalAs(UnmanagedType.VariantBool)]
|
|
159
|
+
bool GetIsExtension();
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
[Guid("c601c175-a3be-44bc-91f6-4568d230fc83")]
|
|
163
|
+
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
|
|
164
|
+
[ComImport]
|
|
165
|
+
public interface ISetupPropertyStore
|
|
166
|
+
{
|
|
167
|
+
|
|
168
|
+
[return: MarshalAs(UnmanagedType.SafeArray, SafeArraySubType = VarEnum.VT_BSTR)]
|
|
169
|
+
string[] GetNames();
|
|
170
|
+
|
|
171
|
+
object GetValue([MarshalAs(UnmanagedType.LPWStr), In] string pwszName);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[Guid("42843719-DB4C-46C2-8E7C-64F1816EFD5B")]
|
|
175
|
+
[CoClass(typeof(SetupConfigurationClass))]
|
|
176
|
+
[ComImport]
|
|
177
|
+
public interface SetupConfiguration : ISetupConfiguration2, ISetupConfiguration
|
|
178
|
+
{
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[Guid("177F0C4A-1CD3-4DE7-A32C-71DBBB9FA36D")]
|
|
182
|
+
[ClassInterface(ClassInterfaceType.None)]
|
|
183
|
+
[ComImport]
|
|
184
|
+
public class SetupConfigurationClass
|
|
185
|
+
{
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
public static class Main
|
|
189
|
+
{
|
|
190
|
+
public static void PrintJson()
|
|
191
|
+
{
|
|
192
|
+
ISetupConfiguration query = new SetupConfiguration();
|
|
193
|
+
ISetupConfiguration2 query2 = (ISetupConfiguration2)query;
|
|
194
|
+
IEnumSetupInstances e = query2.EnumAllInstances();
|
|
195
|
+
|
|
196
|
+
int pceltFetched;
|
|
197
|
+
ISetupInstance2[] rgelt = new ISetupInstance2[1];
|
|
198
|
+
List<string> instances = new List<string>();
|
|
199
|
+
while (true)
|
|
200
|
+
{
|
|
201
|
+
e.Next(1, rgelt, out pceltFetched);
|
|
202
|
+
if (pceltFetched <= 0)
|
|
203
|
+
{
|
|
204
|
+
Console.WriteLine(String.Format("[{0}]", string.Join(",", instances.ToArray())));
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
try
|
|
209
|
+
{
|
|
210
|
+
instances.Add(InstanceJson(rgelt[0]));
|
|
211
|
+
}
|
|
212
|
+
catch (COMException)
|
|
213
|
+
{
|
|
214
|
+
// Ignore instances that can't be queried.
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
private static string JsonString(string s)
|
|
220
|
+
{
|
|
221
|
+
return "\"" + s.Replace("\\", "\\\\").Replace("\"", "\\\"") + "\"";
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
private static string InstanceJson(ISetupInstance2 setupInstance2)
|
|
225
|
+
{
|
|
226
|
+
// Visual Studio component directory:
|
|
227
|
+
// https://docs.microsoft.com/en-us/visualstudio/install/workload-and-component-ids
|
|
228
|
+
|
|
229
|
+
StringBuilder json = new StringBuilder();
|
|
230
|
+
json.Append("{");
|
|
231
|
+
|
|
232
|
+
string path = JsonString(setupInstance2.GetInstallationPath());
|
|
233
|
+
json.Append(String.Format("\"path\":{0},", path));
|
|
234
|
+
|
|
235
|
+
string version = JsonString(setupInstance2.GetInstallationVersion());
|
|
236
|
+
json.Append(String.Format("\"version\":{0},", version));
|
|
237
|
+
|
|
238
|
+
List<string> packages = new List<string>();
|
|
239
|
+
foreach (ISetupPackageReference package in setupInstance2.GetPackages())
|
|
240
|
+
{
|
|
241
|
+
string id = JsonString(package.GetId());
|
|
242
|
+
packages.Add(id);
|
|
243
|
+
}
|
|
244
|
+
json.Append(String.Format("\"packages\":[{0}]", string.Join(",", packages.ToArray())));
|
|
245
|
+
|
|
246
|
+
json.Append("}");
|
|
247
|
+
return json.ToString();
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|