@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
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
|
|
2
2
|
import { __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
|
|
3
3
|
import "./types/index.mjs";
|
|
4
|
+
import { o } from "./node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
5
|
+
import { t } from "./node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs";
|
|
4
6
|
import { BaseEnv, BaseSecrets, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./helpers/reflect.mjs";
|
|
5
7
|
import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./helpers/persistence.mjs";
|
|
6
8
|
import { createTemplateReflection } from "./helpers/template-helpers.mjs";
|
|
7
9
|
import { formatEnvField, removeEnvPrefix } from "./helpers/source-file-env.mjs";
|
|
10
|
+
import { defu } from "./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs";
|
|
8
11
|
import { loadEnv, loadEnvFromContext } from "./helpers/load.mjs";
|
|
9
12
|
import { createReflectionResource } from "./helpers/create-reflection-resource.mjs";
|
|
10
13
|
import "./helpers/index.mjs";
|
|
@@ -14,19 +17,16 @@ import { EnvBuiltin, EnvTypeDefinition } from "./components/env.mjs";
|
|
|
14
17
|
import "./components/index.mjs";
|
|
15
18
|
import { envBabelPlugin } from "./babel/plugin.mjs";
|
|
16
19
|
import "./babel/index.mjs";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import src_default$3 from "./plugin-babel/src/index.mjs";
|
|
20
|
+
import { n } from "./node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs";
|
|
21
|
+
import { e } from "./node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.mjs";
|
|
20
22
|
import { ReflectionClass, ReflectionKind, stringifyType } from "@powerlines/deepkit/vendor/type";
|
|
21
23
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
22
|
-
import defu$1 from "defu";
|
|
23
|
-
import { parseTypeDefinition } from "@stryke/convert/parse-type-definition";
|
|
24
|
-
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
25
|
-
import { toArray } from "@stryke/convert/to-array";
|
|
26
|
-
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
27
24
|
import { ENV_PREFIXES } from "@stryke/env/types";
|
|
28
25
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
29
|
-
import {
|
|
26
|
+
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
27
|
+
import alloy from "@powerlines/plugin-alloy";
|
|
28
|
+
import automd from "@powerlines/plugin-automd";
|
|
29
|
+
import babel from "@powerlines/plugin-babel";
|
|
30
30
|
import { existsSync } from "@stryke/fs/exists";
|
|
31
31
|
import { createDirectory } from "@stryke/fs/helpers";
|
|
32
32
|
import { constantCase } from "@stryke/string-format/constant-case";
|
|
@@ -37,36 +37,36 @@ import { constantCase } from "@stryke/string-format/constant-case";
|
|
|
37
37
|
*/
|
|
38
38
|
const plugin = (options = {}) => {
|
|
39
39
|
return [
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
alloy(options.alloy),
|
|
41
|
+
babel(options.babel),
|
|
42
42
|
{
|
|
43
43
|
name: "env",
|
|
44
44
|
async config() {
|
|
45
45
|
this.log(LogLevelLabel.TRACE, "Providing default configuration for the Powerlines `env` build plugin.");
|
|
46
46
|
const config = {
|
|
47
|
-
env: defu
|
|
47
|
+
env: defu(options, {
|
|
48
48
|
types: {},
|
|
49
49
|
prefix: []
|
|
50
50
|
}),
|
|
51
51
|
transform: { babel: { plugins: [envBabelPlugin] } }
|
|
52
52
|
};
|
|
53
|
-
if (config.env.types) config.env.types =
|
|
53
|
+
if (config.env.types) config.env.types = n(config.env.types);
|
|
54
54
|
else {
|
|
55
55
|
this.log(LogLevelLabel.WARN, "The `env.types` configuration parameter was not provided. Please ensure this is expected.");
|
|
56
56
|
const envDefaultTypeDefinition = await getEnvDefaultTypeDefinition(this);
|
|
57
|
-
config.env.types =
|
|
57
|
+
config.env.types = n(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
|
|
58
58
|
}
|
|
59
|
-
if (config.env.secrets) config.env.secrets =
|
|
59
|
+
if (config.env.secrets) config.env.secrets = n(config.env.secrets);
|
|
60
60
|
else {
|
|
61
61
|
const secretsDefaultTypeDefinition = await getSecretsDefaultTypeDefinition(this);
|
|
62
|
-
config.env.secrets =
|
|
62
|
+
config.env.secrets = n(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
|
|
63
63
|
}
|
|
64
|
-
config.env.prefix =
|
|
64
|
+
config.env.prefix = e(config.env.prefix ?? []).reduce((ret, prefix) => {
|
|
65
65
|
const formattedPrefix = constantCase(prefix);
|
|
66
66
|
if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
|
|
67
67
|
return ret;
|
|
68
68
|
}, [...ENV_PREFIXES, "POWERLINES_"]);
|
|
69
|
-
config.env.prefix =
|
|
69
|
+
config.env.prefix = e(config.env.prefix).reduce((ret, prefix) => {
|
|
70
70
|
if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
|
|
71
71
|
return ret;
|
|
72
72
|
}, []);
|
|
@@ -75,7 +75,7 @@ const plugin = (options = {}) => {
|
|
|
75
75
|
async configResolved() {
|
|
76
76
|
this.log(LogLevelLabel.TRACE, `Environment plugin configuration has been resolved for the Powerlines project.`);
|
|
77
77
|
this.config.env.inject ??= this.config.projectType === "application";
|
|
78
|
-
this.env = defu
|
|
78
|
+
this.env = defu({ parsed: await loadEnv(this, this.config.env) }, this.env ?? {}, {
|
|
79
79
|
types: { env: {} },
|
|
80
80
|
used: {
|
|
81
81
|
env: {},
|
|
@@ -91,10 +91,10 @@ const plugin = (options = {}) => {
|
|
|
91
91
|
if (existsSync(getEnvTypeReflectionsPath(this, "secrets"))) this.env.types.secrets = await readEnvTypeReflection(this, "secrets");
|
|
92
92
|
if (existsSync(getEnvReflectionsPath(this, "secrets"))) this.env.used.secrets = await readSecretsReflection(this);
|
|
93
93
|
} else {
|
|
94
|
-
this.env.types.env = await reflectEnv(this, this.config.env.types?.file ?
|
|
94
|
+
this.env.types.env = await reflectEnv(this, this.config.env.types?.file ? t(this.config.env.types?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.types?.file : o(this.config.projectRoot, this.config.env.types?.file) : void 0, this.config.env.types?.name);
|
|
95
95
|
if (!this.env.types.env) throw new Error("Failed to find the environment configuration type reflection in the context.");
|
|
96
96
|
await writeEnvTypeReflection(this, this.env.types.env, "env");
|
|
97
|
-
this.env.types.secrets = await reflectSecrets(this, this.config.env.secrets?.file ?
|
|
97
|
+
this.env.types.secrets = await reflectSecrets(this, this.config.env.secrets?.file ? t(this.config.env.secrets?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.secrets?.file : o(this.config.projectRoot, this.config.env.secrets?.file) : void 0, this.config.env.secrets?.name);
|
|
98
98
|
if (!this.env.types.secrets) throw new Error("Failed to find the secrets configuration type reflection in the context.");
|
|
99
99
|
await writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
|
|
100
100
|
this.log(LogLevelLabel.TRACE, `Resolved ${this.env.types.env.getProperties().length ?? 0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length ?? 0} secret configuration parameters`);
|
|
@@ -135,10 +135,10 @@ const plugin = (options = {}) => {
|
|
|
135
135
|
},
|
|
136
136
|
async docs() {
|
|
137
137
|
this.log(LogLevelLabel.TRACE, "Writing Environment documentation for the Powerlines project artifacts.");
|
|
138
|
-
const outputPath =
|
|
138
|
+
const outputPath = o(this.config.projectRoot, "docs", "generated");
|
|
139
139
|
if (!existsSync(outputPath)) await createDirectory(outputPath);
|
|
140
140
|
const reflection = await readEnvTypeReflection(this, "env");
|
|
141
|
-
const envDocFile =
|
|
141
|
+
const envDocFile = o(outputPath, "env.md");
|
|
142
142
|
this.log(LogLevelLabel.TRACE, `Documenting environment variables configuration in "${envDocFile}"`);
|
|
143
143
|
await this.fs.write(envDocFile, `<!-- Generated by ${titleCase(this.config.framework) || "Powerlines"} -->
|
|
144
144
|
|
|
@@ -160,7 +160,7 @@ ${reflection.getProperties().filter((property) => property.getNameAsString() !==
|
|
|
160
160
|
{
|
|
161
161
|
name: "env:automd-generator",
|
|
162
162
|
config() {
|
|
163
|
-
return { automd: defu
|
|
163
|
+
return { automd: defu(options.automd ?? {}, { generators: { "env": env(this) } }) };
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
{
|
|
@@ -169,7 +169,7 @@ ${reflection.getProperties().filter((property) => property.getNameAsString() !==
|
|
|
169
169
|
return { envPrefix: this.config?.env?.prefix };
|
|
170
170
|
} }
|
|
171
171
|
},
|
|
172
|
-
|
|
172
|
+
automd(options.automd)
|
|
173
173
|
];
|
|
174
174
|
};
|
|
175
175
|
var src_default = plugin;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_is_object = require('./type-checks/src/is-object.cjs');
|
|
2
|
+
const require_is_string = require('./type-checks/src/is-string.cjs');
|
|
3
|
+
require('./type-checks/src/index.cjs');
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs
|
|
6
|
+
const n = (n$1) => {
|
|
7
|
+
if (require_is_string.e(n$1)) {
|
|
8
|
+
if (n$1.includes(`:`)) {
|
|
9
|
+
let e$1 = n$1.split(`:`);
|
|
10
|
+
if (e$1.length > 1 && e$1[0]) return {
|
|
11
|
+
file: e$1[0],
|
|
12
|
+
name: e$1[1]
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
if (n$1.includes(`#`)) {
|
|
16
|
+
let e$1 = n$1.split(`#`);
|
|
17
|
+
if (e$1.length > 1 && e$1[0]) return {
|
|
18
|
+
file: e$1[0],
|
|
19
|
+
name: e$1[1]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return { file: n$1 };
|
|
23
|
+
}
|
|
24
|
+
if (require_is_object.t(n$1)) return {
|
|
25
|
+
file: n$1.file,
|
|
26
|
+
name: n$1.name
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.n = n;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { t } from "./type-checks/src/is-object.mjs";
|
|
2
|
+
import { e } from "./type-checks/src/is-string.mjs";
|
|
3
|
+
import "./type-checks/src/index.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs
|
|
6
|
+
const n = (n$1) => {
|
|
7
|
+
if (e(n$1)) {
|
|
8
|
+
if (n$1.includes(`:`)) {
|
|
9
|
+
let e$1 = n$1.split(`:`);
|
|
10
|
+
if (e$1.length > 1 && e$1[0]) return {
|
|
11
|
+
file: e$1[0],
|
|
12
|
+
name: e$1[1]
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
if (n$1.includes(`#`)) {
|
|
16
|
+
let e$1 = n$1.split(`#`);
|
|
17
|
+
if (e$1.length > 1 && e$1[0]) return {
|
|
18
|
+
file: e$1[0],
|
|
19
|
+
name: e$1[1]
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return { file: n$1 };
|
|
23
|
+
}
|
|
24
|
+
if (t(n$1)) return {
|
|
25
|
+
file: n$1.file,
|
|
26
|
+
name: n$1.name
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { n };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs
|
|
3
|
+
const e = (e$1) => e$1 == null ? e$1 === void 0 ? `[object Undefined]` : `[object Null]` : Object.prototype.toString.call(e$1);
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
exports.e = e;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs
|
|
2
|
+
const e = (e$1) => e$1 == null ? e$1 === void 0 ? `[object Undefined]` : `[object Null]` : Object.prototype.toString.call(e$1);
|
|
3
|
+
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require('./type-detect.cjs');
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_is_plain_object = require('./is-plain-object.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs
|
|
4
|
+
const t = (t$1) => {
|
|
5
|
+
try {
|
|
6
|
+
return typeof t$1 == `object` || !!t$1 && t$1?.constructor === Object || require_is_plain_object.n(t$1);
|
|
7
|
+
} catch {
|
|
8
|
+
return !1;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.t = t;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { n } from "./is-plain-object.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs
|
|
4
|
+
const t = (t$1) => {
|
|
5
|
+
try {
|
|
6
|
+
return typeof t$1 == `object` || !!t$1 && t$1?.constructor === Object || n(t$1);
|
|
7
|
+
} catch {
|
|
8
|
+
return !1;
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { t };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_get_object_tag = require('./get-object-tag.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs
|
|
4
|
+
const t = (e$1) => typeof e$1 == `object` && !!e$1, n = (n$1) => {
|
|
5
|
+
if (!t(n$1) || require_get_object_tag.e(n$1) !== `[object Object]`) return !1;
|
|
6
|
+
if (Object.getPrototypeOf(n$1) === null) return !0;
|
|
7
|
+
let r = n$1;
|
|
8
|
+
for (; Object.getPrototypeOf(r) !== null;) r = Object.getPrototypeOf(r);
|
|
9
|
+
return Object.getPrototypeOf(n$1) === r;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.n = n;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { e } from "./get-object-tag.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs
|
|
4
|
+
const t = (e$1) => typeof e$1 == `object` && !!e$1, n = (n$1) => {
|
|
5
|
+
if (!t(n$1) || e(n$1) !== `[object Object]`) return !1;
|
|
6
|
+
if (Object.getPrototypeOf(n$1) === null) return !0;
|
|
7
|
+
let r = n$1;
|
|
8
|
+
for (; Object.getPrototypeOf(r) !== null;) r = Object.getPrototypeOf(r);
|
|
9
|
+
return Object.getPrototypeOf(n$1) === r;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs
|
|
3
|
+
const e = (e$1) => {
|
|
4
|
+
try {
|
|
5
|
+
return typeof e$1 == `string`;
|
|
6
|
+
} catch {
|
|
7
|
+
return !1;
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.e = e;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
require('./is-buffer.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs
|
|
4
|
+
((e) => (typeof globalThis == `object` || Object.defineProperty(e, `typeDetectGlobalObject`, {
|
|
5
|
+
get() {
|
|
6
|
+
return this;
|
|
7
|
+
},
|
|
8
|
+
configurable: !0
|
|
9
|
+
}), globalThis))(Object.prototype);
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "./is-buffer.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs
|
|
4
|
+
((e) => (typeof globalThis == `object` || Object.defineProperty(e, `typeDetectGlobalObject`, {
|
|
5
|
+
get() {
|
|
6
|
+
return this;
|
|
7
|
+
},
|
|
8
|
+
configurable: !0
|
|
9
|
+
}), globalThis))(Object.prototype);
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const require_slash = require('./slash.cjs');
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs
|
|
4
|
+
function t$1(t$2, n) {
|
|
5
|
+
let r = require_slash.t(t$2.replaceAll(/\\/g, `/`).replace(/\/*$/, ``))?.toLowerCase(), i = require_slash.t(n.replaceAll(/\\/g, `/`).replace(/\/*$/, ``))?.toLowerCase();
|
|
6
|
+
return t$2 !== n && r !== i && r.startsWith(`${i}/`);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
exports.t = t$1;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { t } from "./slash.mjs";
|
|
2
|
+
|
|
3
|
+
//#region ../../node_modules/.pnpm/@stryke+path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs
|
|
4
|
+
function t$1(t$2, n) {
|
|
5
|
+
let r = t(t$2.replaceAll(/\\/g, `/`).replace(/\/*$/, ``))?.toLowerCase(), i = t(n.replaceAll(/\\/g, `/`).replace(/\/*$/, ``))?.toLowerCase();
|
|
6
|
+
return t$2 !== n && r !== i && r.startsWith(`${i}/`);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t$1 as t };
|
package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const require_regex = require('./regex.cjs');
|
|
2
|
+
const require_slash = require('./slash.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs
|
|
5
|
+
function r$1(t$1) {
|
|
6
|
+
return require_regex.r.test(require_slash.t(t$1));
|
|
7
|
+
}
|
|
8
|
+
function i(e) {
|
|
9
|
+
return r$1(e);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.i = i;
|
package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { r } from "./regex.mjs";
|
|
2
|
+
import { t } from "./slash.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs
|
|
5
|
+
function r$1(t$1) {
|
|
6
|
+
return r.test(t(t$1));
|
|
7
|
+
}
|
|
8
|
+
function i(e) {
|
|
9
|
+
return r$1(e);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i };
|
package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.cjs
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_regex = require('./regex.cjs');
|
|
2
|
+
const require_is_type = require('./is-type.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs
|
|
5
|
+
function i$1(e$1 = ``) {
|
|
6
|
+
return e$1 && e$1.replace(/\\/g, `/`).replace(require_regex.e, (e$2) => e$2.toUpperCase());
|
|
7
|
+
}
|
|
8
|
+
function a(t$1) {
|
|
9
|
+
if (!t$1 || t$1.length === 0) return `.`;
|
|
10
|
+
t$1 = i$1(t$1);
|
|
11
|
+
let a$1 = t$1.match(require_regex.n), o$1 = require_is_type.i(t$1), s = t$1[t$1.length - 1] === `/`;
|
|
12
|
+
return t$1 = c(t$1, !o$1), t$1.length === 0 ? o$1 ? `/` : s ? `./` : `.` : (s && (t$1 += `/`), require_regex.t.test(t$1) && (t$1 += `/`), a$1 ? o$1 ? `//${t$1}` : `//./${t$1}` : o$1 && !require_is_type.i(t$1) ? `/${t$1}` : t$1);
|
|
13
|
+
}
|
|
14
|
+
function o(...e$1) {
|
|
15
|
+
let t$1 = ``;
|
|
16
|
+
for (let n$1 of e$1) if (n$1) if (t$1.length > 0) {
|
|
17
|
+
let e$2 = t$1[t$1.length - 1] === `/`, r = n$1[0] === `/`;
|
|
18
|
+
e$2 && r ? t$1 += n$1.slice(1) : t$1 += e$2 || r ? n$1 : `/${n$1}`;
|
|
19
|
+
} else t$1 += n$1;
|
|
20
|
+
return a(t$1);
|
|
21
|
+
}
|
|
22
|
+
function c(e$1, t$1) {
|
|
23
|
+
let n$1 = ``, r = 0, i$2 = -1, a$1 = 0, o$1 = null;
|
|
24
|
+
for (let s = 0; s <= e$1.length; ++s) {
|
|
25
|
+
if (s < e$1.length) o$1 = e$1[s];
|
|
26
|
+
else if (o$1 === `/`) break;
|
|
27
|
+
else o$1 = `/`;
|
|
28
|
+
if (o$1 === `/`) {
|
|
29
|
+
if (!(i$2 === s - 1 || a$1 === 1)) if (a$1 === 2) {
|
|
30
|
+
if (n$1.length < 2 || r !== 2 || n$1[n$1.length - 1] !== `.` || n$1[n$1.length - 2] !== `.`) {
|
|
31
|
+
if (n$1.length > 2) {
|
|
32
|
+
let e$2 = n$1.lastIndexOf(`/`);
|
|
33
|
+
e$2 === -1 ? (n$1 = ``, r = 0) : (n$1 = n$1.slice(0, e$2), r = n$1.length - 1 - n$1.lastIndexOf(`/`)), i$2 = s, a$1 = 0;
|
|
34
|
+
continue;
|
|
35
|
+
} else if (n$1.length > 0) {
|
|
36
|
+
n$1 = ``, r = 0, i$2 = s, a$1 = 0;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
t$1 && (n$1 += n$1.length > 0 ? `/..` : `..`, r = 2);
|
|
41
|
+
} else n$1.length > 0 ? n$1 += `/${e$1.slice(i$2 + 1, s)}` : n$1 = e$1.slice(i$2 + 1, s), r = s - i$2 - 1;
|
|
42
|
+
i$2 = s, a$1 = 0;
|
|
43
|
+
} else o$1 === `.` && a$1 !== -1 ? ++a$1 : a$1 = -1;
|
|
44
|
+
}
|
|
45
|
+
return n$1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.o = o;
|
package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { e, n, t } from "./regex.mjs";
|
|
2
|
+
import { i } from "./is-type.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/@stryke+path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs
|
|
5
|
+
function i$1(e$1 = ``) {
|
|
6
|
+
return e$1 && e$1.replace(/\\/g, `/`).replace(e, (e$2) => e$2.toUpperCase());
|
|
7
|
+
}
|
|
8
|
+
function a(t$1) {
|
|
9
|
+
if (!t$1 || t$1.length === 0) return `.`;
|
|
10
|
+
t$1 = i$1(t$1);
|
|
11
|
+
let a$1 = t$1.match(n), o$1 = i(t$1), s = t$1[t$1.length - 1] === `/`;
|
|
12
|
+
return t$1 = c(t$1, !o$1), t$1.length === 0 ? o$1 ? `/` : s ? `./` : `.` : (s && (t$1 += `/`), t.test(t$1) && (t$1 += `/`), a$1 ? o$1 ? `//${t$1}` : `//./${t$1}` : o$1 && !i(t$1) ? `/${t$1}` : t$1);
|
|
13
|
+
}
|
|
14
|
+
function o(...e$1) {
|
|
15
|
+
let t$1 = ``;
|
|
16
|
+
for (let n$1 of e$1) if (n$1) if (t$1.length > 0) {
|
|
17
|
+
let e$2 = t$1[t$1.length - 1] === `/`, r = n$1[0] === `/`;
|
|
18
|
+
e$2 && r ? t$1 += n$1.slice(1) : t$1 += e$2 || r ? n$1 : `/${n$1}`;
|
|
19
|
+
} else t$1 += n$1;
|
|
20
|
+
return a(t$1);
|
|
21
|
+
}
|
|
22
|
+
function c(e$1, t$1) {
|
|
23
|
+
let n$1 = ``, r = 0, i$2 = -1, a$1 = 0, o$1 = null;
|
|
24
|
+
for (let s = 0; s <= e$1.length; ++s) {
|
|
25
|
+
if (s < e$1.length) o$1 = e$1[s];
|
|
26
|
+
else if (o$1 === `/`) break;
|
|
27
|
+
else o$1 = `/`;
|
|
28
|
+
if (o$1 === `/`) {
|
|
29
|
+
if (!(i$2 === s - 1 || a$1 === 1)) if (a$1 === 2) {
|
|
30
|
+
if (n$1.length < 2 || r !== 2 || n$1[n$1.length - 1] !== `.` || n$1[n$1.length - 2] !== `.`) {
|
|
31
|
+
if (n$1.length > 2) {
|
|
32
|
+
let e$2 = n$1.lastIndexOf(`/`);
|
|
33
|
+
e$2 === -1 ? (n$1 = ``, r = 0) : (n$1 = n$1.slice(0, e$2), r = n$1.length - 1 - n$1.lastIndexOf(`/`)), i$2 = s, a$1 = 0;
|
|
34
|
+
continue;
|
|
35
|
+
} else if (n$1.length > 0) {
|
|
36
|
+
n$1 = ``, r = 0, i$2 = s, a$1 = 0;
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
t$1 && (n$1 += n$1.length > 0 ? `/..` : `..`, r = 2);
|
|
41
|
+
} else n$1.length > 0 ? n$1 += `/${e$1.slice(i$2 + 1, s)}` : n$1 = e$1.slice(i$2 + 1, s), r = s - i$2 - 1;
|
|
42
|
+
i$2 = s, a$1 = 0;
|
|
43
|
+
} else o$1 === `.` && a$1 !== -1 ? ++a$1 : a$1 = -1;
|
|
44
|
+
}
|
|
45
|
+
return n$1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
//#endregion
|
|
49
|
+
export { o };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
//#region ../../node_modules/.pnpm/@stryke+path@0.24.1/node_modules/@stryke/path/dist/regex.mjs
|
|
3
|
+
const e = /^[A-Z]:\//i, t = /^[A-Z]:$/i, n = /^[/\\]{2}/, r = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/i, i = /^\/([A-Z]:)?$/i, a = /\.[0-9a-z]+$/i, o = /^@\w+\/.*$/, s = /^(?:@[\w-]+\/)?[\w-]+$/;
|
|
4
|
+
|
|
5
|
+
//#endregion
|
|
6
|
+
exports.e = e;
|
|
7
|
+
exports.n = n;
|
|
8
|
+
exports.r = r;
|
|
9
|
+
exports.t = t;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/@stryke+path@0.24.1/node_modules/@stryke/path/dist/regex.mjs
|
|
2
|
+
const e = /^[A-Z]:\//i, t = /^[A-Z]:$/i, n = /^[/\\]{2}/, r = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^~[/\\]|^[A-Z]:[/\\]/i, i = /^\/([A-Z]:)?$/i, a = /\.[0-9a-z]+$/i, o = /^@\w+\/.*$/, s = /^(?:@[\w-]+\/)?[\w-]+$/;
|
|
3
|
+
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e, n, r, t };
|