@powerlines/plugin-env 0.15.121 → 0.15.122
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 +0 -4
- package/dist/babel/plugin.cjs +11 -11
- package/dist/babel/plugin.d.mts +2 -2
- package/dist/babel/plugin.mjs +5 -5
- package/dist/components/docs.cjs +8 -8
- package/dist/components/docs.d.mts +1 -1
- package/dist/components/docs.mjs +4 -4
- package/dist/components/env.cjs +43 -42
- package/dist/components/env.d.mts +2 -2
- package/dist/components/env.mjs +11 -11
- package/dist/deepkit/schemas/reflection.cjs +5426 -0
- package/dist/deepkit/schemas/reflection.mjs +5423 -0
- package/dist/deepkit/schemas/reflection2.cjs +4112 -0
- package/dist/deepkit/schemas/reflection2.mjs +4110 -0
- package/dist/deepkit/src/capnp.cjs +1692 -0
- package/dist/deepkit/src/capnp.mjs +1690 -0
- package/dist/deepkit/src/esbuild-plugin.cjs +99 -0
- package/dist/deepkit/src/esbuild-plugin.mjs +98 -0
- package/dist/deepkit/src/reflect-type.cjs +40 -0
- package/dist/deepkit/src/reflect-type.mjs +38 -0
- package/dist/deepkit/src/resolve-reflections.cjs +23 -0
- package/dist/deepkit/src/resolve-reflections.mjs +22 -0
- package/dist/deepkit/src/transformer.cjs +92 -0
- package/dist/deepkit/src/transformer.mjs +89 -0
- package/dist/deepkit/src/transpile.cjs +39 -0
- package/dist/deepkit/src/transpile.mjs +37 -0
- package/dist/deepkit/src/types.cjs +22 -0
- package/dist/deepkit/src/types.mjs +21 -0
- package/dist/deepkit/src/utilities.cjs +184 -0
- package/dist/deepkit/src/utilities.mjs +183 -0
- package/dist/helpers/automd-generator.cjs +4 -4
- package/dist/helpers/automd-generator.d.mts +1 -1
- package/dist/helpers/automd-generator.mjs +2 -2
- package/dist/helpers/docs-helper.cjs +3 -2
- package/dist/helpers/docs-helper.mjs +1 -1
- package/dist/helpers/load.cjs +15 -14
- 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 +5 -5
- package/dist/helpers/reflect.cjs +9 -9
- package/dist/helpers/reflect.mjs +3 -3
- package/dist/helpers/source-file-env.cjs +1 -1
- package/dist/helpers/source-file-env.mjs +1 -1
- package/dist/index.cjs +24 -26
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +14 -14
- package/dist/plugin-alloy/src/core/components/output.cjs +43 -0
- package/dist/plugin-alloy/src/core/components/output.mjs +42 -0
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +22 -0
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +21 -0
- package/dist/plugin-alloy/src/core/components/source-file.cjs +64 -0
- package/dist/plugin-alloy/src/core/components/source-file.mjs +62 -0
- package/dist/plugin-alloy/src/core/contexts/context.cjs +134 -0
- package/dist/plugin-alloy/src/core/contexts/context.mjs +126 -0
- package/dist/plugin-alloy/src/core/contexts/index.cjs +2 -0
- package/dist/plugin-alloy/src/core/contexts/index.mjs +4 -0
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +110 -0
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +101 -0
- package/dist/plugin-alloy/src/helpers/refkey.cjs +23 -0
- package/dist/plugin-alloy/src/helpers/refkey.mjs +22 -0
- package/dist/plugin-alloy/src/index.cjs +105 -0
- package/dist/plugin-alloy/src/index.mjs +103 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +115 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +114 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +39 -0
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +38 -0
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +72 -0
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +71 -0
- package/dist/plugin-alloy/src/types/components.cjs +22 -0
- package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/components.d.mts +1 -1
- package/dist/plugin-alloy/src/types/components.mjs +21 -0
- package/dist/plugin-alloy/src/types/plugin.cjs +53 -0
- package/dist/plugin-alloy/src/types/plugin.mjs +50 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +62 -0
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +61 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +131 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +129 -0
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +451 -0
- package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/tsdoc.d.mts +1 -1
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +442 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +216 -0
- package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +213 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +72 -0
- package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +71 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +124 -0
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +123 -0
- package/dist/plugin-automd/src/index.cjs +127 -0
- package/dist/plugin-automd/src/index.mjs +124 -0
- package/dist/plugin-automd/src/types/plugin.cjs +47 -0
- package/dist/plugin-automd/src/types/plugin.mjs +47 -0
- package/dist/plugin-automd/src/types/toc.cjs +26 -0
- package/dist/plugin-automd/src/types/toc.mjs +25 -0
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +74 -0
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +70 -0
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +71 -0
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +69 -0
- package/dist/plugin-babel/src/helpers/filters.cjs +158 -0
- package/dist/plugin-babel/src/helpers/filters.mjs +154 -0
- package/dist/plugin-babel/src/helpers/index.cjs +5 -0
- package/dist/plugin-babel/src/helpers/index.mjs +7 -0
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +200 -0
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +192 -0
- package/dist/plugin-babel/src/helpers/options.cjs +73 -0
- package/dist/plugin-babel/src/helpers/options.mjs +70 -0
- package/dist/plugin-babel/src/index.cjs +125 -0
- package/dist/plugin-babel/src/index.mjs +123 -0
- package/dist/plugin-babel/src/types/plugin.cjs +42 -0
- package/dist/plugin-babel/src/types/plugin.mjs +39 -0
- package/dist/powerlines/src/internal/helpers/hooks.cjs +136 -0
- package/dist/powerlines/src/internal/helpers/hooks.mjs +134 -0
- package/dist/powerlines/src/lib/build/esbuild.cjs +142 -0
- package/dist/powerlines/src/lib/build/esbuild.mjs +140 -0
- package/dist/powerlines/src/lib/constants/environments.cjs +6 -0
- package/dist/powerlines/src/lib/constants/environments.mjs +5 -0
- package/dist/powerlines/src/lib/entry.cjs +195 -0
- package/dist/powerlines/src/lib/entry.mjs +194 -0
- package/dist/powerlines/src/lib/logger.cjs +108 -0
- package/dist/powerlines/src/lib/logger.mjs +106 -0
- package/dist/powerlines/src/lib/unplugin/helpers.cjs +41 -0
- package/dist/powerlines/src/lib/unplugin/helpers.mjs +40 -0
- package/dist/powerlines/src/lib/unplugin/module-resolution.cjs +98 -0
- package/dist/powerlines/src/lib/unplugin/module-resolution.mjs +97 -0
- package/dist/powerlines/src/lib/unplugin/plugin.cjs +139 -0
- package/dist/powerlines/src/lib/unplugin/plugin.mjs +138 -0
- package/dist/powerlines/src/lib/utilities/bundle.cjs +74 -0
- package/dist/powerlines/src/lib/utilities/bundle.mjs +72 -0
- package/dist/powerlines/src/lib/utilities/resolve.cjs +69 -0
- package/dist/powerlines/src/lib/utilities/resolve.mjs +68 -0
- package/dist/powerlines/src/lib/utilities/source-file.cjs +68 -0
- package/dist/powerlines/src/lib/utilities/source-file.mjs +66 -0
- package/dist/powerlines/src/plugin-utils/paths.cjs +46 -0
- package/dist/powerlines/src/plugin-utils/paths.mjs +45 -0
- package/dist/powerlines/src/types/api.cjs +62 -0
- package/dist/powerlines/src/types/api.mjs +62 -0
- package/dist/powerlines/src/types/babel.cjs +156 -0
- package/dist/powerlines/src/types/babel.mjs +147 -0
- package/dist/powerlines/src/types/build.cjs +127 -0
- package/dist/{packages/powerlines → powerlines}/src/types/build.d.mts +6 -6
- package/dist/powerlines/src/types/build.mjs +121 -0
- package/dist/powerlines/src/types/commands.cjs +16 -0
- package/dist/powerlines/src/types/commands.mjs +15 -0
- package/dist/powerlines/src/types/config.cjs +420 -0
- package/dist/{packages/powerlines → powerlines}/src/types/config.d.mts +2 -1
- package/dist/powerlines/src/types/config.mjs +397 -0
- package/dist/powerlines/src/types/context.cjs +388 -0
- package/dist/{packages/powerlines → powerlines}/src/types/context.d.mts +2 -2
- package/dist/powerlines/src/types/context.mjs +371 -0
- package/dist/powerlines/src/types/fs.cjs +78 -0
- package/dist/powerlines/src/types/fs.mjs +75 -0
- package/dist/powerlines/src/types/hooks.cjs +71 -0
- package/dist/powerlines/src/types/hooks.mjs +68 -0
- package/dist/powerlines/src/types/index.cjs +11 -0
- package/dist/powerlines/src/types/index.mjs +13 -0
- package/dist/powerlines/src/types/plugin.cjs +184 -0
- package/dist/{packages/powerlines → powerlines}/src/types/plugin.d.mts +1 -1
- package/dist/powerlines/src/types/plugin.mjs +178 -0
- package/dist/powerlines/src/types/resolved.cjs +149 -0
- package/dist/powerlines/src/types/resolved.mjs +144 -0
- package/dist/{packages/powerlines → powerlines}/src/types/tsconfig.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.cjs +64 -0
- package/dist/{packages/powerlines → powerlines}/src/types/unplugin.d.mts +1 -1
- package/dist/powerlines/src/types/unplugin.mjs +62 -0
- package/dist/types/plugin.cjs +18 -19
- package/dist/types/plugin.d.mts +6 -6
- package/dist/types/plugin.mjs +4 -4
- package/package.json +7 -7
- package/dist/_virtual/rolldown_runtime.mjs +0 -33
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.cjs +0 -37
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/parse-type-definition.mjs +0 -37
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/to-array.mjs +0 -14
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +0 -14
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -3
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -5
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -3
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +0 -19
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +0 -19
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +0 -63
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +0 -63
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +0 -11
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.35/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +0 -16
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs +0 -32
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs +0 -32
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.cjs +0 -28
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-type.mjs +0 -28
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs +0 -106
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs +0 -106
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/regex.mjs +0 -8
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/slash.mjs +0 -14
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +0 -346
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +0 -346
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +0 -786
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +0 -786
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +0 -3
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +0 -3
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +0 -23
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +0 -22
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +0 -405
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +0 -404
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +0 -657
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +0 -657
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +0 -1054
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +0 -1054
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -42
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +0 -46
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +0 -45
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +0 -288
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +0 -285
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +0 -71
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +0 -68
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +0 -1013
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +0 -1007
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +0 -23
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +0 -13
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +0 -2698
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +0 -2685
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +0 -4457
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +0 -4454
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +0 -29
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +0 -29
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +0 -181
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +0 -176
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +0 -22
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +0 -17
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +0 -3967
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +0 -3962
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +0 -11768
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +0 -11763
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +0 -25
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +0 -20
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +0 -20
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +0 -17
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +0 -194
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +0 -191
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +0 -13
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +0 -12
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +0 -3
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +0 -3
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +0 -145
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +0 -138
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +0 -127
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +0 -125
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +0 -138
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +0 -136
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +0 -629
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +0 -627
- /package/dist/{packages/deepkit → deepkit}/schemas/reflection.d.mts +0 -0
- /package/dist/{packages/deepkit → deepkit}/src/types.d.mts +0 -0
- /package/dist/{packages/plugin-alloy → plugin-alloy}/src/core/components/source-file.d.mts +0 -0
- /package/dist/{packages/plugin-alloy → plugin-alloy}/src/markdown/components/markdown-file.d.mts +0 -0
- /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/index.d.mts +0 -0
- /package/dist/{packages/plugin-alloy → plugin-alloy}/src/types/plugin.d.mts +0 -0
- /package/dist/{packages/plugin-alloy → plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
- /package/dist/{packages/plugin-automd → plugin-automd}/src/types/plugin.d.mts +0 -0
- /package/dist/{packages/plugin-automd → plugin-automd}/src/types/toc.d.mts +0 -0
- /package/dist/{packages/plugin-babel → plugin-babel}/src/types/index.d.mts +0 -0
- /package/dist/{packages/plugin-babel → plugin-babel}/src/types/plugin.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/babel.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/index.d.mts +0 -0
- /package/dist/{packages/powerlines → powerlines}/src/types/resolved.d.mts +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_context = require('../powerlines/src/types/context.cjs');
|
|
2
3
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
|
-
const
|
|
4
|
+
const require_capnp = require('../deepkit/src/capnp.cjs');
|
|
5
|
+
const require_resolve_reflections = require('../deepkit/src/resolve-reflections.cjs');
|
|
6
|
+
const require_reflection = require('../deepkit/schemas/reflection2.cjs');
|
|
4
7
|
const require_helpers_reflect = require('./reflect.cjs');
|
|
5
8
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
|
-
let powerlines_types_context = require("powerlines/types/context");
|
|
7
|
-
let __powerlines_deepkit_capnp = require("@powerlines/deepkit/capnp");
|
|
8
|
-
let __powerlines_deepkit_resolve_reflections = require("@powerlines/deepkit/resolve-reflections");
|
|
9
|
-
let __powerlines_deepkit_schemas_reflection = require("@powerlines/deepkit/schemas/reflection");
|
|
10
9
|
let __stryke_capnp = require("@stryke/capnp");
|
|
11
10
|
__stryke_capnp = require_rolldown_runtime.__toESM(__stryke_capnp);
|
|
11
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
12
12
|
let __stryke_fs_buffer = require("@stryke/fs/buffer");
|
|
13
13
|
let __stryke_type_checks_is_empty_object = require("@stryke/type-checks/is-empty-object");
|
|
14
14
|
let node_fs = require("node:fs");
|
|
@@ -26,7 +26,7 @@ async function resolveRuntimeTypeFile(context) {
|
|
|
26
26
|
return resolved;
|
|
27
27
|
}
|
|
28
28
|
resolveRuntimeTypeFile.__type = [
|
|
29
|
-
() =>
|
|
29
|
+
() => require_context.__ΩUnresolvedContext,
|
|
30
30
|
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
31
31
|
"context",
|
|
32
32
|
"resolveRuntimeTypeFile",
|
|
@@ -46,7 +46,7 @@ async function getEnvDefaultTypeDefinition(context) {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
getEnvDefaultTypeDefinition.__type = [
|
|
49
|
-
() =>
|
|
49
|
+
() => require_context.__ΩUnresolvedContext,
|
|
50
50
|
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
51
51
|
"context",
|
|
52
52
|
"getEnvDefaultTypeDefinition",
|
|
@@ -65,7 +65,7 @@ async function getSecretsDefaultTypeDefinition(context) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
getSecretsDefaultTypeDefinition.__type = [
|
|
68
|
-
() =>
|
|
68
|
+
() => require_context.__ΩUnresolvedContext,
|
|
69
69
|
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
70
70
|
"context",
|
|
71
71
|
"getSecretsDefaultTypeDefinition",
|
|
@@ -79,10 +79,10 @@ getSecretsDefaultTypeDefinition.__type = [
|
|
|
79
79
|
* @returns The path to the environment type reflections.
|
|
80
80
|
*/
|
|
81
81
|
function getEnvTypeReflectionsPath(context, name = "env") {
|
|
82
|
-
return
|
|
82
|
+
return (0, __stryke_path_join_paths.joinPaths)(require_resolve_reflections.getReflectionsPath(context), "env", `${name}-types.bin`);
|
|
83
83
|
}
|
|
84
84
|
getEnvTypeReflectionsPath.__type = [
|
|
85
|
-
() =>
|
|
85
|
+
() => require_context.__ΩContext,
|
|
86
86
|
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
87
87
|
"context",
|
|
88
88
|
() => require_types_plugin.__ΩEnvType,
|
|
@@ -105,7 +105,7 @@ async function readEnvTypeReflection(context, name = "env") {
|
|
|
105
105
|
if (!context.env.types.env || (0, __stryke_type_checks_is_empty_object.isEmptyObject)(context.env.types.env)) {
|
|
106
106
|
const reflection$1 = require_helpers_reflect.createEnvReflection(context);
|
|
107
107
|
const message = new __stryke_capnp.Message();
|
|
108
|
-
reflection$1.messageRoot = message.initRoot(
|
|
108
|
+
reflection$1.messageRoot = message.initRoot(require_reflection.SerializedTypes);
|
|
109
109
|
reflection$1.dataBuffer = message.toArrayBuffer();
|
|
110
110
|
context.env.types.env = reflection$1;
|
|
111
111
|
await writeEnvTypeReflection(context, context.env.types.env, name);
|
|
@@ -113,8 +113,8 @@ async function readEnvTypeReflection(context, name = "env") {
|
|
|
113
113
|
return context.env.types.env;
|
|
114
114
|
}
|
|
115
115
|
const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
|
|
116
|
-
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(
|
|
117
|
-
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(
|
|
116
|
+
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(require_reflection.SerializedTypes);
|
|
117
|
+
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(require_capnp.convertFromCapnp(messageRoot.types)));
|
|
118
118
|
context.env.types[name] = reflection;
|
|
119
119
|
context.env.types[name].messageRoot = messageRoot;
|
|
120
120
|
context.env.types[name].dataBuffer = buffer;
|
|
@@ -141,7 +141,7 @@ readEnvTypeReflection.__type = [
|
|
|
141
141
|
async function writeEnvTypeReflection(context, reflection, name = "env") {
|
|
142
142
|
const serialized = reflection.serializeType();
|
|
143
143
|
const message = new __stryke_capnp.Message();
|
|
144
|
-
|
|
144
|
+
require_capnp.convertToCapnp(serialized, message.initRoot(require_reflection.SerializedTypes)._initTypes(serialized.length));
|
|
145
145
|
await (0, __stryke_fs_buffer.writeFileBuffer)(getEnvTypeReflectionsPath(context, name), message.toArrayBuffer());
|
|
146
146
|
}
|
|
147
147
|
writeEnvTypeReflection.__type = [
|
|
@@ -157,7 +157,7 @@ writeEnvTypeReflection.__type = [
|
|
|
157
157
|
"Pn!2\"P\"7#2$n%2&>'\"/(?)"
|
|
158
158
|
];
|
|
159
159
|
function getEnvReflectionsPath(context, name) {
|
|
160
|
-
return
|
|
160
|
+
return (0, __stryke_path_join_paths.joinPaths)(require_resolve_reflections.getReflectionsPath(context), "env", `${name}.bin`);
|
|
161
161
|
}
|
|
162
162
|
getEnvReflectionsPath.__type = [
|
|
163
163
|
() => require_types_plugin.__ΩEnvPluginContext,
|
|
@@ -189,7 +189,7 @@ async function readEnvReflection(context) {
|
|
|
189
189
|
});
|
|
190
190
|
reflection$1.name = "Env";
|
|
191
191
|
const message = new __stryke_capnp.Message();
|
|
192
|
-
reflection$1.messageRoot = message.initRoot(
|
|
192
|
+
reflection$1.messageRoot = message.initRoot(require_reflection.SerializedTypes);
|
|
193
193
|
reflection$1.dataBuffer = message.toArrayBuffer();
|
|
194
194
|
context.env.used.env = reflection$1;
|
|
195
195
|
await writeEnvReflection(context, context.env.used.env, "env");
|
|
@@ -197,8 +197,8 @@ async function readEnvReflection(context) {
|
|
|
197
197
|
return context.env.used.env;
|
|
198
198
|
}
|
|
199
199
|
const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
|
|
200
|
-
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(
|
|
201
|
-
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(
|
|
200
|
+
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(require_reflection.SerializedTypes);
|
|
201
|
+
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(require_capnp.convertFromCapnp(messageRoot.types)));
|
|
202
202
|
context.env.used.env = reflection;
|
|
203
203
|
context.env.used.env.messageRoot = messageRoot;
|
|
204
204
|
context.env.used.env.dataBuffer = buffer;
|
|
@@ -234,7 +234,7 @@ async function readSecretsReflection(context) {
|
|
|
234
234
|
});
|
|
235
235
|
reflection$1.name = "Secrets";
|
|
236
236
|
const message = new __stryke_capnp.Message();
|
|
237
|
-
reflection$1.messageRoot = message.initRoot(
|
|
237
|
+
reflection$1.messageRoot = message.initRoot(require_reflection.SerializedTypes);
|
|
238
238
|
reflection$1.dataBuffer = message.toArrayBuffer();
|
|
239
239
|
context.env.used.secrets = reflection$1;
|
|
240
240
|
await writeEnvReflection(context, context.env.used.secrets, "secrets");
|
|
@@ -242,8 +242,8 @@ async function readSecretsReflection(context) {
|
|
|
242
242
|
return context.env.used.secrets;
|
|
243
243
|
}
|
|
244
244
|
const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
|
|
245
|
-
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(
|
|
246
|
-
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(
|
|
245
|
+
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(require_reflection.SerializedTypes);
|
|
246
|
+
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)(require_capnp.convertFromCapnp(messageRoot.types)));
|
|
247
247
|
context.env.used.secrets = reflection;
|
|
248
248
|
context.env.used.secrets.messageRoot = messageRoot;
|
|
249
249
|
context.env.used.secrets.dataBuffer = buffer;
|
|
@@ -267,7 +267,7 @@ readSecretsReflection.__type = [
|
|
|
267
267
|
async function writeEnvReflection(context, reflection, name = "env") {
|
|
268
268
|
const serialized = reflection.serializeType();
|
|
269
269
|
const message = new __stryke_capnp.Message();
|
|
270
|
-
|
|
270
|
+
require_capnp.convertToCapnp(serialized, message.initRoot(require_reflection.SerializedTypes)._initTypes(serialized.length));
|
|
271
271
|
await (0, __stryke_fs_buffer.writeFileBuffer)(getEnvReflectionsPath(context, name), message.toArrayBuffer());
|
|
272
272
|
}
|
|
273
273
|
writeEnvReflection.__type = [
|
|
@@ -292,7 +292,7 @@ writeEnvReflection.__type = [
|
|
|
292
292
|
function writeEnvReflectionSync(context, reflection, name = "env") {
|
|
293
293
|
const serialized = reflection.serializeType();
|
|
294
294
|
const message = new __stryke_capnp.Message();
|
|
295
|
-
|
|
295
|
+
require_capnp.convertToCapnp(serialized, message.initRoot(require_reflection.SerializedTypes)._initTypes(serialized.length));
|
|
296
296
|
(0, __stryke_fs_buffer.writeFileBufferSync)(getEnvReflectionsPath(context, name), message.toArrayBuffer());
|
|
297
297
|
}
|
|
298
298
|
writeEnvReflectionSync.__type = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Context, UnresolvedContext } from "../
|
|
1
|
+
import { Context, UnresolvedContext } from "../powerlines/src/types/context.mjs";
|
|
2
2
|
import { EnvPluginContext, EnvPluginResolvedConfig, EnvType } from "../types/plugin.mjs";
|
|
3
3
|
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
4
4
|
import { TypeDefinition } from "@stryke/types/configuration";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { __ΩContext, __ΩUnresolvedContext } from "../powerlines/src/types/context.mjs";
|
|
1
2
|
import { __ΩEnvPluginContext, __ΩEnvPluginResolvedConfig, __ΩEnvType } from "../types/plugin.mjs";
|
|
2
|
-
import {
|
|
3
|
+
import { convertFromCapnp, convertToCapnp } from "../deepkit/src/capnp.mjs";
|
|
4
|
+
import { getReflectionsPath } from "../deepkit/src/resolve-reflections.mjs";
|
|
5
|
+
import { SerializedTypes } from "../deepkit/schemas/reflection2.mjs";
|
|
3
6
|
import { createEnvReflection } from "./reflect.mjs";
|
|
4
7
|
import { ReflectionClass, ReflectionKind, deserializeType, resolveClassType } from "@powerlines/deepkit/vendor/type";
|
|
5
|
-
import { __ΩContext, __ΩUnresolvedContext } from "powerlines/types/context";
|
|
6
|
-
import { convertFromCapnp, convertToCapnp } from "@powerlines/deepkit/capnp";
|
|
7
|
-
import { getReflectionsPath } from "@powerlines/deepkit/resolve-reflections";
|
|
8
|
-
import { SerializedTypes } from "@powerlines/deepkit/schemas/reflection";
|
|
9
8
|
import * as capnp from "@stryke/capnp";
|
|
9
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
10
10
|
import { readFileBuffer, writeFileBuffer, writeFileBufferSync } from "@stryke/fs/buffer";
|
|
11
11
|
import { isEmptyObject } from "@stryke/type-checks/is-empty-object";
|
|
12
12
|
import { existsSync } from "node:fs";
|
package/dist/helpers/reflect.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
2
|
const require_types_runtime = require('../types/runtime.cjs');
|
|
3
3
|
const require_types_plugin = require('../types/plugin.cjs');
|
|
4
|
-
const
|
|
5
|
-
const require_is_parent_path = require('../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs');
|
|
4
|
+
const require_reflect_type = require('../deepkit/src/reflect-type.cjs');
|
|
6
5
|
const require_helpers_persistence = require('./persistence.cjs');
|
|
7
6
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
8
7
|
let __stryke_string_format_title_case = require("@stryke/string-format/title-case");
|
|
9
|
-
let
|
|
8
|
+
let __stryke_path_join_paths = require("@stryke/path/join-paths");
|
|
9
|
+
let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
10
10
|
|
|
11
11
|
//#region src/helpers/reflect.ts
|
|
12
12
|
function __assignType(fn, args) {
|
|
@@ -223,11 +223,11 @@ createSecretsReflection.__type = [
|
|
|
223
223
|
];
|
|
224
224
|
async function reflectEnv(context, file, name) {
|
|
225
225
|
let config;
|
|
226
|
-
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await
|
|
227
|
-
file: !
|
|
226
|
+
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
|
|
227
|
+
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
228
228
|
name
|
|
229
229
|
}));
|
|
230
|
-
const defaultConfigType = await
|
|
230
|
+
const defaultConfigType = await require_reflect_type.reflectType(context, await require_helpers_persistence.getEnvDefaultTypeDefinition(context));
|
|
231
231
|
return mergeEnvReflections(context, [
|
|
232
232
|
await require_helpers_persistence.readEnvTypeReflection(context, "env"),
|
|
233
233
|
config,
|
|
@@ -244,11 +244,11 @@ reflectEnv.__type = [
|
|
|
244
244
|
];
|
|
245
245
|
async function reflectSecrets(context, file, name) {
|
|
246
246
|
let config;
|
|
247
|
-
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await
|
|
248
|
-
file: !
|
|
247
|
+
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
|
|
248
|
+
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
249
249
|
name
|
|
250
250
|
}));
|
|
251
|
-
const defaultSecretsType = await
|
|
251
|
+
const defaultSecretsType = await require_reflect_type.reflectType(context, await require_helpers_persistence.getSecretsDefaultTypeDefinition(context));
|
|
252
252
|
return mergeSecretsReflections(context, [
|
|
253
253
|
await require_helpers_persistence.readSecretsReflection(context),
|
|
254
254
|
config,
|
package/dist/helpers/reflect.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __ΩEnvInterface, __ΩSecretsInterface } from "../types/runtime.mjs";
|
|
2
2
|
import { __ΩEnvPluginContext } from "../types/plugin.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { isParentPath } from "../node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs";
|
|
3
|
+
import { reflectType } from "../deepkit/src/reflect-type.mjs";
|
|
5
4
|
import { getEnvDefaultTypeDefinition, getSecretsDefaultTypeDefinition, readEnvTypeReflection, readSecretsReflection } from "./persistence.mjs";
|
|
6
5
|
import { ReflectionClass, ReflectionKind, __ΩTypeClass, __ΩTypeObjectLiteral, merge, resolveClassType } from "@powerlines/deepkit/vendor/type";
|
|
7
6
|
import { titleCase } from "@stryke/string-format/title-case";
|
|
8
|
-
import {
|
|
7
|
+
import { joinPaths } from "@stryke/path/join-paths";
|
|
8
|
+
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
9
9
|
|
|
10
10
|
//#region src/helpers/reflect.ts
|
|
11
11
|
function __assignType(fn, args) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __stryke_env_types = require("@stryke/env/types");
|
|
3
2
|
let __stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
4
3
|
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
4
|
+
let __stryke_env_types = require("@stryke/env/types");
|
|
5
5
|
|
|
6
6
|
//#region src/helpers/source-file-env.ts
|
|
7
7
|
function __assignType(fn, args) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ENV_PREFIXES } from "@stryke/env/types";
|
|
2
1
|
import { camelCase } from "@stryke/string-format/camel-case";
|
|
3
2
|
import { isString } from "@stryke/type-checks/is-string";
|
|
3
|
+
import { ENV_PREFIXES } from "@stryke/env/types";
|
|
4
4
|
|
|
5
5
|
//#region src/helpers/source-file-env.ts
|
|
6
6
|
function __assignType(fn, args) {
|
package/dist/index.cjs
CHANGED
|
@@ -3,13 +3,10 @@ const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
|
|
|
3
3
|
const require_types_runtime = require('./types/runtime.cjs');
|
|
4
4
|
const require_types_plugin = require('./types/plugin.cjs');
|
|
5
5
|
require('./types/index.cjs');
|
|
6
|
-
const require_join_paths = require('./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
7
|
-
const require_is_parent_path = require('./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.cjs');
|
|
8
6
|
const require_helpers_reflect = require('./helpers/reflect.cjs');
|
|
9
7
|
const require_helpers_persistence = require('./helpers/persistence.cjs');
|
|
10
8
|
const require_helpers_template_helpers = require('./helpers/template-helpers.cjs');
|
|
11
9
|
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
10
|
const require_helpers_load = require('./helpers/load.cjs');
|
|
14
11
|
const require_helpers_create_reflection_resource = require('./helpers/create-reflection-resource.cjs');
|
|
15
12
|
require('./helpers/index.cjs');
|
|
@@ -20,17 +17,18 @@ const require_components_env = require('./components/env.cjs');
|
|
|
20
17
|
require('./components/index.cjs');
|
|
21
18
|
const require_babel_plugin = require('./babel/plugin.cjs');
|
|
22
19
|
require('./babel/index.cjs');
|
|
23
|
-
const
|
|
24
|
-
const
|
|
20
|
+
const require_index = require('./plugin-babel/src/index.cjs');
|
|
21
|
+
const require_index$1 = require('./plugin-alloy/src/index.cjs');
|
|
22
|
+
const require_index$2 = require('./plugin-automd/src/index.cjs');
|
|
25
23
|
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
24
|
+
let defu = require("defu");
|
|
25
|
+
defu = require_rolldown_runtime.__toESM(defu);
|
|
26
|
+
let __stryke_convert_parse_type_definition = require("@stryke/convert/parse-type-definition");
|
|
27
|
+
let __stryke_convert_to_array = require("@stryke/convert/to-array");
|
|
28
|
+
let __stryke_path_is_parent_path = require("@stryke/path/is-parent-path");
|
|
26
29
|
let __stryke_env_types = require("@stryke/env/types");
|
|
30
|
+
let __stryke_path_join = require("@stryke/path/join");
|
|
27
31
|
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
28
|
-
let __powerlines_plugin_alloy = require("@powerlines/plugin-alloy");
|
|
29
|
-
__powerlines_plugin_alloy = require_rolldown_runtime.__toESM(__powerlines_plugin_alloy);
|
|
30
|
-
let __powerlines_plugin_automd = require("@powerlines/plugin-automd");
|
|
31
|
-
__powerlines_plugin_automd = require_rolldown_runtime.__toESM(__powerlines_plugin_automd);
|
|
32
|
-
let __powerlines_plugin_babel = require("@powerlines/plugin-babel");
|
|
33
|
-
__powerlines_plugin_babel = require_rolldown_runtime.__toESM(__powerlines_plugin_babel);
|
|
34
32
|
let __stryke_fs_exists = require("@stryke/fs/exists");
|
|
35
33
|
let __stryke_string_format_constant_case = require("@stryke/string-format/constant-case");
|
|
36
34
|
|
|
@@ -40,31 +38,31 @@ let __stryke_string_format_constant_case = require("@stryke/string-format/consta
|
|
|
40
38
|
*/
|
|
41
39
|
const plugin = (options = {}) => {
|
|
42
40
|
return [
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
require_index$1.default(options.alloy),
|
|
42
|
+
require_index.default(options.babel),
|
|
45
43
|
{
|
|
46
44
|
name: "env",
|
|
47
45
|
async config() {
|
|
48
46
|
this.debug("Providing default configuration for the Powerlines `env` build plugin.");
|
|
49
47
|
const config = {
|
|
50
|
-
env:
|
|
48
|
+
env: (0, defu.default)(options, {
|
|
51
49
|
types: {},
|
|
52
50
|
prefix: []
|
|
53
51
|
}),
|
|
54
52
|
transform: { babel: { plugins: [require_babel_plugin.envBabelPlugin] } }
|
|
55
53
|
};
|
|
56
|
-
if (config.env.types) config.env.types =
|
|
54
|
+
if (config.env.types) config.env.types = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(config.env.types);
|
|
57
55
|
else {
|
|
58
56
|
this.warn("The `env.types` configuration parameter was not provided. Please ensure this is expected.");
|
|
59
57
|
const envDefaultTypeDefinition = await require_helpers_persistence.getEnvDefaultTypeDefinition(this);
|
|
60
|
-
config.env.types =
|
|
58
|
+
config.env.types = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(`${envDefaultTypeDefinition.file}#${envDefaultTypeDefinition.name}`);
|
|
61
59
|
}
|
|
62
|
-
if (config.env.secrets) config.env.secrets =
|
|
60
|
+
if (config.env.secrets) config.env.secrets = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(config.env.secrets);
|
|
63
61
|
else {
|
|
64
62
|
const secretsDefaultTypeDefinition = await require_helpers_persistence.getSecretsDefaultTypeDefinition(this);
|
|
65
|
-
config.env.secrets =
|
|
63
|
+
config.env.secrets = (0, __stryke_convert_parse_type_definition.parseTypeDefinition)(`${secretsDefaultTypeDefinition.file}#${secretsDefaultTypeDefinition.name}`);
|
|
66
64
|
}
|
|
67
|
-
config.env.prefix =
|
|
65
|
+
config.env.prefix = (0, __stryke_convert_to_array.toArray)(config.env.prefix ?? []).reduce((ret, prefix) => {
|
|
68
66
|
const formattedPrefix = (0, __stryke_string_format_constant_case.constantCase)(prefix);
|
|
69
67
|
if (!ret.includes(formattedPrefix)) ret.push(formattedPrefix);
|
|
70
68
|
return ret;
|
|
@@ -73,7 +71,7 @@ const plugin = (options = {}) => {
|
|
|
73
71
|
"POWERLINES_",
|
|
74
72
|
this.config.framework && this.config.framework !== "powerlines" && `${(0, __stryke_string_format_constant_case.constantCase)(this.config.framework)}_`
|
|
75
73
|
].filter(Boolean));
|
|
76
|
-
config.env.prefix =
|
|
74
|
+
config.env.prefix = (0, __stryke_convert_to_array.toArray)(config.env.prefix).reduce((ret, prefix) => {
|
|
77
75
|
if (!ret.includes(prefix.replace(/_$/g, ""))) ret.push(prefix.replace(/_$/g, ""));
|
|
78
76
|
return ret;
|
|
79
77
|
}, []);
|
|
@@ -81,7 +79,7 @@ const plugin = (options = {}) => {
|
|
|
81
79
|
},
|
|
82
80
|
async configResolved() {
|
|
83
81
|
this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
|
|
84
|
-
this.env =
|
|
82
|
+
this.env = (0, defu.default)({ parsed: await require_helpers_load.loadEnv(this, this.config.env) }, this.env ?? {}, {
|
|
85
83
|
types: { env: {} },
|
|
86
84
|
used: {
|
|
87
85
|
env: {},
|
|
@@ -98,10 +96,10 @@ const plugin = (options = {}) => {
|
|
|
98
96
|
if ((0, __stryke_fs_exists.existsSync)(require_helpers_persistence.getEnvReflectionsPath(this, "secrets"))) this.env.used.secrets = await require_helpers_persistence.readSecretsReflection(this);
|
|
99
97
|
} else {
|
|
100
98
|
this.debug(`Starting environment configuration reflection initialization.`);
|
|
101
|
-
this.env.types.env = await require_helpers_reflect.reflectEnv(this, this.config.env.types?.file ?
|
|
99
|
+
this.env.types.env = await require_helpers_reflect.reflectEnv(this, this.config.env.types?.file ? (0, __stryke_path_is_parent_path.isParentPath)(this.config.env.types?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.types?.file : (0, __stryke_path_join.joinPaths)(this.config.projectRoot, this.config.env.types?.file) : void 0, this.config.env.types?.name);
|
|
102
100
|
if (!this.env.types.env) throw new Error("Failed to find the environment configuration type reflection in the context.");
|
|
103
101
|
await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.env, "env");
|
|
104
|
-
this.env.types.secrets = await require_helpers_reflect.reflectSecrets(this, this.config.env.secrets?.file ?
|
|
102
|
+
this.env.types.secrets = await require_helpers_reflect.reflectSecrets(this, this.config.env.secrets?.file ? (0, __stryke_path_is_parent_path.isParentPath)(this.config.env.secrets?.file, this.workspaceConfig.workspaceRoot) ? this.config.env.secrets?.file : (0, __stryke_path_join.joinPaths)(this.config.projectRoot, this.config.env.secrets?.file) : void 0, this.config.env.secrets?.name);
|
|
105
103
|
if (!this.env.types.secrets) throw new Error("Failed to find the secrets configuration type reflection in the context.");
|
|
106
104
|
await require_helpers_persistence.writeEnvTypeReflection(this, this.env.types.secrets, "secrets");
|
|
107
105
|
this.debug(`Resolved ${this.env.types.env.getProperties().length ?? 0} environment configuration parameters and ${this.env.types.secrets?.getProperties().length ?? 0} secret configuration parameters`);
|
|
@@ -154,7 +152,7 @@ const plugin = (options = {}) => {
|
|
|
154
152
|
}
|
|
155
153
|
},
|
|
156
154
|
async docs() {
|
|
157
|
-
this.debug(`Documenting environment variables configuration values in "${
|
|
155
|
+
this.debug(`Documenting environment variables configuration values in "${(0, __stryke_path_join.joinPaths)(require_helpers_docs_helper.getDocsOutputPath(this), "env.md")}"`);
|
|
158
156
|
return this.render((0, __alloy_js_core_jsx_runtime.createComponent)(require_components_docs.EnvDocsFile, { levelOffset: 0 }));
|
|
159
157
|
},
|
|
160
158
|
async buildEnd() {
|
|
@@ -166,7 +164,7 @@ const plugin = (options = {}) => {
|
|
|
166
164
|
{
|
|
167
165
|
name: "env:automd-generator",
|
|
168
166
|
config() {
|
|
169
|
-
return { automd:
|
|
167
|
+
return { automd: (0, defu.default)(options.automd ?? {}, { generators: { "env": require_helpers_automd_generator.env(this) } }) };
|
|
170
168
|
}
|
|
171
169
|
},
|
|
172
170
|
{
|
|
@@ -175,7 +173,7 @@ const plugin = (options = {}) => {
|
|
|
175
173
|
return { envPrefix: this.config?.env?.prefix };
|
|
176
174
|
} }
|
|
177
175
|
},
|
|
178
|
-
|
|
176
|
+
require_index$2.default(options.automd)
|
|
179
177
|
];
|
|
180
178
|
};
|
|
181
179
|
var src_default = plugin;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Plugin } from "./
|
|
1
|
+
import { Plugin } from "./powerlines/src/types/plugin.mjs";
|
|
2
2
|
import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./types/runtime.mjs";
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./types/plugin.mjs";
|
|
4
4
|
import { EnvDocsFile, EnvDocsFileProps, __ΩEnvDocsFileProps } from "./components/docs.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
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 { joinPaths } from "./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/join-paths.mjs";
|
|
5
|
-
import { isParentPath } from "./node_modules/.pnpm/@stryke_path@0.26.0/node_modules/@stryke/path/dist/is-parent-path.mjs";
|
|
6
4
|
import { BaseEnv, BaseSecrets, __ΩCreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from "./helpers/reflect.mjs";
|
|
7
5
|
import { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection } from "./helpers/persistence.mjs";
|
|
8
6
|
import { createTemplateReflection } from "./helpers/template-helpers.mjs";
|
|
9
7
|
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";
|
|
11
8
|
import { loadEnv, loadEnvFromContext } from "./helpers/load.mjs";
|
|
12
9
|
import { createReflectionResource } from "./helpers/create-reflection-resource.mjs";
|
|
13
10
|
import "./helpers/index.mjs";
|
|
@@ -18,14 +15,17 @@ import { EnvBuiltin, EnvTypeDefinition } from "./components/env.mjs";
|
|
|
18
15
|
import "./components/index.mjs";
|
|
19
16
|
import { envBabelPlugin } from "./babel/plugin.mjs";
|
|
20
17
|
import "./babel/index.mjs";
|
|
21
|
-
import
|
|
22
|
-
import
|
|
18
|
+
import src_default$3 from "./plugin-babel/src/index.mjs";
|
|
19
|
+
import src_default$1 from "./plugin-alloy/src/index.mjs";
|
|
20
|
+
import src_default$2 from "./plugin-automd/src/index.mjs";
|
|
23
21
|
import { ReflectionClass, ReflectionKind } from "@powerlines/deepkit/vendor/type";
|
|
22
|
+
import defu$1 from "defu";
|
|
23
|
+
import { parseTypeDefinition } from "@stryke/convert/parse-type-definition";
|
|
24
|
+
import { toArray } from "@stryke/convert/to-array";
|
|
25
|
+
import { isParentPath } from "@stryke/path/is-parent-path";
|
|
24
26
|
import { ENV_PREFIXES } from "@stryke/env/types";
|
|
27
|
+
import { joinPaths } from "@stryke/path/join";
|
|
25
28
|
import { createComponent } from "@alloy-js/core/jsx-runtime";
|
|
26
|
-
import alloy from "@powerlines/plugin-alloy";
|
|
27
|
-
import automd from "@powerlines/plugin-automd";
|
|
28
|
-
import babel from "@powerlines/plugin-babel";
|
|
29
29
|
import { existsSync } from "@stryke/fs/exists";
|
|
30
30
|
import { constantCase } from "@stryke/string-format/constant-case";
|
|
31
31
|
|
|
@@ -35,14 +35,14 @@ import { constantCase } from "@stryke/string-format/constant-case";
|
|
|
35
35
|
*/
|
|
36
36
|
const plugin = (options = {}) => {
|
|
37
37
|
return [
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
src_default$1(options.alloy),
|
|
39
|
+
src_default$3(options.babel),
|
|
40
40
|
{
|
|
41
41
|
name: "env",
|
|
42
42
|
async config() {
|
|
43
43
|
this.debug("Providing default configuration for the Powerlines `env` build plugin.");
|
|
44
44
|
const config = {
|
|
45
|
-
env: defu(options, {
|
|
45
|
+
env: defu$1(options, {
|
|
46
46
|
types: {},
|
|
47
47
|
prefix: []
|
|
48
48
|
}),
|
|
@@ -76,7 +76,7 @@ const plugin = (options = {}) => {
|
|
|
76
76
|
},
|
|
77
77
|
async configResolved() {
|
|
78
78
|
this.debug(`Environment plugin configuration has been resolved for the Powerlines project.`);
|
|
79
|
-
this.env = defu({ parsed: await loadEnv(this, this.config.env) }, this.env ?? {}, {
|
|
79
|
+
this.env = defu$1({ parsed: await loadEnv(this, this.config.env) }, this.env ?? {}, {
|
|
80
80
|
types: { env: {} },
|
|
81
81
|
used: {
|
|
82
82
|
env: {},
|
|
@@ -161,7 +161,7 @@ const plugin = (options = {}) => {
|
|
|
161
161
|
{
|
|
162
162
|
name: "env:automd-generator",
|
|
163
163
|
config() {
|
|
164
|
-
return { automd: defu(options.automd ?? {}, { generators: { "env": env(this) } }) };
|
|
164
|
+
return { automd: defu$1(options.automd ?? {}, { generators: { "env": env(this) } }) };
|
|
165
165
|
}
|
|
166
166
|
},
|
|
167
167
|
{
|
|
@@ -170,7 +170,7 @@ const plugin = (options = {}) => {
|
|
|
170
170
|
return { envPrefix: this.config?.env?.prefix };
|
|
171
171
|
} }
|
|
172
172
|
},
|
|
173
|
-
|
|
173
|
+
src_default$2(options.automd)
|
|
174
174
|
];
|
|
175
175
|
};
|
|
176
176
|
var src_default = plugin;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_context = require('../contexts/context.cjs');
|
|
3
|
+
let __stryke_path_replace = require("@stryke/path/replace");
|
|
4
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
5
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
6
|
+
|
|
7
|
+
//#region ../plugin-alloy/src/core/components/output.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
10
|
+
*/
|
|
11
|
+
function Output(props) {
|
|
12
|
+
const [{ children, context, meta, basePath }, rest] = (0, __alloy_js_core.splitProps)(props, [
|
|
13
|
+
"children",
|
|
14
|
+
"context",
|
|
15
|
+
"meta",
|
|
16
|
+
"basePath"
|
|
17
|
+
]);
|
|
18
|
+
const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
19
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Output, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
20
|
+
get basePath() {
|
|
21
|
+
return basePathRef.value;
|
|
22
|
+
},
|
|
23
|
+
get children() {
|
|
24
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_context.PowerlinesContext.Provider, {
|
|
25
|
+
value: {
|
|
26
|
+
value: context,
|
|
27
|
+
meta: meta ?? {}
|
|
28
|
+
},
|
|
29
|
+
get children() {
|
|
30
|
+
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
31
|
+
get when() {
|
|
32
|
+
return Boolean(context);
|
|
33
|
+
},
|
|
34
|
+
children
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
//#endregion
|
|
43
|
+
exports.Output = Output;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PowerlinesContext } from "../contexts/context.mjs";
|
|
2
|
+
import { replacePath } from "@stryke/path/replace";
|
|
3
|
+
import { Output, Show, computed, splitProps } from "@alloy-js/core";
|
|
4
|
+
import { createComponent, mergeProps } from "@alloy-js/core/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region ../plugin-alloy/src/core/components/output.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Output component for rendering the Powerlines plugin's output files via templates.
|
|
9
|
+
*/
|
|
10
|
+
function Output$1(props) {
|
|
11
|
+
const [{ children, context, meta, basePath }, rest] = splitProps(props, [
|
|
12
|
+
"children",
|
|
13
|
+
"context",
|
|
14
|
+
"meta",
|
|
15
|
+
"basePath"
|
|
16
|
+
]);
|
|
17
|
+
const basePathRef = computed(() => basePath ? replacePath(basePath, context.workspaceConfig.workspaceRoot) : context.workspaceConfig.workspaceRoot);
|
|
18
|
+
return createComponent(Output, mergeProps(rest, {
|
|
19
|
+
get basePath() {
|
|
20
|
+
return basePathRef.value;
|
|
21
|
+
},
|
|
22
|
+
get children() {
|
|
23
|
+
return createComponent(PowerlinesContext.Provider, {
|
|
24
|
+
value: {
|
|
25
|
+
value: context,
|
|
26
|
+
meta: meta ?? {}
|
|
27
|
+
},
|
|
28
|
+
get children() {
|
|
29
|
+
return createComponent(Show, {
|
|
30
|
+
get when() {
|
|
31
|
+
return Boolean(context);
|
|
32
|
+
},
|
|
33
|
+
children
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//#endregion
|
|
42
|
+
export { Output$1 as Output };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
let __alloy_js_core = require("@alloy-js/core");
|
|
3
|
+
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
4
|
+
|
|
5
|
+
//#region ../plugin-alloy/src/core/components/single-line-comment.tsx
|
|
6
|
+
/**
|
|
7
|
+
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
8
|
+
* are broken into multiple lines
|
|
9
|
+
*/
|
|
10
|
+
function SingleLineComment(props) {
|
|
11
|
+
const { variant = "double-slash", children } = props;
|
|
12
|
+
const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : "// ";
|
|
13
|
+
return [commentStart, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("align", {
|
|
14
|
+
string: commentStart,
|
|
15
|
+
get children() {
|
|
16
|
+
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
|
|
17
|
+
}
|
|
18
|
+
})];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
exports.SingleLineComment = SingleLineComment;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Prose } from "@alloy-js/core";
|
|
2
|
+
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region ../plugin-alloy/src/core/components/single-line-comment.tsx
|
|
5
|
+
/**
|
|
6
|
+
* A single line comment block. The children are rendered as a prose element, which means that they
|
|
7
|
+
* are broken into multiple lines
|
|
8
|
+
*/
|
|
9
|
+
function SingleLineComment(props) {
|
|
10
|
+
const { variant = "double-slash", children } = props;
|
|
11
|
+
const commentStart = variant === "slash-star" ? "/* " : variant === "slash-star-star" ? "/** " : variant === "triple-slash" ? "/// " : variant === "markdown" ? "<!-- " : "// ";
|
|
12
|
+
return [commentStart, createIntrinsic("align", {
|
|
13
|
+
string: commentStart,
|
|
14
|
+
get children() {
|
|
15
|
+
return [createComponent(Prose, { children }), variant === "slash-star" || variant === "slash-star-star" ? " */ " : variant === "markdown" ? " -->" : ""];
|
|
16
|
+
}
|
|
17
|
+
})];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { SingleLineComment };
|