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