@powerlines/plugin-env 0.15.13 → 0.15.14
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/dist/_virtual/rolldown_runtime.cjs +4 -0
- package/dist/_virtual/rolldown_runtime.mjs +33 -0
- package/dist/babel/plugin.cjs +16 -16
- package/dist/babel/plugin.d.mts +2 -2
- package/dist/babel/plugin.mjs +7 -7
- package/dist/components/docs.cjs +8 -8
- package/dist/components/docs.mjs +5 -5
- package/dist/components/env.cjs +38 -39
- package/dist/components/env.d.mts +2 -2
- package/dist/components/env.mjs +11 -11
- package/dist/helpers/automd-generator.cjs +4 -4
- package/dist/helpers/automd-generator.d.mts +1 -1
- package/dist/helpers/automd-generator.mjs +3 -3
- package/dist/helpers/load.cjs +12 -13
- package/dist/helpers/load.d.mts +2 -2
- package/dist/helpers/load.mjs +10 -10
- package/dist/helpers/persistence.cjs +23 -23
- package/dist/helpers/persistence.d.mts +1 -1
- package/dist/helpers/persistence.mjs +7 -7
- package/dist/helpers/reflect.cjs +9 -9
- package/dist/helpers/reflect.mjs +5 -5
- package/dist/helpers/source-file-env.cjs +1 -1
- package/dist/helpers/source-file-env.mjs +1 -1
- package/dist/index.cjs +28 -26
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +25 -25
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.cjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.mjs +7 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.cjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.cjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.cjs +9 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.mjs +7 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +346 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +23 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +22 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +405 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +404 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +1054 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +1054 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +42 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +45 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +285 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +68 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1007 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +13 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2685 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +4457 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +4454 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +29 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +181 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +176 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +17 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +3967 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +3962 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11763 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +17 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.cjs +174 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.mjs +172 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +13 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +12 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +145 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +138 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +125 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +136 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +627 -0
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/components.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
- package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +6 -6
- package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +1 -2
- package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +1 -1
- package/dist/types/plugin.cjs +19 -18
- package/dist/types/plugin.d.mts +6 -6
- package/dist/types/plugin.mjs +4 -4
- package/dist/types/runtime.cjs +3 -2
- package/dist/types/runtime.d.mts +1 -1
- package/dist/types/runtime.mjs +1 -1
- package/package.json +10 -10
- package/dist/deepkit/schemas/reflection.cjs +0 -5368
- package/dist/deepkit/schemas/reflection.mjs +0 -5365
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -1692
- package/dist/deepkit/src/capnp.mjs +0 -1690
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -99
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -98
- package/dist/deepkit/src/reflect-type.cjs +0 -40
- package/dist/deepkit/src/reflect-type.mjs +0 -38
- package/dist/deepkit/src/resolve-reflections.cjs +0 -23
- package/dist/deepkit/src/resolve-reflections.mjs +0 -22
- package/dist/deepkit/src/transformer.cjs +0 -92
- package/dist/deepkit/src/transformer.mjs +0 -89
- package/dist/deepkit/src/transpile.cjs +0 -39
- package/dist/deepkit/src/transpile.mjs +0 -37
- package/dist/deepkit/src/types.cjs +0 -22
- package/dist/deepkit/src/types.mjs +0 -21
- package/dist/deepkit/src/utilities.cjs +0 -182
- package/dist/deepkit/src/utilities.mjs +0 -181
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -136
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -128
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -110
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -101
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -23
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -22
- package/dist/plugin-alloy/src/index.cjs +0 -106
- package/dist/plugin-alloy/src/index.mjs +0 -104
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -72
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -71
- package/dist/plugin-alloy/src/types/components.cjs +0 -22
- package/dist/plugin-alloy/src/types/components.mjs +0 -21
- package/dist/plugin-alloy/src/types/plugin.cjs +0 -55
- package/dist/plugin-alloy/src/types/plugin.mjs +0 -52
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
- package/dist/plugin-automd/src/index.cjs +0 -127
- package/dist/plugin-automd/src/index.mjs +0 -124
- package/dist/plugin-automd/src/types/plugin.cjs +0 -47
- package/dist/plugin-automd/src/types/plugin.mjs +0 -47
- package/dist/plugin-automd/src/types/toc.cjs +0 -26
- package/dist/plugin-automd/src/types/toc.mjs +0 -25
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -74
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -70
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -71
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -69
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -158
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -154
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -200
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -192
- package/dist/plugin-babel/src/helpers/options.cjs +0 -74
- package/dist/plugin-babel/src/helpers/options.mjs +0 -71
- package/dist/plugin-babel/src/index.cjs +0 -131
- package/dist/plugin-babel/src/index.mjs +0 -129
- package/dist/plugin-babel/src/types/plugin.cjs +0 -42
- package/dist/plugin-babel/src/types/plugin.mjs +0 -39
- package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -137
- package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -135
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -161
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -159
- package/dist/powerlines/src/lib/entry.cjs +0 -203
- package/dist/powerlines/src/lib/entry.mjs +0 -201
- package/dist/powerlines/src/lib/logger.cjs +0 -108
- package/dist/powerlines/src/lib/logger.mjs +0 -106
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -67
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -66
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -49
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -48
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -46
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -45
- package/dist/powerlines/src/types/api.cjs +0 -62
- package/dist/powerlines/src/types/api.mjs +0 -62
- package/dist/powerlines/src/types/babel.cjs +0 -156
- package/dist/powerlines/src/types/babel.mjs +0 -147
- package/dist/powerlines/src/types/build.cjs +0 -127
- package/dist/powerlines/src/types/build.mjs +0 -121
- package/dist/powerlines/src/types/commands.cjs +0 -16
- package/dist/powerlines/src/types/commands.mjs +0 -15
- package/dist/powerlines/src/types/config.cjs +0 -413
- package/dist/powerlines/src/types/config.mjs +0 -391
- package/dist/powerlines/src/types/context.cjs +0 -381
- package/dist/powerlines/src/types/context.mjs +0 -364
- package/dist/powerlines/src/types/fs.cjs +0 -78
- package/dist/powerlines/src/types/fs.mjs +0 -75
- package/dist/powerlines/src/types/hooks.cjs +0 -71
- package/dist/powerlines/src/types/hooks.mjs +0 -68
- package/dist/powerlines/src/types/index.cjs +0 -11
- package/dist/powerlines/src/types/index.mjs +0 -13
- package/dist/powerlines/src/types/plugin.cjs +0 -184
- package/dist/powerlines/src/types/plugin.mjs +0 -178
- package/dist/powerlines/src/types/resolved.cjs +0 -153
- package/dist/powerlines/src/types/resolved.mjs +0 -148
- package/dist/powerlines/src/types/unplugin.cjs +0 -47
- package/dist/powerlines/src/types/unplugin.mjs +0 -46
- /package/dist/{deepkit → packages/deepkit}/schemas/reflection.d.mts +0 -0
- /package/dist/{deepkit → packages/deepkit}/src/types.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/core/components/source-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/tsdoc.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/toc.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/babel.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/index.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -0
|
@@ -0,0 +1,629 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let node_path = require("node:path");
|
|
3
|
+
let node_process = require("node:process");
|
|
4
|
+
let node_module = require("node:module");
|
|
5
|
+
let node_stream = require("node:stream");
|
|
6
|
+
let node_child_process = require("node:child_process");
|
|
7
|
+
let node_readline = require("node:readline");
|
|
8
|
+
node_readline = require_rolldown_runtime.__toESM(node_readline);
|
|
9
|
+
|
|
10
|
+
//#region ../../node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js
|
|
11
|
+
var l = Object.create;
|
|
12
|
+
var u = Object.defineProperty;
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor;
|
|
14
|
+
var f = Object.getOwnPropertyNames;
|
|
15
|
+
var p = Object.getPrototypeOf;
|
|
16
|
+
var m = Object.prototype.hasOwnProperty;
|
|
17
|
+
var h = (e$1, t$1) => () => (t$1 || e$1((t$1 = { exports: {} }).exports, t$1), t$1.exports);
|
|
18
|
+
var g = (e$1, t$1, n$1, r$1) => {
|
|
19
|
+
if (t$1 && typeof t$1 === "object" || typeof t$1 === "function") for (var i$1 = f(t$1), a$1 = 0, o$1 = i$1.length, s$1; a$1 < o$1; a$1++) {
|
|
20
|
+
s$1 = i$1[a$1];
|
|
21
|
+
if (!m.call(e$1, s$1) && s$1 !== n$1) u(e$1, s$1, {
|
|
22
|
+
get: ((e$2) => t$1[e$2]).bind(null, s$1),
|
|
23
|
+
enumerable: !(r$1 = d(t$1, s$1)) || r$1.enumerable
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return e$1;
|
|
27
|
+
};
|
|
28
|
+
var _ = (e$1, t$1, n$1) => (n$1 = e$1 != null ? l(p(e$1)) : {}, g(t$1 || !e$1 || !e$1.__esModule ? u(n$1, "default", {
|
|
29
|
+
value: e$1,
|
|
30
|
+
enumerable: true
|
|
31
|
+
}) : n$1, e$1));
|
|
32
|
+
var v = /* @__PURE__ */ (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
33
|
+
const y = /^path$/i;
|
|
34
|
+
const b = {
|
|
35
|
+
key: "PATH",
|
|
36
|
+
value: ""
|
|
37
|
+
};
|
|
38
|
+
function x(e$1) {
|
|
39
|
+
for (const t$1 in e$1) {
|
|
40
|
+
if (!Object.prototype.hasOwnProperty.call(e$1, t$1) || !y.test(t$1)) continue;
|
|
41
|
+
const n$1 = e$1[t$1];
|
|
42
|
+
if (!n$1) return b;
|
|
43
|
+
return {
|
|
44
|
+
key: t$1,
|
|
45
|
+
value: n$1
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
return b;
|
|
49
|
+
}
|
|
50
|
+
function S(e$1, t$1) {
|
|
51
|
+
const i$1 = t$1.value.split(node_path.delimiter);
|
|
52
|
+
let o$1 = e$1;
|
|
53
|
+
let s$1;
|
|
54
|
+
do {
|
|
55
|
+
i$1.push((0, node_path.resolve)(o$1, "node_modules", ".bin"));
|
|
56
|
+
s$1 = o$1;
|
|
57
|
+
o$1 = (0, node_path.dirname)(o$1);
|
|
58
|
+
} while (o$1 !== s$1);
|
|
59
|
+
return {
|
|
60
|
+
key: t$1.key,
|
|
61
|
+
value: i$1.join(node_path.delimiter)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function C(e$1, t$1) {
|
|
65
|
+
const n$1 = {
|
|
66
|
+
...process.env,
|
|
67
|
+
...t$1
|
|
68
|
+
};
|
|
69
|
+
const r$1 = S(e$1, x(n$1));
|
|
70
|
+
n$1[r$1.key] = r$1.value;
|
|
71
|
+
return n$1;
|
|
72
|
+
}
|
|
73
|
+
const w = (e$1) => {
|
|
74
|
+
let t$1 = e$1.length;
|
|
75
|
+
const n$1 = new node_stream.PassThrough();
|
|
76
|
+
const r$1 = () => {
|
|
77
|
+
if (--t$1 === 0) n$1.emit("end");
|
|
78
|
+
};
|
|
79
|
+
for (const t$2 of e$1) {
|
|
80
|
+
t$2.pipe(n$1, { end: false });
|
|
81
|
+
t$2.on("end", r$1);
|
|
82
|
+
}
|
|
83
|
+
return n$1;
|
|
84
|
+
};
|
|
85
|
+
var T = h((exports$1, t$1) => {
|
|
86
|
+
t$1.exports = a$1;
|
|
87
|
+
a$1.sync = o$1;
|
|
88
|
+
var n$1 = v("fs");
|
|
89
|
+
function r$1(e$1, t$2) {
|
|
90
|
+
var n$2 = t$2.pathExt !== void 0 ? t$2.pathExt : process.env.PATHEXT;
|
|
91
|
+
if (!n$2) return true;
|
|
92
|
+
n$2 = n$2.split(";");
|
|
93
|
+
if (n$2.indexOf("") !== -1) return true;
|
|
94
|
+
for (var r$2 = 0; r$2 < n$2.length; r$2++) {
|
|
95
|
+
var i$2 = n$2[r$2].toLowerCase();
|
|
96
|
+
if (i$2 && e$1.substr(-i$2.length).toLowerCase() === i$2) return true;
|
|
97
|
+
}
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
function i$1(e$1, t$2, n$2) {
|
|
101
|
+
if (!e$1.isSymbolicLink() && !e$1.isFile()) return false;
|
|
102
|
+
return r$1(t$2, n$2);
|
|
103
|
+
}
|
|
104
|
+
function a$1(e$1, t$2, r$2) {
|
|
105
|
+
n$1.stat(e$1, function(n$2, a$2) {
|
|
106
|
+
r$2(n$2, n$2 ? false : i$1(a$2, e$1, t$2));
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
function o$1(e$1, t$2) {
|
|
110
|
+
return i$1(n$1.statSync(e$1), e$1, t$2);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
var E = h((exports$1, t$1) => {
|
|
114
|
+
t$1.exports = r$1;
|
|
115
|
+
r$1.sync = i$1;
|
|
116
|
+
var n$1 = v("fs");
|
|
117
|
+
function r$1(e$1, t$2, r$2) {
|
|
118
|
+
n$1.stat(e$1, function(e$2, n$2) {
|
|
119
|
+
r$2(e$2, e$2 ? false : a$1(n$2, t$2));
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function i$1(e$1, t$2) {
|
|
123
|
+
return a$1(n$1.statSync(e$1), t$2);
|
|
124
|
+
}
|
|
125
|
+
function a$1(e$1, t$2) {
|
|
126
|
+
return e$1.isFile() && o$1(e$1, t$2);
|
|
127
|
+
}
|
|
128
|
+
function o$1(e$1, t$2) {
|
|
129
|
+
var n$2 = e$1.mode;
|
|
130
|
+
var r$2 = e$1.uid;
|
|
131
|
+
var i$2 = e$1.gid;
|
|
132
|
+
var a$2 = t$2.uid !== void 0 ? t$2.uid : process.getuid && process.getuid();
|
|
133
|
+
var o$2 = t$2.gid !== void 0 ? t$2.gid : process.getgid && process.getgid();
|
|
134
|
+
var s$1 = parseInt("100", 8);
|
|
135
|
+
var c$1 = parseInt("010", 8);
|
|
136
|
+
var l$1 = parseInt("001", 8);
|
|
137
|
+
var u$1 = s$1 | c$1;
|
|
138
|
+
return n$2 & l$1 || n$2 & c$1 && i$2 === o$2 || n$2 & s$1 && r$2 === a$2 || n$2 & u$1 && a$2 === 0;
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
var D = h((exports$1, t$1) => {
|
|
142
|
+
v("fs");
|
|
143
|
+
var r$1;
|
|
144
|
+
if (process.platform === "win32" || global.TESTING_WINDOWS) r$1 = T();
|
|
145
|
+
else r$1 = E();
|
|
146
|
+
t$1.exports = i$1;
|
|
147
|
+
i$1.sync = a$1;
|
|
148
|
+
function i$1(e$1, t$2, n$1) {
|
|
149
|
+
if (typeof t$2 === "function") {
|
|
150
|
+
n$1 = t$2;
|
|
151
|
+
t$2 = {};
|
|
152
|
+
}
|
|
153
|
+
if (!n$1) {
|
|
154
|
+
if (typeof Promise !== "function") throw new TypeError("callback not provided");
|
|
155
|
+
return new Promise(function(n$2, r$2) {
|
|
156
|
+
i$1(e$1, t$2 || {}, function(e$2, t$3) {
|
|
157
|
+
if (e$2) r$2(e$2);
|
|
158
|
+
else n$2(t$3);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
r$1(e$1, t$2 || {}, function(e$2, r$2) {
|
|
163
|
+
if (e$2) {
|
|
164
|
+
if (e$2.code === "EACCES" || t$2 && t$2.ignoreErrors) {
|
|
165
|
+
e$2 = null;
|
|
166
|
+
r$2 = false;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
n$1(e$2, r$2);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
function a$1(e$1, t$2) {
|
|
173
|
+
try {
|
|
174
|
+
return r$1.sync(e$1, t$2 || {});
|
|
175
|
+
} catch (e$2) {
|
|
176
|
+
if (t$2 && t$2.ignoreErrors || e$2.code === "EACCES") return false;
|
|
177
|
+
else throw e$2;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
var O = h((exports$1, t$1) => {
|
|
182
|
+
const n$1 = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
183
|
+
const r$1 = v("path");
|
|
184
|
+
const i$1 = n$1 ? ";" : ":";
|
|
185
|
+
const a$1 = D();
|
|
186
|
+
const o$1 = (e$1) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e$1}`), { code: "ENOENT" });
|
|
187
|
+
const s$1 = (e$1, t$2) => {
|
|
188
|
+
const r$2 = t$2.colon || i$1;
|
|
189
|
+
const a$2 = e$1.match(/\//) || n$1 && e$1.match(/\\/) ? [""] : [...n$1 ? [process.cwd()] : [], ...(t$2.path || process.env.PATH || "").split(r$2)];
|
|
190
|
+
const o$2 = n$1 ? t$2.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
191
|
+
const s$2 = n$1 ? o$2.split(r$2) : [""];
|
|
192
|
+
if (n$1) {
|
|
193
|
+
if (e$1.indexOf(".") !== -1 && s$2[0] !== "") s$2.unshift("");
|
|
194
|
+
}
|
|
195
|
+
return {
|
|
196
|
+
pathEnv: a$2,
|
|
197
|
+
pathExt: s$2,
|
|
198
|
+
pathExtExe: o$2
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
const c$1 = (e$1, t$2, n$2) => {
|
|
202
|
+
if (typeof t$2 === "function") {
|
|
203
|
+
n$2 = t$2;
|
|
204
|
+
t$2 = {};
|
|
205
|
+
}
|
|
206
|
+
if (!t$2) t$2 = {};
|
|
207
|
+
const { pathEnv: i$2, pathExt: c$2, pathExtExe: l$2 } = s$1(e$1, t$2);
|
|
208
|
+
const u$1 = [];
|
|
209
|
+
const d$1 = (n$3) => new Promise((a$2, s$2) => {
|
|
210
|
+
if (n$3 === i$2.length) return t$2.all && u$1.length ? a$2(u$1) : s$2(o$1(e$1));
|
|
211
|
+
const c$3 = i$2[n$3];
|
|
212
|
+
const l$3 = /^".*"$/.test(c$3) ? c$3.slice(1, -1) : c$3;
|
|
213
|
+
const d$2 = r$1.join(l$3, e$1);
|
|
214
|
+
a$2(f$1(!l$3 && /^\.[\\\/]/.test(e$1) ? e$1.slice(0, 2) + d$2 : d$2, n$3, 0));
|
|
215
|
+
});
|
|
216
|
+
const f$1 = (e$2, n$3, r$2) => new Promise((i$3, o$2) => {
|
|
217
|
+
if (r$2 === c$2.length) return i$3(d$1(n$3 + 1));
|
|
218
|
+
const s$2 = c$2[r$2];
|
|
219
|
+
a$1(e$2 + s$2, { pathExt: l$2 }, (a$2, o$3) => {
|
|
220
|
+
if (!a$2 && o$3) if (t$2.all) u$1.push(e$2 + s$2);
|
|
221
|
+
else return i$3(e$2 + s$2);
|
|
222
|
+
return i$3(f$1(e$2, n$3, r$2 + 1));
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
return n$2 ? d$1(0).then((e$2) => n$2(null, e$2), n$2) : d$1(0);
|
|
226
|
+
};
|
|
227
|
+
const l$1 = (e$1, t$2) => {
|
|
228
|
+
t$2 = t$2 || {};
|
|
229
|
+
const { pathEnv: n$2, pathExt: i$2, pathExtExe: c$2 } = s$1(e$1, t$2);
|
|
230
|
+
const l$2 = [];
|
|
231
|
+
for (let o$2 = 0; o$2 < n$2.length; o$2++) {
|
|
232
|
+
const s$2 = n$2[o$2];
|
|
233
|
+
const u$1 = /^".*"$/.test(s$2) ? s$2.slice(1, -1) : s$2;
|
|
234
|
+
const d$1 = r$1.join(u$1, e$1);
|
|
235
|
+
const f$1 = !u$1 && /^\.[\\\/]/.test(e$1) ? e$1.slice(0, 2) + d$1 : d$1;
|
|
236
|
+
for (let e$2 = 0; e$2 < i$2.length; e$2++) {
|
|
237
|
+
const n$3 = f$1 + i$2[e$2];
|
|
238
|
+
try {
|
|
239
|
+
if (a$1.sync(n$3, { pathExt: c$2 })) if (t$2.all) l$2.push(n$3);
|
|
240
|
+
else return n$3;
|
|
241
|
+
} catch (e$3) {}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
if (t$2.all && l$2.length) return l$2;
|
|
245
|
+
if (t$2.nothrow) return null;
|
|
246
|
+
throw o$1(e$1);
|
|
247
|
+
};
|
|
248
|
+
t$1.exports = c$1;
|
|
249
|
+
c$1.sync = l$1;
|
|
250
|
+
});
|
|
251
|
+
var k = h((exports$1, t$1) => {
|
|
252
|
+
const n$1 = (e$1 = {}) => {
|
|
253
|
+
const t$2 = e$1.env || process.env;
|
|
254
|
+
if ((e$1.platform || process.platform) !== "win32") return "PATH";
|
|
255
|
+
return Object.keys(t$2).reverse().find((e$2) => e$2.toUpperCase() === "PATH") || "Path";
|
|
256
|
+
};
|
|
257
|
+
t$1.exports = n$1;
|
|
258
|
+
t$1.exports.default = n$1;
|
|
259
|
+
});
|
|
260
|
+
var A = h((exports$1, t$1) => {
|
|
261
|
+
const n$1 = v("path");
|
|
262
|
+
const r$1 = O();
|
|
263
|
+
const i$1 = k();
|
|
264
|
+
function a$1(e$1, t$2) {
|
|
265
|
+
const a$2 = e$1.options.env || process.env;
|
|
266
|
+
const o$2 = process.cwd();
|
|
267
|
+
const s$1 = e$1.options.cwd != null;
|
|
268
|
+
const c$1 = s$1 && process.chdir !== void 0 && !process.chdir.disabled;
|
|
269
|
+
if (c$1) try {
|
|
270
|
+
process.chdir(e$1.options.cwd);
|
|
271
|
+
} catch (e$2) {}
|
|
272
|
+
let l$1;
|
|
273
|
+
try {
|
|
274
|
+
l$1 = r$1.sync(e$1.command, {
|
|
275
|
+
path: a$2[i$1({ env: a$2 })],
|
|
276
|
+
pathExt: t$2 ? n$1.delimiter : void 0
|
|
277
|
+
});
|
|
278
|
+
} catch (e$2) {} finally {
|
|
279
|
+
if (c$1) process.chdir(o$2);
|
|
280
|
+
}
|
|
281
|
+
if (l$1) l$1 = n$1.resolve(s$1 ? e$1.options.cwd : "", l$1);
|
|
282
|
+
return l$1;
|
|
283
|
+
}
|
|
284
|
+
function o$1(e$1) {
|
|
285
|
+
return a$1(e$1) || a$1(e$1, true);
|
|
286
|
+
}
|
|
287
|
+
t$1.exports = o$1;
|
|
288
|
+
});
|
|
289
|
+
var j = h((exports$1, t$1) => {
|
|
290
|
+
const n$1 = /([()\][%!^"`<>&|;, *?])/g;
|
|
291
|
+
function r$1(e$1) {
|
|
292
|
+
e$1 = e$1.replace(n$1, "^$1");
|
|
293
|
+
return e$1;
|
|
294
|
+
}
|
|
295
|
+
function i$1(e$1, t$2) {
|
|
296
|
+
e$1 = `${e$1}`;
|
|
297
|
+
e$1 = e$1.replace(/(\\*)"/g, "$1$1\\\"");
|
|
298
|
+
e$1 = e$1.replace(/(\\*)$/, "$1$1");
|
|
299
|
+
e$1 = `"${e$1}"`;
|
|
300
|
+
e$1 = e$1.replace(n$1, "^$1");
|
|
301
|
+
if (t$2) e$1 = e$1.replace(n$1, "^$1");
|
|
302
|
+
return e$1;
|
|
303
|
+
}
|
|
304
|
+
t$1.exports.command = r$1;
|
|
305
|
+
t$1.exports.argument = i$1;
|
|
306
|
+
});
|
|
307
|
+
var M = h((exports$1, t$1) => {
|
|
308
|
+
t$1.exports = /^#!(.*)/;
|
|
309
|
+
});
|
|
310
|
+
var N = h((exports$1, t$1) => {
|
|
311
|
+
const n$1 = M();
|
|
312
|
+
t$1.exports = (e$1 = "") => {
|
|
313
|
+
const t$2 = e$1.match(n$1);
|
|
314
|
+
if (!t$2) return null;
|
|
315
|
+
const [r$1, i$1] = t$2[0].replace(/#! ?/, "").split(" ");
|
|
316
|
+
const a$1 = r$1.split("/").pop();
|
|
317
|
+
if (a$1 === "env") return i$1;
|
|
318
|
+
return i$1 ? `${a$1} ${i$1}` : a$1;
|
|
319
|
+
};
|
|
320
|
+
});
|
|
321
|
+
var P = h((exports$1, t$1) => {
|
|
322
|
+
const n$1 = v("fs");
|
|
323
|
+
const r$1 = N();
|
|
324
|
+
function i$1(e$1) {
|
|
325
|
+
const t$2 = 150;
|
|
326
|
+
const i$2 = Buffer.alloc(t$2);
|
|
327
|
+
let a$1;
|
|
328
|
+
try {
|
|
329
|
+
a$1 = n$1.openSync(e$1, "r");
|
|
330
|
+
n$1.readSync(a$1, i$2, 0, t$2, 0);
|
|
331
|
+
n$1.closeSync(a$1);
|
|
332
|
+
} catch (e$2) {}
|
|
333
|
+
return r$1(i$2.toString());
|
|
334
|
+
}
|
|
335
|
+
t$1.exports = i$1;
|
|
336
|
+
});
|
|
337
|
+
var F = h((exports$1, t$1) => {
|
|
338
|
+
const n$1 = v("path");
|
|
339
|
+
const r$1 = A();
|
|
340
|
+
const i$1 = j();
|
|
341
|
+
const a$1 = P();
|
|
342
|
+
const o$1 = process.platform === "win32";
|
|
343
|
+
const s$1 = /\.(?:com|exe)$/i;
|
|
344
|
+
const c$1 = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
345
|
+
function l$1(e$1) {
|
|
346
|
+
e$1.file = r$1(e$1);
|
|
347
|
+
const t$2 = e$1.file && a$1(e$1.file);
|
|
348
|
+
if (t$2) {
|
|
349
|
+
e$1.args.unshift(e$1.file);
|
|
350
|
+
e$1.command = t$2;
|
|
351
|
+
return r$1(e$1);
|
|
352
|
+
}
|
|
353
|
+
return e$1.file;
|
|
354
|
+
}
|
|
355
|
+
function u$1(e$1) {
|
|
356
|
+
if (!o$1) return e$1;
|
|
357
|
+
const t$2 = l$1(e$1);
|
|
358
|
+
const r$2 = !s$1.test(t$2);
|
|
359
|
+
if (e$1.options.forceShell || r$2) {
|
|
360
|
+
const r$3 = c$1.test(t$2);
|
|
361
|
+
e$1.command = n$1.normalize(e$1.command);
|
|
362
|
+
e$1.command = i$1.command(e$1.command);
|
|
363
|
+
e$1.args = e$1.args.map((e$2) => i$1.argument(e$2, r$3));
|
|
364
|
+
e$1.args = [
|
|
365
|
+
"/d",
|
|
366
|
+
"/s",
|
|
367
|
+
"/c",
|
|
368
|
+
`"${[e$1.command].concat(e$1.args).join(" ")}"`
|
|
369
|
+
];
|
|
370
|
+
e$1.command = process.env.comspec || "cmd.exe";
|
|
371
|
+
e$1.options.windowsVerbatimArguments = true;
|
|
372
|
+
}
|
|
373
|
+
return e$1;
|
|
374
|
+
}
|
|
375
|
+
function d$1(e$1, t$2, n$2) {
|
|
376
|
+
if (t$2 && !Array.isArray(t$2)) {
|
|
377
|
+
n$2 = t$2;
|
|
378
|
+
t$2 = null;
|
|
379
|
+
}
|
|
380
|
+
t$2 = t$2 ? t$2.slice(0) : [];
|
|
381
|
+
n$2 = Object.assign({}, n$2);
|
|
382
|
+
const r$2 = {
|
|
383
|
+
command: e$1,
|
|
384
|
+
args: t$2,
|
|
385
|
+
options: n$2,
|
|
386
|
+
file: void 0,
|
|
387
|
+
original: {
|
|
388
|
+
command: e$1,
|
|
389
|
+
args: t$2
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
return n$2.shell ? r$2 : u$1(r$2);
|
|
393
|
+
}
|
|
394
|
+
t$1.exports = d$1;
|
|
395
|
+
});
|
|
396
|
+
var I = h((exports$1, t$1) => {
|
|
397
|
+
const n$1 = process.platform === "win32";
|
|
398
|
+
function r$1(e$1, t$2) {
|
|
399
|
+
return Object.assign(/* @__PURE__ */ new Error(`${t$2} ${e$1.command} ENOENT`), {
|
|
400
|
+
code: "ENOENT",
|
|
401
|
+
errno: "ENOENT",
|
|
402
|
+
syscall: `${t$2} ${e$1.command}`,
|
|
403
|
+
path: e$1.command,
|
|
404
|
+
spawnargs: e$1.args
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
function i$1(e$1, t$2) {
|
|
408
|
+
if (!n$1) return;
|
|
409
|
+
const r$2 = e$1.emit;
|
|
410
|
+
e$1.emit = function(n$2, i$2) {
|
|
411
|
+
if (n$2 === "exit") {
|
|
412
|
+
const n$3 = a$1(i$2, t$2, "spawn");
|
|
413
|
+
if (n$3) return r$2.call(e$1, "error", n$3);
|
|
414
|
+
}
|
|
415
|
+
return r$2.apply(e$1, arguments);
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
function a$1(e$1, t$2) {
|
|
419
|
+
if (n$1 && e$1 === 1 && !t$2.file) return r$1(t$2.original, "spawn");
|
|
420
|
+
return null;
|
|
421
|
+
}
|
|
422
|
+
function o$1(e$1, t$2) {
|
|
423
|
+
if (n$1 && e$1 === 1 && !t$2.file) return r$1(t$2.original, "spawnSync");
|
|
424
|
+
return null;
|
|
425
|
+
}
|
|
426
|
+
t$1.exports = {
|
|
427
|
+
hookChildProcess: i$1,
|
|
428
|
+
verifyENOENT: a$1,
|
|
429
|
+
verifyENOENTSync: o$1,
|
|
430
|
+
notFoundError: r$1
|
|
431
|
+
};
|
|
432
|
+
});
|
|
433
|
+
var R = _(h((exports$1, t$1) => {
|
|
434
|
+
const n$1 = v("child_process");
|
|
435
|
+
const r$1 = F();
|
|
436
|
+
const i$1 = I();
|
|
437
|
+
function a$1(e$1, t$2, a$2) {
|
|
438
|
+
const o$2 = r$1(e$1, t$2, a$2);
|
|
439
|
+
const s$1 = n$1.spawn(o$2.command, o$2.args, o$2.options);
|
|
440
|
+
i$1.hookChildProcess(s$1, o$2);
|
|
441
|
+
return s$1;
|
|
442
|
+
}
|
|
443
|
+
function o$1(e$1, t$2, a$2) {
|
|
444
|
+
const o$2 = r$1(e$1, t$2, a$2);
|
|
445
|
+
const s$1 = n$1.spawnSync(o$2.command, o$2.args, o$2.options);
|
|
446
|
+
s$1.error = s$1.error || i$1.verifyENOENTSync(s$1.status, o$2);
|
|
447
|
+
return s$1;
|
|
448
|
+
}
|
|
449
|
+
t$1.exports = a$1;
|
|
450
|
+
t$1.exports.spawn = a$1;
|
|
451
|
+
t$1.exports.sync = o$1;
|
|
452
|
+
t$1.exports._parse = r$1;
|
|
453
|
+
t$1.exports._enoent = i$1;
|
|
454
|
+
})(), 1);
|
|
455
|
+
var z = class extends Error {
|
|
456
|
+
result;
|
|
457
|
+
output;
|
|
458
|
+
get exitCode() {
|
|
459
|
+
if (this.result.exitCode !== null) return this.result.exitCode;
|
|
460
|
+
}
|
|
461
|
+
constructor(e$1, t$1) {
|
|
462
|
+
super(`Process exited with non-zero status (${e$1.exitCode})`);
|
|
463
|
+
this.result = e$1;
|
|
464
|
+
this.output = t$1;
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
const B = {
|
|
468
|
+
timeout: void 0,
|
|
469
|
+
persist: false
|
|
470
|
+
};
|
|
471
|
+
const V = { windowsHide: true };
|
|
472
|
+
function H(e$1, t$1) {
|
|
473
|
+
return {
|
|
474
|
+
command: (0, node_path.normalize)(e$1),
|
|
475
|
+
args: t$1 ?? []
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
function U(e$1) {
|
|
479
|
+
const t$1 = new AbortController();
|
|
480
|
+
for (const n$1 of e$1) {
|
|
481
|
+
if (n$1.aborted) {
|
|
482
|
+
t$1.abort();
|
|
483
|
+
return n$1;
|
|
484
|
+
}
|
|
485
|
+
const e$2 = () => {
|
|
486
|
+
t$1.abort(n$1.reason);
|
|
487
|
+
};
|
|
488
|
+
n$1.addEventListener("abort", e$2, { signal: t$1.signal });
|
|
489
|
+
}
|
|
490
|
+
return t$1.signal;
|
|
491
|
+
}
|
|
492
|
+
async function W(e$1) {
|
|
493
|
+
let t$1 = "";
|
|
494
|
+
for await (const n$1 of e$1) t$1 += n$1.toString();
|
|
495
|
+
return t$1;
|
|
496
|
+
}
|
|
497
|
+
var G = class {
|
|
498
|
+
_process;
|
|
499
|
+
_aborted = false;
|
|
500
|
+
_options;
|
|
501
|
+
_command;
|
|
502
|
+
_args;
|
|
503
|
+
_resolveClose;
|
|
504
|
+
_processClosed;
|
|
505
|
+
_thrownError;
|
|
506
|
+
get process() {
|
|
507
|
+
return this._process;
|
|
508
|
+
}
|
|
509
|
+
get pid() {
|
|
510
|
+
return this._process?.pid;
|
|
511
|
+
}
|
|
512
|
+
get exitCode() {
|
|
513
|
+
if (this._process && this._process.exitCode !== null) return this._process.exitCode;
|
|
514
|
+
}
|
|
515
|
+
constructor(e$1, t$1, n$1) {
|
|
516
|
+
this._options = {
|
|
517
|
+
...B,
|
|
518
|
+
...n$1
|
|
519
|
+
};
|
|
520
|
+
this._command = e$1;
|
|
521
|
+
this._args = t$1 ?? [];
|
|
522
|
+
this._processClosed = new Promise((e$2) => {
|
|
523
|
+
this._resolveClose = e$2;
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
kill(e$1) {
|
|
527
|
+
return this._process?.kill(e$1) === true;
|
|
528
|
+
}
|
|
529
|
+
get aborted() {
|
|
530
|
+
return this._aborted;
|
|
531
|
+
}
|
|
532
|
+
get killed() {
|
|
533
|
+
return this._process?.killed === true;
|
|
534
|
+
}
|
|
535
|
+
pipe(e$1, t$1, n$1) {
|
|
536
|
+
return q(e$1, t$1, {
|
|
537
|
+
...n$1,
|
|
538
|
+
stdin: this
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
async *[Symbol.asyncIterator]() {
|
|
542
|
+
const e$1 = this._process;
|
|
543
|
+
if (!e$1) return;
|
|
544
|
+
const t$1 = [];
|
|
545
|
+
if (this._streamErr) t$1.push(this._streamErr);
|
|
546
|
+
if (this._streamOut) t$1.push(this._streamOut);
|
|
547
|
+
const n$1 = w(t$1);
|
|
548
|
+
const r$1 = node_readline.default.createInterface({ input: n$1 });
|
|
549
|
+
for await (const e$2 of r$1) yield e$2.toString();
|
|
550
|
+
await this._processClosed;
|
|
551
|
+
e$1.removeAllListeners();
|
|
552
|
+
if (this._thrownError) throw this._thrownError;
|
|
553
|
+
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this);
|
|
554
|
+
}
|
|
555
|
+
async _waitForOutput() {
|
|
556
|
+
const e$1 = this._process;
|
|
557
|
+
if (!e$1) throw new Error("No process was started");
|
|
558
|
+
const [t$1, n$1] = await Promise.all([this._streamOut ? W(this._streamOut) : "", this._streamErr ? W(this._streamErr) : ""]);
|
|
559
|
+
await this._processClosed;
|
|
560
|
+
if (this._options?.stdin) await this._options.stdin;
|
|
561
|
+
e$1.removeAllListeners();
|
|
562
|
+
if (this._thrownError) throw this._thrownError;
|
|
563
|
+
const r$1 = {
|
|
564
|
+
stderr: n$1,
|
|
565
|
+
stdout: t$1,
|
|
566
|
+
exitCode: this.exitCode
|
|
567
|
+
};
|
|
568
|
+
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r$1);
|
|
569
|
+
return r$1;
|
|
570
|
+
}
|
|
571
|
+
then(e$1, t$1) {
|
|
572
|
+
return this._waitForOutput().then(e$1, t$1);
|
|
573
|
+
}
|
|
574
|
+
_streamOut;
|
|
575
|
+
_streamErr;
|
|
576
|
+
spawn() {
|
|
577
|
+
const e$1 = (0, node_process.cwd)();
|
|
578
|
+
const n$1 = this._options;
|
|
579
|
+
const r$1 = {
|
|
580
|
+
...V,
|
|
581
|
+
...n$1.nodeOptions
|
|
582
|
+
};
|
|
583
|
+
const i$1 = [];
|
|
584
|
+
this._resetState();
|
|
585
|
+
if (n$1.timeout !== void 0) i$1.push(AbortSignal.timeout(n$1.timeout));
|
|
586
|
+
if (n$1.signal !== void 0) i$1.push(n$1.signal);
|
|
587
|
+
if (n$1.persist === true) r$1.detached = true;
|
|
588
|
+
if (i$1.length > 0) r$1.signal = U(i$1);
|
|
589
|
+
r$1.env = C(e$1, r$1.env);
|
|
590
|
+
const { command: a$1, args: s$1 } = H(this._command, this._args);
|
|
591
|
+
const c$1 = (0, R._parse)(a$1, s$1, r$1);
|
|
592
|
+
const l$1 = (0, node_child_process.spawn)(c$1.command, c$1.args, c$1.options);
|
|
593
|
+
if (l$1.stderr) this._streamErr = l$1.stderr;
|
|
594
|
+
if (l$1.stdout) this._streamOut = l$1.stdout;
|
|
595
|
+
this._process = l$1;
|
|
596
|
+
l$1.once("error", this._onError);
|
|
597
|
+
l$1.once("close", this._onClose);
|
|
598
|
+
if (n$1.stdin !== void 0 && l$1.stdin && n$1.stdin.process) {
|
|
599
|
+
const { stdout: e$2 } = n$1.stdin.process;
|
|
600
|
+
if (e$2) e$2.pipe(l$1.stdin);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
_resetState() {
|
|
604
|
+
this._aborted = false;
|
|
605
|
+
this._processClosed = new Promise((e$1) => {
|
|
606
|
+
this._resolveClose = e$1;
|
|
607
|
+
});
|
|
608
|
+
this._thrownError = void 0;
|
|
609
|
+
}
|
|
610
|
+
_onError = (e$1) => {
|
|
611
|
+
if (e$1.name === "AbortError" && (!(e$1.cause instanceof Error) || e$1.cause.name !== "TimeoutError")) {
|
|
612
|
+
this._aborted = true;
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
this._thrownError = e$1;
|
|
616
|
+
};
|
|
617
|
+
_onClose = () => {
|
|
618
|
+
if (this._resolveClose) this._resolveClose();
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
const K = (e$1, t$1, n$1) => {
|
|
622
|
+
const r$1 = new G(e$1, t$1, n$1);
|
|
623
|
+
r$1.spawn();
|
|
624
|
+
return r$1;
|
|
625
|
+
};
|
|
626
|
+
const q = K;
|
|
627
|
+
|
|
628
|
+
//#endregion
|
|
629
|
+
exports.K = K;
|