@powerlines/plugin-env 0.15.161 → 0.15.162
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/{chunk-CNVrAnJR.cjs → _virtual/rolldown_runtime.cjs} +3 -18
- package/dist/{chunk-CsF2CmBJ.mjs → _virtual/rolldown_runtime.mjs} +1 -1
- package/dist/babel/index.cjs +2 -5
- package/dist/babel/index.d.cts +1 -14
- package/dist/babel/index.d.mts +1 -14
- package/dist/babel/index.mjs +1 -4
- package/dist/babel/plugin.cjs +140 -4
- package/dist/babel/plugin.d.cts +9 -15
- package/dist/babel/plugin.d.cts.map +1 -0
- package/dist/babel/plugin.d.mts +9 -15
- package/dist/babel/plugin.d.mts.map +1 -0
- package/dist/babel/plugin.mjs +140 -4
- package/dist/babel/plugin.mjs.map +1 -0
- package/dist/components/docs.cjs +66 -6
- package/dist/components/docs.d.cts +25 -2
- package/dist/components/docs.d.cts.map +1 -0
- package/dist/components/docs.d.mts +25 -2
- package/dist/components/docs.d.mts.map +1 -0
- package/dist/components/docs.mjs +66 -6
- package/dist/components/docs.mjs.map +1 -0
- package/dist/components/env.cjs +582 -11
- package/dist/components/env.d.cts +23 -2
- package/dist/components/env.d.cts.map +1 -0
- package/dist/components/env.d.mts +23 -2
- package/dist/components/env.d.mts.map +1 -0
- package/dist/components/env.mjs +581 -10
- package/dist/components/env.mjs.map +1 -0
- package/dist/components/index.cjs +5 -15
- package/dist/components/index.d.cts +2 -3
- package/dist/components/index.d.mts +2 -3
- package/dist/components/index.mjs +2 -12
- package/dist/helpers/automd-generator.cjs +31 -3
- package/dist/helpers/automd-generator.mjs +31 -3
- package/dist/helpers/automd-generator.mjs.map +1 -0
- package/dist/helpers/create-reflection-resource.cjs +21 -4
- package/dist/helpers/create-reflection-resource.d.cts +14 -4
- package/dist/helpers/create-reflection-resource.d.cts.map +1 -0
- package/dist/helpers/create-reflection-resource.d.mts +14 -4
- package/dist/helpers/create-reflection-resource.d.mts.map +1 -0
- package/dist/helpers/create-reflection-resource.mjs +22 -4
- package/dist/helpers/create-reflection-resource.mjs.map +1 -0
- package/dist/helpers/docs-helper.cjs +22 -5
- package/dist/helpers/docs-helper.d.cts +1 -2
- package/dist/helpers/docs-helper.d.cts.map +1 -1
- package/dist/helpers/docs-helper.d.mts +1 -2
- package/dist/helpers/docs-helper.d.mts.map +1 -1
- package/dist/helpers/docs-helper.mjs +23 -5
- package/dist/helpers/docs-helper.mjs.map +1 -0
- package/dist/helpers/index.cjs +32 -38
- package/dist/helpers/index.d.cts +6 -9
- package/dist/helpers/index.d.mts +6 -9
- package/dist/helpers/index.mjs +6 -12
- package/dist/helpers/load.cjs +133 -10
- package/dist/helpers/load.d.cts +36 -4
- package/dist/helpers/load.d.cts.map +1 -0
- package/dist/helpers/load.d.mts +36 -4
- package/dist/helpers/load.d.mts.map +1 -0
- package/dist/helpers/load.mjs +132 -9
- package/dist/helpers/load.mjs.map +1 -0
- package/dist/helpers/persistence.cjs +321 -15
- package/dist/helpers/persistence.d.cts +85 -4
- package/dist/helpers/persistence.d.cts.map +1 -0
- package/dist/helpers/persistence.d.mts +85 -4
- package/dist/helpers/persistence.d.mts.map +1 -0
- package/dist/helpers/persistence.mjs +310 -5
- package/dist/helpers/persistence.mjs.map +1 -0
- package/dist/helpers/reflect.cjs +262 -13
- package/dist/helpers/reflect.d.cts +47 -4
- package/dist/helpers/reflect.d.cts.map +1 -0
- package/dist/helpers/reflect.d.mts +47 -4
- package/dist/helpers/reflect.d.mts.map +1 -0
- package/dist/helpers/reflect.mjs +254 -5
- package/dist/helpers/reflect.mjs.map +1 -0
- package/dist/helpers/source-file-env.cjs +57 -3
- package/dist/helpers/source-file-env.d.cts +9 -2
- package/dist/helpers/source-file-env.d.cts.map +1 -0
- package/dist/helpers/source-file-env.d.mts +9 -2
- package/dist/helpers/source-file-env.d.mts.map +1 -0
- package/dist/helpers/source-file-env.mjs +56 -2
- package/dist/helpers/source-file-env.mjs.map +1 -0
- package/dist/helpers/template-helpers.cjs +69 -6
- package/dist/helpers/template-helpers.d.cts +16 -4
- package/dist/helpers/template-helpers.d.cts.map +1 -0
- package/dist/helpers/template-helpers.d.mts +16 -4
- package/dist/helpers/template-helpers.d.mts.map +1 -0
- package/dist/helpers/template-helpers.mjs +69 -6
- package/dist/helpers/template-helpers.mjs.map +1 -0
- package/dist/index.cjs +98 -258
- package/dist/index.d.cts +25 -15
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +25 -15
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +22 -182
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.cjs +37 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs +38 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +7 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +20 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +63 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +64 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +17 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.cjs +32 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs +33 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.cjs +28 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs +29 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs.map +1 -0
- package/dist/{join-paths-B0RBTuuw.cjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.cjs} +13 -65
- package/dist/{join-paths-Dd9KxuyL.mjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs} +5 -45
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs +9 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs.map +1 -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 +347 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs.map +1 -0
- package/dist/{json5-DEV_07Nb.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs} +1 -1
- package/dist/{json5-jq90mF9X.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs.map +1 -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/{confbox.DA7CpUDY-DShUZ_rW.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs} +2 -2
- package/dist/{confbox.DA7CpUDY-r6FXRsI6.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs} +2 -7
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs.map +1 -0
- package/dist/{confbox.DnMsyigM-C13n3X-S.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs} +3 -13
- package/dist/{confbox.DnMsyigM-V6Wj0LPC.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs} +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs.map +1 -0
- package/dist/{toml-DvrxV201.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs} +1 -1
- package/dist/{toml-uuOYvEAO.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs.map +1 -0
- package/dist/{yaml-CQSFMRMS.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs} +1 -1
- package/dist/{yaml-CIn2Gddw.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs.map +1 -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 +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +1 -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 +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +1 -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 +286 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs.map +1 -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 +69 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs.map +1 -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 +1008 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -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 +14 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +1 -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 +2686 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -0
- package/dist/{load-CC_Pu2Om.cjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs} +195 -2332
- package/dist/{load-EM4edkA2.mjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs} +195 -2319
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +1 -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 +30 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +1 -0
- package/dist/{multipart-parser-aEF5a4Xf.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs} +8 -5
- package/dist/{multipart-parser-D65rtMfY.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs} +4 -3
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -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 +18 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +1 -0
- package/dist/{node-Co8KdzkZ.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs} +796 -814
- package/dist/{node-D9MigVDD.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs} +795 -807
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -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 +11764 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +1 -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 +21 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +1 -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 +18 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +194 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +192 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs.map +1 -0
- package/dist/{dist-BQc8ZRwl.cjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs} +1 -1
- package/dist/{dist-mV5Swt78.mjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs} +1 -1
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +1 -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/{defu-DV5Grr85.mjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs} +8 -43
- package/dist/{defu-CrqNIh1A.cjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs} +2 -90
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +1 -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 +126 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -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 +137 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +1 -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 +628 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +1 -0
- package/dist/types/index.cjs +9 -10
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/index.mjs +2 -3
- package/dist/types/plugin.cjs +133 -7
- package/dist/types/plugin.d.cts +155 -3
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +155 -3
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +129 -3
- package/dist/types/plugin.mjs.map +1 -0
- package/dist/types/runtime.cjs +242 -3
- package/dist/types/runtime.d.cts +792 -2
- package/dist/{runtime-BDzzR4wH.d.cts.map → types/runtime.d.cts.map} +1 -1
- package/dist/types/runtime.d.mts +792 -2
- package/dist/{runtime-lYSIZdMn.d.mts.map → types/runtime.d.mts.map} +1 -1
- package/dist/types/runtime.mjs +241 -2
- package/dist/types/runtime.mjs.map +1 -0
- package/package.json +9 -9
- package/dist/automd-generator-BpvZRK0k.mjs +0 -32
- package/dist/automd-generator-BpvZRK0k.mjs.map +0 -1
- package/dist/automd-generator-CxG1owAE.cjs +0 -37
- package/dist/babel-BZqmdVF4.cjs +0 -0
- package/dist/babel-DgietUY3.mjs +0 -1
- package/dist/components-BUo6Koax.cjs +0 -0
- package/dist/components-DDFmImcI.mjs +0 -1
- package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs.map +0 -1
- package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs.map +0 -1
- package/dist/create-reflection-resource-3svZm2rY.d.cts +0 -14
- package/dist/create-reflection-resource-3svZm2rY.d.cts.map +0 -1
- package/dist/create-reflection-resource-CCpA76Yq.d.mts +0 -14
- package/dist/create-reflection-resource-CCpA76Yq.d.mts.map +0 -1
- package/dist/create-reflection-resource-D0QrD1Td.mjs +0 -23
- package/dist/create-reflection-resource-D0QrD1Td.mjs.map +0 -1
- package/dist/create-reflection-resource-d2zdTyOE.cjs +0 -27
- package/dist/defu-DV5Grr85.mjs.map +0 -1
- package/dist/dist-C_a6goTt.cjs +0 -15282
- package/dist/dist-CjWvISyq.mjs +0 -15271
- package/dist/dist-CjWvISyq.mjs.map +0 -1
- package/dist/dist-mV5Swt78.mjs.map +0 -1
- package/dist/docs-BAKwE4PJ.d.cts +0 -25
- package/dist/docs-BAKwE4PJ.d.cts.map +0 -1
- package/dist/docs-CVf-w8oz.d.mts +0 -25
- package/dist/docs-CVf-w8oz.d.mts.map +0 -1
- package/dist/docs-E0aCTO7H.cjs +0 -72
- package/dist/docs-WdCIcQmw.mjs +0 -67
- package/dist/docs-WdCIcQmw.mjs.map +0 -1
- package/dist/docs-helper-BSYSI2cH.mjs +0 -24
- package/dist/docs-helper-BSYSI2cH.mjs.map +0 -1
- package/dist/docs-helper-BWe1dt1m.cjs +0 -28
- package/dist/env-BSCEigpj.cjs +0 -593
- package/dist/env-D0KBPuAd.d.mts +0 -23
- package/dist/env-D0KBPuAd.d.mts.map +0 -1
- package/dist/env-DqI7dwC-.mjs +0 -582
- package/dist/env-DqI7dwC-.mjs.map +0 -1
- package/dist/env-DwM7pJm7.d.cts +0 -23
- package/dist/env-DwM7pJm7.d.cts.map +0 -1
- package/dist/helpers-45e1bvAO.mjs +0 -1
- package/dist/helpers-DgYP3uej.cjs +0 -0
- package/dist/index-BNRXMhlr.d.mts +0 -1
- package/dist/index-Bdi8CvaN.d.cts +0 -16
- package/dist/index-Bdi8CvaN.d.cts.map +0 -1
- package/dist/index-CEDY7cmG.d.cts +0 -1
- package/dist/index-CREkvfw9.d.mts +0 -1
- package/dist/index-DSiHnMH2.d.cts +0 -1
- package/dist/index-Drhzdkqe.d.mts +0 -16
- package/dist/index-Drhzdkqe.d.mts.map +0 -1
- package/dist/index-dhjtMp5F.d.mts +0 -1
- package/dist/index-uTS5iDq_.d.cts +0 -1
- package/dist/join-paths-Dd9KxuyL.mjs.map +0 -1
- package/dist/json5-jq90mF9X.mjs.map +0 -1
- package/dist/jsonc-CBh70baJ.cjs +0 -4
- package/dist/jsonc-CDLU6bgi.mjs +0 -4
- package/dist/load-EM4edkA2.mjs.map +0 -1
- package/dist/load-GpP6cojj.d.mts +0 -36
- package/dist/load-GpP6cojj.d.mts.map +0 -1
- package/dist/load-PHGmxX_X.d.cts +0 -36
- package/dist/load-PHGmxX_X.d.cts.map +0 -1
- package/dist/multipart-parser-D65rtMfY.mjs.map +0 -1
- package/dist/node-D9MigVDD.mjs.map +0 -1
- package/dist/persistence-5S3EirDm.mjs +0 -586
- package/dist/persistence-5S3EirDm.mjs.map +0 -1
- package/dist/persistence-BR4cUaN6.d.cts +0 -85
- package/dist/persistence-BR4cUaN6.d.cts.map +0 -1
- package/dist/persistence-DrKQZNCv.d.mts +0 -85
- package/dist/persistence-DrKQZNCv.d.mts.map +0 -1
- package/dist/persistence-DzS7SzMj.cjs +0 -712
- package/dist/plugin-CM1TSv1B.cjs +0 -159
- package/dist/plugin-CSVnrdpE.cjs +0 -146
- package/dist/plugin-CSe5f2cD.d.cts +0 -155
- package/dist/plugin-CSe5f2cD.d.cts.map +0 -1
- package/dist/plugin-DMbVjdcQ.d.mts +0 -155
- package/dist/plugin-DMbVjdcQ.d.mts.map +0 -1
- package/dist/plugin-Vyvy9w9Z.mjs +0 -141
- package/dist/plugin-Vyvy9w9Z.mjs.map +0 -1
- package/dist/plugin-eBjQJP6x.mjs +0 -130
- package/dist/plugin-eBjQJP6x.mjs.map +0 -1
- package/dist/reflect-Dm8a3c29.d.cts +0 -47
- package/dist/reflect-Dm8a3c29.d.cts.map +0 -1
- package/dist/reflect-Dpz8ifa0.d.mts +0 -47
- package/dist/reflect-Dpz8ifa0.d.mts.map +0 -1
- package/dist/runtime-BDzzR4wH.d.cts +0 -792
- package/dist/runtime-C5ukCv3P.mjs +0 -242
- package/dist/runtime-C5ukCv3P.mjs.map +0 -1
- package/dist/runtime-g0TEIoZK.cjs +0 -253
- package/dist/runtime-lYSIZdMn.d.mts +0 -792
- package/dist/source-file-env-4Vdtzc5-.cjs +0 -68
- package/dist/source-file-env-Brfopjyr.d.cts +0 -9
- package/dist/source-file-env-Brfopjyr.d.cts.map +0 -1
- package/dist/source-file-env-DWejSP2U.d.mts +0 -9
- package/dist/source-file-env-DWejSP2U.d.mts.map +0 -1
- package/dist/source-file-env-Tj-6qobx.mjs +0 -57
- package/dist/source-file-env-Tj-6qobx.mjs.map +0 -1
- package/dist/template-helpers-1SKodHKt.d.mts +0 -16
- package/dist/template-helpers-1SKodHKt.d.mts.map +0 -1
- package/dist/template-helpers-Cw8aba1r.mjs +0 -70
- package/dist/template-helpers-Cw8aba1r.mjs.map +0 -1
- package/dist/template-helpers-DoFoTIAC.cjs +0 -75
- package/dist/template-helpers-zyitPfMz.d.cts +0 -16
- package/dist/template-helpers-zyitPfMz.d.cts.map +0 -1
- package/dist/toml-uuOYvEAO.mjs.map +0 -1
- package/dist/types-DyPQho_C.mjs +0 -1
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/yaml-CIn2Gddw.mjs.map +0 -1
|
@@ -1,7 +1,70 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
import "
|
|
5
|
-
import { t as createTemplateReflection } from "../template-helpers-Cw8aba1r.mjs";
|
|
1
|
+
import { __ΩEnvPluginContext, __ΩEnvType } from "../types/plugin.mjs";
|
|
2
|
+
import { readEnvTypeReflection } from "./persistence.mjs";
|
|
3
|
+
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
import { titleCase } from "@stryke/string-format/title-case";
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
//#region src/helpers/template-helpers.ts
|
|
7
|
+
function __assignType(fn, args) {
|
|
8
|
+
fn.__type = args;
|
|
9
|
+
return fn;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Creates the reflection data used when generating runtime template files.
|
|
13
|
+
*
|
|
14
|
+
* @param context - The context for the configuration plugin.
|
|
15
|
+
* @param name - The name of the configuration template.
|
|
16
|
+
* @returns The reflection for the specified configuration template.
|
|
17
|
+
*/
|
|
18
|
+
async function createTemplateReflection(context, name) {
|
|
19
|
+
const reflection = await readEnvTypeReflection(context, name);
|
|
20
|
+
reflection.getProperties().forEach(__assignType((prop) => {
|
|
21
|
+
prop.getAlias().filter(Boolean).forEach(__assignType((alias) => {
|
|
22
|
+
reflection.addProperty({
|
|
23
|
+
name: alias,
|
|
24
|
+
optional: prop.isOptional() ? true : void 0,
|
|
25
|
+
readonly: prop.isReadonly() ? true : void 0,
|
|
26
|
+
description: prop.getDescription(),
|
|
27
|
+
visibility: prop.getVisibility(),
|
|
28
|
+
type: prop.getType(),
|
|
29
|
+
default: prop.getDefaultValue(),
|
|
30
|
+
tags: {
|
|
31
|
+
hidden: prop.isHidden(),
|
|
32
|
+
ignore: prop.isIgnored(),
|
|
33
|
+
internal: prop.isInternal(),
|
|
34
|
+
alias: prop.getAlias().filter(__assignType((a) => a !== alias, [
|
|
35
|
+
"a",
|
|
36
|
+
"",
|
|
37
|
+
"P\"2!\"/\""
|
|
38
|
+
])).concat(prop.name),
|
|
39
|
+
title: prop.getTitle() || titleCase(prop.name),
|
|
40
|
+
readonly: prop.isReadonly(),
|
|
41
|
+
permission: prop.getPermission(),
|
|
42
|
+
domain: prop.getDomain()
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}, [
|
|
46
|
+
"alias",
|
|
47
|
+
"",
|
|
48
|
+
"P\"2!\"/\""
|
|
49
|
+
]));
|
|
50
|
+
}, [
|
|
51
|
+
"prop",
|
|
52
|
+
"",
|
|
53
|
+
"P\"2!\"/\""
|
|
54
|
+
]));
|
|
55
|
+
return reflection;
|
|
56
|
+
}
|
|
57
|
+
createTemplateReflection.__type = [
|
|
58
|
+
() => __ΩEnvPluginContext,
|
|
59
|
+
"context",
|
|
60
|
+
() => __ΩEnvType,
|
|
61
|
+
"name",
|
|
62
|
+
() => ReflectionClass,
|
|
63
|
+
"createTemplateReflection",
|
|
64
|
+
"Creates the reflection data used when generating runtime template files.",
|
|
65
|
+
"Pn!2\"n#2$8P\"7%`/&?'"
|
|
66
|
+
];
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
export { createTemplateReflection };
|
|
70
|
+
//# sourceMappingURL=template-helpers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-helpers.mjs","names":[],"sources":["../../src/helpers/template-helpers.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { ReflectionClass } from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { EnvPluginContext, EnvType } from \"../types/plugin\";\nimport { readEnvTypeReflection } from \"./persistence\";\n\n/**\n * Creates the reflection data used when generating runtime template files.\n *\n * @param context - The context for the configuration plugin.\n * @param name - The name of the configuration template.\n * @returns The reflection for the specified configuration template.\n */\nexport async function createTemplateReflection(\n context: EnvPluginContext,\n name?: EnvType\n): Promise<ReflectionClass<any>> {\n const reflection = await readEnvTypeReflection(context, name);\n\n reflection.getProperties().forEach(prop => {\n const aliases = prop.getAlias();\n aliases.filter(Boolean).forEach(alias => {\n reflection.addProperty({\n name: alias,\n optional: prop.isOptional() ? true : undefined,\n readonly: prop.isReadonly() ? true : undefined,\n description: prop.getDescription(),\n visibility: prop.getVisibility(),\n type: prop.getType(),\n default: prop.getDefaultValue(),\n tags: {\n hidden: prop.isHidden(),\n ignore: prop.isIgnored(),\n internal: prop.isInternal(),\n alias: prop\n .getAlias()\n .filter(a => a !== alias)\n .concat(prop.name),\n title: prop.getTitle() || titleCase(prop.name),\n readonly: prop.isReadonly(),\n permission: prop.getPermission(),\n domain: prop.getDomain()\n }\n });\n });\n });\n\n return reflection;\n}\n"],"mappings":";;;;;;AAIA,SAAS,aAAa,IAAI,MAAM;AAC5B,IAAG,SAAS;AACZ,QAAO;;;;;;;;;;CA8BP,MAAM,aAAa,MAAM,sBAAgB,SAAA,KAAA;AACzC,YAAW,eAAe,CAAC,QAAI,cAAA,SAAA;AAE3B,EADgB,KAAK,UAAU,CACvB,OAAO,QAAM,CAAA,QAAA,cAAA,UAAA;AACjB,cAAO,YAAA;IACH,MAAM;IACN,UAAU,KAAK,YAAY,GAAG,OAAO;IACrC,UAAU,KAAK,YAAW,GAAA,OAAA;IAC1B,aAAa,KAAK,gBAAM;IACxB,YAAY,KAAA,eAAA;IACZ,MAAM,KAAK,SAAS;IACtB,SAAA,KAAA,iBAAA;IACE,MAAM;KACF,QAAQ,KAAK,UAAC;KACd,QAAQ,KAAK,WAAI;KACjB,UAAA,KAAA,YAAA;KACA,OAAE,KACG,UAAU,CACV,OAAK,cAAA,MAAA,MAAA,OAAA;MAAA;MAAA;MAAA;MAAA,CAAA,CAAA,CACL,OAAO,KAAK,KAAK;KACtB,OAAO,KAAK,UAAK,IAAA,UAAA,KAAA,KAAA;KACjB,UAAU,KAAK,YAAO;KACtB,YAAY,KAAC,eAAA;KACzB,QAAA,KAAA,WAAA;KACA;IACF,CAAA;KACF;GAAA;GAAA;GAAA;GAAA,CAAA,CAAA;;;;;;AAEA,QAAO"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,200 +1,40 @@
|
|
|
1
1
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
require('./types
|
|
6
|
-
const require_join_paths = require('./join-paths
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
require('./
|
|
13
|
-
require('./
|
|
14
|
-
const
|
|
15
|
-
require('./helpers
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
require('./components
|
|
21
|
-
const
|
|
22
|
-
require('./babel
|
|
2
|
+
const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
3
|
+
const require_types_runtime = require('./types/runtime.cjs');
|
|
4
|
+
const require_types_plugin = require('./types/plugin.cjs');
|
|
5
|
+
require('./types/index.cjs');
|
|
6
|
+
const require_join_paths = require('./node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
7
|
+
const require_is_parent_path = require('./node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.cjs');
|
|
8
|
+
const require_helpers_reflect = require('./helpers/reflect.cjs');
|
|
9
|
+
const require_helpers_persistence = require('./helpers/persistence.cjs');
|
|
10
|
+
const require_helpers_template_helpers = require('./helpers/template-helpers.cjs');
|
|
11
|
+
const require_helpers_source_file_env = require('./helpers/source-file-env.cjs');
|
|
12
|
+
const require_defu = require('./node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs');
|
|
13
|
+
const require_helpers_load = require('./helpers/load.cjs');
|
|
14
|
+
const require_helpers_create_reflection_resource = require('./helpers/create-reflection-resource.cjs');
|
|
15
|
+
require('./helpers/index.cjs');
|
|
16
|
+
const require_helpers_docs_helper = require('./helpers/docs-helper.cjs');
|
|
17
|
+
const require_helpers_automd_generator = require('./helpers/automd-generator.cjs');
|
|
18
|
+
const require_components_docs = require('./components/docs.cjs');
|
|
19
|
+
const require_components_env = require('./components/env.cjs');
|
|
20
|
+
require('./components/index.cjs');
|
|
21
|
+
const require_babel_plugin = require('./babel/plugin.cjs');
|
|
22
|
+
require('./babel/index.cjs');
|
|
23
|
+
const require_parse_type_definition = require('./node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.cjs');
|
|
24
|
+
const require_to_array = require('./node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.cjs');
|
|
23
25
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
24
26
|
let __stryke_env_types = require("@stryke/env/types");
|
|
25
27
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
26
28
|
let __powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
|
|
27
|
-
__powerlines_plugin_alloy =
|
|
29
|
+
__powerlines_plugin_alloy = require_rolldown_runtime.__toESM(__powerlines_plugin_alloy);
|
|
28
30
|
let __powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
|
|
29
31
|
let __powerlines_plugin_automd = require("@powerlines/plugin-automd");
|
|
30
|
-
__powerlines_plugin_automd =
|
|
32
|
+
__powerlines_plugin_automd = require_rolldown_runtime.__toESM(__powerlines_plugin_automd);
|
|
31
33
|
let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
32
|
-
__powerlines_plugin_babel =
|
|
34
|
+
__powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
|
|
33
35
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
34
36
|
let __stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
|
|
35
37
|
|
|
36
|
-
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs
|
|
37
|
-
/**
|
|
38
|
-
* Gets the `toStringTag` of `obj`.
|
|
39
|
-
*
|
|
40
|
-
* @param value - The obj to query.
|
|
41
|
-
* @returns Returns the `toStringTag`.
|
|
42
|
-
*/
|
|
43
|
-
const getObjectTag = (value) => {
|
|
44
|
-
if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
|
|
45
|
-
return Object.prototype.toString.call(value);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs
|
|
50
|
-
/**
|
|
51
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
52
|
-
* and has a `typeof` result of "object".
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```typescript
|
|
56
|
-
* isObjectLike({})
|
|
57
|
-
* // => true
|
|
58
|
-
*
|
|
59
|
-
* isObjectLike([1, 2, 3])
|
|
60
|
-
* // => true
|
|
61
|
-
*
|
|
62
|
-
* isObjectLike(Function)
|
|
63
|
-
* // => false
|
|
64
|
-
*
|
|
65
|
-
* isObjectLike(null)
|
|
66
|
-
* // => false
|
|
67
|
-
* ```
|
|
68
|
-
*
|
|
69
|
-
* @param value - The value to check.
|
|
70
|
-
* @returns Returns `true` if `value` is object-like, else `false`.
|
|
71
|
-
*/
|
|
72
|
-
const isObjectLike = (obj) => {
|
|
73
|
-
return typeof obj === "object" && obj !== null;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Checks if `obj` is a plain object, that is, an object created by the `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
77
|
-
*
|
|
78
|
-
* @example
|
|
79
|
-
* ```typescript
|
|
80
|
-
* function Foo() {
|
|
81
|
-
* this.a = 1
|
|
82
|
-
* }
|
|
83
|
-
*
|
|
84
|
-
* isPlainObject(new Foo)
|
|
85
|
-
* // => false
|
|
86
|
-
*
|
|
87
|
-
* isPlainObject([1, 2, 3])
|
|
88
|
-
* // => false
|
|
89
|
-
*
|
|
90
|
-
* isPlainObject({ 'x': 0, 'y': 0 })
|
|
91
|
-
* // => true
|
|
92
|
-
*
|
|
93
|
-
* isPlainObject(Object.create(null))
|
|
94
|
-
* // => true
|
|
95
|
-
* ```
|
|
96
|
-
*
|
|
97
|
-
* @param obj - The value to check.
|
|
98
|
-
* @returns Returns `true` if `obj` is a plain object, else `false`.
|
|
99
|
-
*/
|
|
100
|
-
const isPlainObject = (obj) => {
|
|
101
|
-
if (!isObjectLike(obj) || getObjectTag(obj) !== "[object Object]") return false;
|
|
102
|
-
if (Object.getPrototypeOf(obj) === null) return true;
|
|
103
|
-
let proto = obj;
|
|
104
|
-
while (Object.getPrototypeOf(proto) !== null) proto = Object.getPrototypeOf(proto);
|
|
105
|
-
return Object.getPrototypeOf(obj) === proto;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
//#endregion
|
|
109
|
-
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs
|
|
110
|
-
/**
|
|
111
|
-
* Check if the provided value's type is `Object`
|
|
112
|
-
*
|
|
113
|
-
* @param value - The value to type check
|
|
114
|
-
* @returns An indicator specifying if the value provided is of type `Object`
|
|
115
|
-
*/
|
|
116
|
-
const isObject = (value) => {
|
|
117
|
-
try {
|
|
118
|
-
return typeof value === "object" || Boolean(value) && value?.constructor === Object || isPlainObject(value);
|
|
119
|
-
} catch {
|
|
120
|
-
return false;
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
//#endregion
|
|
125
|
-
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs
|
|
126
|
-
const isString = (value) => {
|
|
127
|
-
try {
|
|
128
|
-
return typeof value === "string";
|
|
129
|
-
} catch {
|
|
130
|
-
return false;
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
//#endregion
|
|
135
|
-
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs
|
|
136
|
-
const isBufferExists = typeof Buffer !== "undefined";
|
|
137
|
-
isBufferExists && Buffer.isBuffer.bind(Buffer);
|
|
138
|
-
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs
|
|
141
|
-
((Obj) => {
|
|
142
|
-
if (typeof globalThis === "object") return globalThis;
|
|
143
|
-
Object.defineProperty(Obj, "typeDetectGlobalObject", {
|
|
144
|
-
get() {
|
|
145
|
-
return this;
|
|
146
|
-
},
|
|
147
|
-
configurable: true
|
|
148
|
-
});
|
|
149
|
-
return globalThis;
|
|
150
|
-
})(Object.prototype);
|
|
151
|
-
|
|
152
|
-
//#endregion
|
|
153
|
-
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs
|
|
154
|
-
/**
|
|
155
|
-
* Parse a type definition parameter into a {@link TypeDefinition} object
|
|
156
|
-
*
|
|
157
|
-
* @param param - The parameter to parse
|
|
158
|
-
* @returns The parsed type definition
|
|
159
|
-
*/
|
|
160
|
-
const parseTypeDefinition = (param) => {
|
|
161
|
-
if (isString(param)) {
|
|
162
|
-
if (param.includes(":")) {
|
|
163
|
-
const params = param.split(":");
|
|
164
|
-
if (params.length > 1 && params[0]) return {
|
|
165
|
-
file: params[0],
|
|
166
|
-
name: params[1]
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
if (param.includes("#")) {
|
|
170
|
-
const params = param.split("#");
|
|
171
|
-
if (params.length > 1 && params[0]) return {
|
|
172
|
-
file: params[0],
|
|
173
|
-
name: params[1]
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
return { file: param };
|
|
177
|
-
}
|
|
178
|
-
if (isObject(param)) return {
|
|
179
|
-
file: param.file,
|
|
180
|
-
name: param.name
|
|
181
|
-
};
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
//#endregion
|
|
185
|
-
//#region ../../node_modules/.pnpm/@stryke+convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs
|
|
186
|
-
/**
|
|
187
|
-
* Convert `Arrayable<T>` to `Array<T>`
|
|
188
|
-
*
|
|
189
|
-
* @param array - The `Arrayable<T>` to convert
|
|
190
|
-
* @returns An `Array<T>` containing the elements of the input
|
|
191
|
-
*/
|
|
192
|
-
function toArray(array) {
|
|
193
|
-
array = array ?? [];
|
|
194
|
-
return Array.isArray(array) ? array : [array];
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
//#endregion
|
|
198
38
|
//#region src/index.tsx
|
|
199
39
|
/**
|
|
200
40
|
* A Powerlines plugin to inject environment variables into the source code.
|
|
@@ -212,20 +52,20 @@ const plugin = (options = {}) => {
|
|
|
212
52
|
types: {},
|
|
213
53
|
prefix: []
|
|
214
54
|
}),
|
|
215
|
-
transform: { babel: { plugins: [
|
|
55
|
+
transform: { babel: { plugins: [require_babel_plugin.envBabelPlugin] } }
|
|
216
56
|
};
|
|
217
|
-
if (config.env.types) config.env.types = parseTypeDefinition(config.env.types);
|
|
57
|
+
if (config.env.types) config.env.types = require_parse_type_definition.parseTypeDefinition(config.env.types);
|
|
218
58
|
else {
|
|
219
59
|
this.warn("The `env.types` configuration parameter was not provided. Please ensure this is expected.");
|
|
220
|
-
const envDefaultTypeDefinition = await
|
|
221
|
-
config.env.types = parseTypeDefinition(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
|
|
60
|
+
const envDefaultTypeDefinition = await require_helpers_persistence.getEnvDefaultTypeDefinition(this);
|
|
61
|
+
config.env.types = require_parse_type_definition.parseTypeDefinition(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
|
|
222
62
|
}
|
|
223
|
-
if (config.env.secrets) config.env.secrets = parseTypeDefinition(config.env.secrets);
|
|
63
|
+
if (config.env.secrets) config.env.secrets = require_parse_type_definition.parseTypeDefinition(config.env.secrets);
|
|
224
64
|
else {
|
|
225
|
-
const secretsDefaultTypeDefinition = await
|
|
226
|
-
config.env.secrets = parseTypeDefinition(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
|
|
65
|
+
const secretsDefaultTypeDefinition = await require_helpers_persistence.getSecretsDefaultTypeDefinition(this);
|
|
66
|
+
config.env.secrets = require_parse_type_definition.parseTypeDefinition(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
|
|
227
67
|
}
|
|
228
|
-
config.env.prefix = toArray(config.env.prefix ?? []).reduce((ret, prefix) => {
|
|
68
|
+
config.env.prefix = require_to_array.toArray(config.env.prefix ?? []).reduce((ret, prefix) => {
|
|
229
69
|
const formattedPrefix = (0, __stryke_string_format_constant_case.constantCase)(prefix);
|
|
230
70
|
if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
|
|
231
71
|
return ret;
|
|
@@ -234,7 +74,7 @@ const plugin = (options = {}) => {
|
|
|
234
74
|
"POWERLINES_",
|
|
235
75
|
this.config.framework && this.config.framework !== "powerlines" && `${(0, __stryke_string_format_constant_case.constantCase)(this.config.framework)}_`
|
|
236
76
|
].filter(Boolean));
|
|
237
|
-
config.env.prefix = toArray(config.env.prefix).reduce((ret, prefix) => {
|
|
77
|
+
config.env.prefix = require_to_array.toArray(config.env.prefix).reduce((ret, prefix) => {
|
|
238
78
|
if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
|
|
239
79
|
return ret;
|
|
240
80
|
}, []);
|
|
@@ -242,7 +82,7 @@ const plugin = (options = {}) => {
|
|
|
242
82
|
},
|
|
243
83
|
async configResolved() {
|
|
244
84
|
this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
|
|
245
|
-
this.env = require_defu.defu({ parsed: await
|
|
85
|
+
this.env = require_defu.defu({ parsed: await require_helpers_load.loadEnv(this, this.config.env) }, this.env ?? {}, {
|
|
246
86
|
types: { env: {} },
|
|
247
87
|
used: {
|
|
248
88
|
env: {},
|
|
@@ -251,23 +91,23 @@ const plugin = (options = {}) => {
|
|
|
251
91
|
parsed: {},
|
|
252
92
|
injected: {}
|
|
253
93
|
});
|
|
254
|
-
if (this.config.command !== "prepare" && !this.config.skipCache && this.persistedMeta?.checksum === this.meta.checksum && (0, __stryke_fs_exists.existsSync)(
|
|
94
|
+
if (this.config.command !== "prepare" && !this.config.skipCache && this.persistedMeta?.checksum === this.meta.checksum && (0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvTypeReflectionsPath(this, "env"))) {
|
|
255
95
|
this.debug(`Skipping reflection initialization as the meta checksum has not changed.`);
|
|
256
|
-
this.env.types.env = await
|
|
257
|
-
if ((0, __stryke_fs_exists.existsSync)(
|
|
258
|
-
if ((0, __stryke_fs_exists.existsSync)(
|
|
259
|
-
if ((0, __stryke_fs_exists.existsSync)(
|
|
96
|
+
this.env.types.env = await require_helpers_persistence.readEnvTypeReflection(this, "env");
|
|
97
|
+
if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvReflectionsPath(this, "env"))) this.env.used.env = await require_helpers_persistence.readEnvReflection(this);
|
|
98
|
+
if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvTypeReflectionsPath(this, "secrets"))) this.env.types.secrets = await require_helpers_persistence.readEnvTypeReflection(this, "secrets");
|
|
99
|
+
if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvReflectionsPath(this, "secrets"))) this.env.used.secrets = await require_helpers_persistence.readSecretsReflection(this);
|
|
260
100
|
} else {
|
|
261
101
|
this.debug(`Starting environment configuration reflection initialization.`);
|
|
262
|
-
this.env.types.env = await
|
|
102
|
+
this.env.types.env = await require_helpers_reflect.reflectEnv(this, this.config.env.types?.file ? require_is_parent_path.isParentPath(this.config.env.types?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.types?.file : require_join_paths.joinPaths(this.config.projectRoot, this.config.env.types?.file) : void 0, this.config.env.types?.name);
|
|
263
103
|
if (!this.env.types.env) throw new Error("Failed to find the environment configuration type reflection in the context.");
|
|
264
|
-
await
|
|
265
|
-
this.env.types.secrets = await
|
|
104
|
+
await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.env, "env");
|
|
105
|
+
this.env.types.secrets = await require_helpers_reflect.reflectSecrets(this, this.config.env.secrets?.file ? require_is_parent_path.isParentPath(this.config.env.secrets?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.secrets?.file : require_join_paths.joinPaths(this.config.projectRoot, this.config.env.secrets?.file) : void 0, this.config.env.secrets?.name);
|
|
266
106
|
if (!this.env.types.secrets) throw new Error("Failed to find the secrets configuration type reflection in the context.");
|
|
267
|
-
await
|
|
107
|
+
await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
|
|
268
108
|
this.debug(`Resolved ${this.env.types.env.getProperties().length ?? 0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length ?? 0} secret configuration parameters`);
|
|
269
109
|
const envWithAlias = this.env.types.env.getProperties().filter((prop) => prop.getAlias().length > 0);
|
|
270
|
-
Object.entries(await
|
|
110
|
+
Object.entries(await require_helpers_load.loadEnv(this, this.config.env)).forEach(([key, value]) => {
|
|
271
111
|
const unprefixedKey = this.config.env.prefix.reduce((ret, prefix) => {
|
|
272
112
|
if (key.replace(/_$/g, "").startsWith(prefix)) return key.replace(/_$/g, "").slice(prefix.length);
|
|
273
113
|
return ret;
|
|
@@ -281,24 +121,24 @@ const plugin = (options = {}) => {
|
|
|
281
121
|
description: `An object containing the environment configuration parameters used by the ${this.config.name ? `${this.config.name} application` : "application"}.`,
|
|
282
122
|
types: []
|
|
283
123
|
}, this.env.types.env);
|
|
284
|
-
await
|
|
124
|
+
await require_helpers_persistence.writeEnvReflection(this, this.env.used.env, "env");
|
|
285
125
|
if (this.env.types.secrets) {
|
|
286
|
-
await
|
|
126
|
+
await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
|
|
287
127
|
this.env.used.secrets = new __powerlines_deepkit_vendor_type.ReflectionClass({
|
|
288
128
|
kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
|
|
289
129
|
typeName: "Secrets",
|
|
290
130
|
description: `An object containing the secret configuration parameters used by the ${this.config.name ? `${this.config.name} application` : "application"}.`,
|
|
291
131
|
types: []
|
|
292
132
|
}, this.env.types.secrets);
|
|
293
|
-
await
|
|
133
|
+
await require_helpers_persistence.writeEnvReflection(this, this.env.used.secrets, "secrets");
|
|
294
134
|
}
|
|
295
135
|
}
|
|
296
136
|
},
|
|
297
137
|
async prepare() {
|
|
298
138
|
const _self$ = this;
|
|
299
139
|
this.debug(`Preparing the Environment runtime artifacts for the Powerlines project.`);
|
|
300
|
-
const result = await
|
|
301
|
-
return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
140
|
+
const result = await require_helpers_persistence.readEnvTypeReflection(this, "env");
|
|
141
|
+
return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_env.EnvBuiltin, {
|
|
302
142
|
get defaultConfig() {
|
|
303
143
|
return _self$.config.env.defaultConfig;
|
|
304
144
|
},
|
|
@@ -309,33 +149,33 @@ const plugin = (options = {}) => {
|
|
|
309
149
|
order: "post",
|
|
310
150
|
async handler() {
|
|
311
151
|
if (this.env.used.env.getProperties().length > 0) {
|
|
312
|
-
this.trace(`Persisting used environment configuration reflections to ${
|
|
313
|
-
await
|
|
152
|
+
this.trace(`Persisting used environment configuration reflections to ${require_helpers_persistence.getEnvReflectionsPath(this, "env")}.`);
|
|
153
|
+
await require_helpers_persistence.writeEnvReflection(this, this.env.used.env, "env");
|
|
314
154
|
}
|
|
315
155
|
if (this.env.used.secrets.getProperties().length > 0) {
|
|
316
|
-
this.trace(`Persisting used secret configuration reflections to ${
|
|
317
|
-
await
|
|
156
|
+
this.trace(`Persisting used secret configuration reflections to ${require_helpers_persistence.getEnvReflectionsPath(this, "secrets")}.`);
|
|
157
|
+
await require_helpers_persistence.writeEnvReflection(this, this.env.used.secrets, "secrets");
|
|
318
158
|
}
|
|
319
159
|
}
|
|
320
160
|
},
|
|
321
161
|
async docs() {
|
|
322
|
-
this.debug(`Documenting environment variables configuration values in "${require_join_paths.joinPaths(
|
|
323
|
-
const result = await
|
|
324
|
-
return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(
|
|
162
|
+
this.debug(`Documenting environment variables configuration values in "${require_join_paths.joinPaths(require_helpers_docs_helper.getDocsOutputPath(this), "env.md")}"`);
|
|
163
|
+
const result = await require_helpers_persistence.readEnvTypeReflection(this, "env");
|
|
164
|
+
return (0, __powerlines_plugin_alloy_render.render)(this, (0, __alloy_js_core_jsx_runtime.createComponent)(require_components_docs.EnvDocsFile, {
|
|
325
165
|
levelOffset: 0,
|
|
326
166
|
reflection: result
|
|
327
167
|
}));
|
|
328
168
|
},
|
|
329
169
|
async buildEnd() {
|
|
330
|
-
const reflectionPath =
|
|
170
|
+
const reflectionPath = require_helpers_persistence.getEnvReflectionsPath(this, "env");
|
|
331
171
|
this.debug(`Writing env reflection types to ${reflectionPath}.`);
|
|
332
|
-
await
|
|
172
|
+
await require_helpers_persistence.writeEnvReflection(this, this.env.used.env, "env");
|
|
333
173
|
}
|
|
334
174
|
},
|
|
335
175
|
{
|
|
336
176
|
name: "env:automd-generator",
|
|
337
177
|
config() {
|
|
338
|
-
return { automd: require_defu.defu(options.automd ?? {}, { generators: { env:
|
|
178
|
+
return { automd: require_defu.defu(options.automd ?? {}, { generators: { env: require_helpers_automd_generator.env(this) } }) };
|
|
339
179
|
}
|
|
340
180
|
},
|
|
341
181
|
{
|
|
@@ -350,42 +190,42 @@ const plugin = (options = {}) => {
|
|
|
350
190
|
var src_default = plugin;
|
|
351
191
|
|
|
352
192
|
//#endregion
|
|
353
|
-
exports.BaseEnv =
|
|
354
|
-
exports.BaseSecrets =
|
|
355
|
-
exports.EnvBuiltin =
|
|
356
|
-
exports.EnvDocsFile =
|
|
357
|
-
exports.EnvTypeDefinition =
|
|
358
|
-
exports.__ΩCreateEnvReflectionOptions =
|
|
359
|
-
exports.__ΩEnvInterface =
|
|
360
|
-
exports.__ΩEnvPluginContext =
|
|
361
|
-
exports.__ΩEnvPluginOptions =
|
|
362
|
-
exports.__ΩEnvPluginResolvedConfig =
|
|
363
|
-
exports.__ΩEnvPluginUserConfig =
|
|
364
|
-
exports.__ΩEnvType =
|
|
365
|
-
exports.__ΩSecretsInterface =
|
|
366
|
-
exports.createEnvReflection =
|
|
367
|
-
exports.createReflection =
|
|
368
|
-
exports.createSecretsReflection =
|
|
369
|
-
exports.createTemplateReflection =
|
|
193
|
+
exports.BaseEnv = require_helpers_reflect.BaseEnv;
|
|
194
|
+
exports.BaseSecrets = require_helpers_reflect.BaseSecrets;
|
|
195
|
+
exports.EnvBuiltin = require_components_env.EnvBuiltin;
|
|
196
|
+
exports.EnvDocsFile = require_components_docs.EnvDocsFile;
|
|
197
|
+
exports.EnvTypeDefinition = require_components_env.EnvTypeDefinition;
|
|
198
|
+
exports.__ΩCreateEnvReflectionOptions = require_helpers_reflect.__ΩCreateEnvReflectionOptions;
|
|
199
|
+
exports.__ΩEnvInterface = require_types_runtime.__ΩEnvInterface;
|
|
200
|
+
exports.__ΩEnvPluginContext = require_types_plugin.__ΩEnvPluginContext;
|
|
201
|
+
exports.__ΩEnvPluginOptions = require_types_plugin.__ΩEnvPluginOptions;
|
|
202
|
+
exports.__ΩEnvPluginResolvedConfig = require_types_plugin.__ΩEnvPluginResolvedConfig;
|
|
203
|
+
exports.__ΩEnvPluginUserConfig = require_types_plugin.__ΩEnvPluginUserConfig;
|
|
204
|
+
exports.__ΩEnvType = require_types_plugin.__ΩEnvType;
|
|
205
|
+
exports.__ΩSecretsInterface = require_types_runtime.__ΩSecretsInterface;
|
|
206
|
+
exports.createEnvReflection = require_helpers_reflect.createEnvReflection;
|
|
207
|
+
exports.createReflection = require_helpers_create_reflection_resource.createReflection;
|
|
208
|
+
exports.createSecretsReflection = require_helpers_reflect.createSecretsReflection;
|
|
209
|
+
exports.createTemplateReflection = require_helpers_template_helpers.createTemplateReflection;
|
|
370
210
|
exports.default = src_default;
|
|
371
|
-
exports.envBabelPlugin =
|
|
372
|
-
exports.formatEnvField =
|
|
373
|
-
exports.getEnvDefaultTypeDefinition =
|
|
374
|
-
exports.getEnvReflectionsPath =
|
|
375
|
-
exports.getEnvTypeReflectionsPath =
|
|
376
|
-
exports.getSecretsDefaultTypeDefinition =
|
|
377
|
-
exports.loadEnv =
|
|
378
|
-
exports.loadEnvFromContext =
|
|
379
|
-
exports.mergeEnvReflections =
|
|
380
|
-
exports.mergeSecretsReflections =
|
|
211
|
+
exports.envBabelPlugin = require_babel_plugin.envBabelPlugin;
|
|
212
|
+
exports.formatEnvField = require_helpers_source_file_env.formatEnvField;
|
|
213
|
+
exports.getEnvDefaultTypeDefinition = require_helpers_persistence.getEnvDefaultTypeDefinition;
|
|
214
|
+
exports.getEnvReflectionsPath = require_helpers_persistence.getEnvReflectionsPath;
|
|
215
|
+
exports.getEnvTypeReflectionsPath = require_helpers_persistence.getEnvTypeReflectionsPath;
|
|
216
|
+
exports.getSecretsDefaultTypeDefinition = require_helpers_persistence.getSecretsDefaultTypeDefinition;
|
|
217
|
+
exports.loadEnv = require_helpers_load.loadEnv;
|
|
218
|
+
exports.loadEnvFromContext = require_helpers_load.loadEnvFromContext;
|
|
219
|
+
exports.mergeEnvReflections = require_helpers_reflect.mergeEnvReflections;
|
|
220
|
+
exports.mergeSecretsReflections = require_helpers_reflect.mergeSecretsReflections;
|
|
381
221
|
exports.plugin = plugin;
|
|
382
|
-
exports.readEnvReflection =
|
|
383
|
-
exports.readEnvTypeReflection =
|
|
384
|
-
exports.readSecretsReflection =
|
|
385
|
-
exports.reflectEnv =
|
|
386
|
-
exports.reflectSecrets =
|
|
387
|
-
exports.removeEnvPrefix =
|
|
388
|
-
exports.resolveRuntimeTypeFile =
|
|
389
|
-
exports.writeEnvReflection =
|
|
390
|
-
exports.writeEnvReflectionSync =
|
|
391
|
-
exports.writeEnvTypeReflection =
|
|
222
|
+
exports.readEnvReflection = require_helpers_persistence.readEnvReflection;
|
|
223
|
+
exports.readEnvTypeReflection = require_helpers_persistence.readEnvTypeReflection;
|
|
224
|
+
exports.readSecretsReflection = require_helpers_persistence.readSecretsReflection;
|
|
225
|
+
exports.reflectEnv = require_helpers_reflect.reflectEnv;
|
|
226
|
+
exports.reflectSecrets = require_helpers_reflect.reflectSecrets;
|
|
227
|
+
exports.removeEnvPrefix = require_helpers_source_file_env.removeEnvPrefix;
|
|
228
|
+
exports.resolveRuntimeTypeFile = require_helpers_persistence.resolveRuntimeTypeFile;
|
|
229
|
+
exports.writeEnvReflection = require_helpers_persistence.writeEnvReflection;
|
|
230
|
+
exports.writeEnvReflectionSync = require_helpers_persistence.writeEnvReflectionSync;
|
|
231
|
+
exports.writeEnvTypeReflection = require_helpers_persistence.writeEnvTypeReflection;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./index
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import "./index
|
|
13
|
-
import "./index
|
|
14
|
-
import {
|
|
15
|
-
|
|
1
|
+
import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.cjs";
|
|
2
|
+
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.cjs";
|
|
3
|
+
import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./components/docs.cjs";
|
|
4
|
+
import { EnvBuiltin, EnvBuiltinProps, EnvTypeDefinition, __ΩEnvBuiltinProps } from "./components/env.cjs";
|
|
5
|
+
import "./components/index.cjs";
|
|
6
|
+
import { createReflection } from "./helpers/create-reflection-resource.cjs";
|
|
7
|
+
import { loadEnv, loadEnvFromContext } from "./helpers/load.cjs";
|
|
8
|
+
import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./helpers/persistence.cjs";
|
|
9
|
+
import { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./helpers/reflect.cjs";
|
|
10
|
+
import { formatEnvField, removeEnvPrefix } from "./helpers/source-file-env.cjs";
|
|
11
|
+
import { createTemplateReflection } from "./helpers/template-helpers.cjs";
|
|
12
|
+
import "./helpers/index.cjs";
|
|
13
|
+
import "./types/index.cjs";
|
|
14
|
+
import { envBabelPlugin } from "./babel/plugin.cjs";
|
|
15
|
+
import "./babel/index.cjs";
|
|
16
|
+
import { Plugin } from "powerlines/types/plugin";
|
|
17
|
+
|
|
18
|
+
//#region src/index.d.ts
|
|
19
|
+
/**
|
|
20
|
+
* A Powerlines plugin to inject environment variables into the source code.
|
|
21
|
+
*/
|
|
22
|
+
declare const plugin: <TContext extends EnvPluginContext = EnvPluginContext>(options?: EnvPluginOptions) => Plugin<TContext>[];
|
|
23
|
+
//#endregion
|
|
24
|
+
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, EnvBuiltin, EnvBuiltinProps, EnvDocsFile, EnvDocsFileProps, EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, EnvTypeDefinition, SecretsInterface, __ΩCreateEnvReflectionOptions, __ΩEnvBuiltinProps, __ΩEnvDocsFileProps, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface, createEnvReflection, createReflection, createSecretsReflection, createTemplateReflection, plugin as default, plugin, envBabelPlugin, formatEnvField, getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, loadEnv, loadEnvFromContext, mergeEnvReflections, mergeSecretsReflections, readEnvReflection, readEnvTypeReflection, readSecretsReflection, reflectEnv, reflectSecrets, removeEnvPrefix, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
|
25
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;cAoEa,0BAA2B,mBAAmB,4BAChD,qBAuVJ,OAAO"}
|