@powerlines/plugin-env 0.15.13 → 0.15.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +4 -0
- package/dist/_virtual/rolldown_runtime.mjs +33 -0
- package/dist/babel/plugin.cjs +16 -16
- package/dist/babel/plugin.d.mts +2 -2
- package/dist/babel/plugin.mjs +7 -7
- package/dist/components/docs.cjs +8 -8
- package/dist/components/docs.mjs +5 -5
- package/dist/components/env.cjs +38 -39
- package/dist/components/env.d.mts +2 -2
- package/dist/components/env.mjs +11 -11
- package/dist/helpers/automd-generator.cjs +4 -4
- package/dist/helpers/automd-generator.d.mts +1 -1
- package/dist/helpers/automd-generator.mjs +3 -3
- package/dist/helpers/load.cjs +12 -13
- package/dist/helpers/load.d.mts +2 -2
- package/dist/helpers/load.mjs +10 -10
- package/dist/helpers/persistence.cjs +23 -23
- package/dist/helpers/persistence.d.mts +1 -1
- package/dist/helpers/persistence.mjs +7 -7
- package/dist/helpers/reflect.cjs +9 -9
- package/dist/helpers/reflect.mjs +5 -5
- package/dist/helpers/source-file-env.cjs +1 -1
- package/dist/helpers/source-file-env.mjs +1 -1
- package/dist/index.cjs +28 -26
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +25 -25
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.cjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.mjs +7 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.cjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.cjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.cjs +9 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.mjs +7 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +346 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +23 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +22 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +405 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +404 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +1054 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +1054 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +42 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +45 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +285 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +68 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1007 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +13 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2685 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +4457 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +4454 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +29 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +181 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +176 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +17 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +3967 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +3962 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11763 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +17 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.cjs +174 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.mjs +172 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +13 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +12 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +145 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +138 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +125 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +136 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +627 -0
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/components.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
- package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +6 -6
- package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +1 -2
- package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +1 -1
- package/dist/types/plugin.cjs +19 -18
- package/dist/types/plugin.d.mts +6 -6
- package/dist/types/plugin.mjs +4 -4
- package/dist/types/runtime.cjs +3 -2
- package/dist/types/runtime.d.mts +1 -1
- package/dist/types/runtime.mjs +1 -1
- package/package.json +10 -10
- package/dist/deepkit/schemas/reflection.cjs +0 -5368
- package/dist/deepkit/schemas/reflection.mjs +0 -5365
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -1692
- package/dist/deepkit/src/capnp.mjs +0 -1690
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -99
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -98
- package/dist/deepkit/src/reflect-type.cjs +0 -40
- package/dist/deepkit/src/reflect-type.mjs +0 -38
- package/dist/deepkit/src/resolve-reflections.cjs +0 -23
- package/dist/deepkit/src/resolve-reflections.mjs +0 -22
- package/dist/deepkit/src/transformer.cjs +0 -92
- package/dist/deepkit/src/transformer.mjs +0 -89
- package/dist/deepkit/src/transpile.cjs +0 -39
- package/dist/deepkit/src/transpile.mjs +0 -37
- package/dist/deepkit/src/types.cjs +0 -22
- package/dist/deepkit/src/types.mjs +0 -21
- package/dist/deepkit/src/utilities.cjs +0 -182
- package/dist/deepkit/src/utilities.mjs +0 -181
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -136
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -128
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -110
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -101
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -23
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -22
- package/dist/plugin-alloy/src/index.cjs +0 -106
- package/dist/plugin-alloy/src/index.mjs +0 -104
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -72
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -71
- package/dist/plugin-alloy/src/types/components.cjs +0 -22
- package/dist/plugin-alloy/src/types/components.mjs +0 -21
- package/dist/plugin-alloy/src/types/plugin.cjs +0 -55
- package/dist/plugin-alloy/src/types/plugin.mjs +0 -52
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
- package/dist/plugin-automd/src/index.cjs +0 -127
- package/dist/plugin-automd/src/index.mjs +0 -124
- package/dist/plugin-automd/src/types/plugin.cjs +0 -47
- package/dist/plugin-automd/src/types/plugin.mjs +0 -47
- package/dist/plugin-automd/src/types/toc.cjs +0 -26
- package/dist/plugin-automd/src/types/toc.mjs +0 -25
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -74
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -70
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -71
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -69
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -158
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -154
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -200
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -192
- package/dist/plugin-babel/src/helpers/options.cjs +0 -74
- package/dist/plugin-babel/src/helpers/options.mjs +0 -71
- package/dist/plugin-babel/src/index.cjs +0 -131
- package/dist/plugin-babel/src/index.mjs +0 -129
- package/dist/plugin-babel/src/types/plugin.cjs +0 -42
- package/dist/plugin-babel/src/types/plugin.mjs +0 -39
- package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -137
- package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -135
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -161
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -159
- package/dist/powerlines/src/lib/entry.cjs +0 -203
- package/dist/powerlines/src/lib/entry.mjs +0 -201
- package/dist/powerlines/src/lib/logger.cjs +0 -108
- package/dist/powerlines/src/lib/logger.mjs +0 -106
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -67
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -66
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -49
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -48
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -46
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -45
- package/dist/powerlines/src/types/api.cjs +0 -62
- package/dist/powerlines/src/types/api.mjs +0 -62
- package/dist/powerlines/src/types/babel.cjs +0 -156
- package/dist/powerlines/src/types/babel.mjs +0 -147
- package/dist/powerlines/src/types/build.cjs +0 -127
- package/dist/powerlines/src/types/build.mjs +0 -121
- package/dist/powerlines/src/types/commands.cjs +0 -16
- package/dist/powerlines/src/types/commands.mjs +0 -15
- package/dist/powerlines/src/types/config.cjs +0 -413
- package/dist/powerlines/src/types/config.mjs +0 -391
- package/dist/powerlines/src/types/context.cjs +0 -381
- package/dist/powerlines/src/types/context.mjs +0 -364
- package/dist/powerlines/src/types/fs.cjs +0 -78
- package/dist/powerlines/src/types/fs.mjs +0 -75
- package/dist/powerlines/src/types/hooks.cjs +0 -71
- package/dist/powerlines/src/types/hooks.mjs +0 -68
- package/dist/powerlines/src/types/index.cjs +0 -11
- package/dist/powerlines/src/types/index.mjs +0 -13
- package/dist/powerlines/src/types/plugin.cjs +0 -184
- package/dist/powerlines/src/types/plugin.mjs +0 -178
- package/dist/powerlines/src/types/resolved.cjs +0 -153
- package/dist/powerlines/src/types/resolved.mjs +0 -148
- package/dist/powerlines/src/types/unplugin.cjs +0 -47
- package/dist/powerlines/src/types/unplugin.mjs +0 -46
- /package/dist/{deepkit → packages/deepkit}/schemas/reflection.d.mts +0 -0
- /package/dist/{deepkit → packages/deepkit}/src/types.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/core/components/source-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/tsdoc.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/toc.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/babel.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/index.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -0
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
3
|
-
let __stryke_type_checks_is_string = require("@stryke/type-checks/is-string");
|
|
4
|
-
let __stryke_helpers_get_unique = require("@stryke/helpers/get-unique");
|
|
5
|
-
let __stryke_type_checks_is_undefined = require("@stryke/type-checks/is-undefined");
|
|
6
|
-
let __stryke_json_storm_json = require("@stryke/json/storm-json");
|
|
7
|
-
let __stryke_type_checks_is_null = require("@stryke/type-checks/is-null");
|
|
8
|
-
|
|
9
|
-
//#region ../deepkit/src/utilities.ts
|
|
10
|
-
function __assignType(fn, args) {
|
|
11
|
-
fn.__type = args;
|
|
12
|
-
return fn;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Converts any {@link ReflectionProperty} or {@link ReflectionParameter}'s value to string representation.
|
|
16
|
-
*
|
|
17
|
-
* @param property - The {@link ReflectionProperty} or {@link ReflectionParameter} containing the value to stringify.
|
|
18
|
-
* @param value - The value to stringify.
|
|
19
|
-
* @returns A string representation of the value.
|
|
20
|
-
*/
|
|
21
|
-
function stringifyDefaultValue(property, value) {
|
|
22
|
-
return stringifyValue(property.type, value ?? property.getDefaultValue());
|
|
23
|
-
}
|
|
24
|
-
stringifyDefaultValue.__type = [
|
|
25
|
-
() => __powerlines_deepkit_vendor_type.ReflectionProperty,
|
|
26
|
-
() => __powerlines_deepkit_vendor_type.ReflectionParameter,
|
|
27
|
-
"property",
|
|
28
|
-
"value",
|
|
29
|
-
"stringifyDefaultValue",
|
|
30
|
-
"Converts any {@link ReflectionProperty} or {@link ReflectionParameter}'s value to string representation.",
|
|
31
|
-
"PPP7!P7\"J2#\"2$8&/%?&"
|
|
32
|
-
];
|
|
33
|
-
/**
|
|
34
|
-
* Stringifies a value as a string.
|
|
35
|
-
*
|
|
36
|
-
* @param value - The value to stringify.
|
|
37
|
-
* @returns A string representation of the value.
|
|
38
|
-
*/
|
|
39
|
-
function stringifyStringValue(value) {
|
|
40
|
-
return `"${String(value).replaceAll("\"", "\\\"")}"`;
|
|
41
|
-
}
|
|
42
|
-
stringifyStringValue.__type = [
|
|
43
|
-
"value",
|
|
44
|
-
"stringifyStringValue",
|
|
45
|
-
"Stringifies a value as a string.",
|
|
46
|
-
"P\"2!8&/\"?#"
|
|
47
|
-
];
|
|
48
|
-
/**
|
|
49
|
-
* Converts any {@link Type}'s actual value to string representation.
|
|
50
|
-
*
|
|
51
|
-
* @param type - The {@link Type} of the value to stringify.
|
|
52
|
-
* @param value - The value to stringify.
|
|
53
|
-
* @returns A string representation of the value.
|
|
54
|
-
*/
|
|
55
|
-
function stringifyValue(type, value) {
|
|
56
|
-
return (0, __stryke_type_checks_is_undefined.isUndefined)(value) ? "undefined" : (0, __stryke_type_checks_is_null.isNull)(value) ? "null" : type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.boolean ? String(value).trim().toLowerCase() === "true" ? "true" : "false" : type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.string || type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.literal && (0, __stryke_type_checks_is_string.isString)(type.literal) ? stringifyStringValue(value) : type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.enum ? getEnumReflectionType(type).kind === __powerlines_deepkit_vendor_type.ReflectionKind.string ? stringifyStringValue(value) : `${String(value)}` : type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.union ? isStringUnion(type) ? stringifyStringValue(value) : `${String(value)}` : type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.array ? stringifyStringValue(__stryke_json_storm_json.StormJSON.stringify(value)) : type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.object || type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral ? __stryke_json_storm_json.StormJSON.stringify(value) : type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.property || type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.parameter ? stringifyValue(type.type, value) : String(value);
|
|
57
|
-
}
|
|
58
|
-
stringifyValue.__type = [
|
|
59
|
-
"Type",
|
|
60
|
-
"type",
|
|
61
|
-
"value",
|
|
62
|
-
"stringifyValue",
|
|
63
|
-
"Converts any {@link Type}'s actual value to string representation.",
|
|
64
|
-
"P\"w!2\"\"2#&/$?%"
|
|
65
|
-
];
|
|
66
|
-
/**
|
|
67
|
-
* Converts a {@link TypeEnum} to its underlying primitive type representation.
|
|
68
|
-
*
|
|
69
|
-
* @param type - The {@link TypeEnum} to evaluate.
|
|
70
|
-
* @returns A string representation of the primitive type.
|
|
71
|
-
*/
|
|
72
|
-
function getEnumReflectionType(type) {
|
|
73
|
-
if (type.kind !== __powerlines_deepkit_vendor_type.ReflectionKind.enum) throw new Error(`Expected a TypeEnum, but received ${type.kind}.`);
|
|
74
|
-
const unique = (0, __stryke_helpers_get_unique.getUniqueBy)(type.values.filter(__assignType((value) => value !== void 0 && value !== null, [
|
|
75
|
-
"value",
|
|
76
|
-
"",
|
|
77
|
-
"P\"2!\"/\""
|
|
78
|
-
])), __assignType((enumMember) => (0, __stryke_type_checks_is_string.isString)(enumMember) ? { kind: __powerlines_deepkit_vendor_type.ReflectionKind.string } : { kind: __powerlines_deepkit_vendor_type.ReflectionKind.number }, [
|
|
79
|
-
"enumMember",
|
|
80
|
-
"",
|
|
81
|
-
"P\"2!\"/\""
|
|
82
|
-
]));
|
|
83
|
-
if (unique.length === 0) throw new Error(`No valid enum members could be found.`);
|
|
84
|
-
return unique[0] && (0, __stryke_type_checks_is_string.isString)(unique[0]) ? { kind: __powerlines_deepkit_vendor_type.ReflectionKind.string } : { kind: __powerlines_deepkit_vendor_type.ReflectionKind.number };
|
|
85
|
-
}
|
|
86
|
-
getEnumReflectionType.__type = [
|
|
87
|
-
"Type",
|
|
88
|
-
"type",
|
|
89
|
-
() => __powerlines_deepkit_vendor_type.__ΩTypeString,
|
|
90
|
-
() => __powerlines_deepkit_vendor_type.__ΩTypeNumber,
|
|
91
|
-
"getEnumReflectionType",
|
|
92
|
-
"Converts a {@link TypeEnum} to its underlying primitive type representation.",
|
|
93
|
-
"P\"w!2\"Pn#n$J/%?&"
|
|
94
|
-
];
|
|
95
|
-
/**
|
|
96
|
-
* Converts a {@link TypeUnion} to its underlying primitive type representation.
|
|
97
|
-
*
|
|
98
|
-
* @param type - The {@link TypeUnion} to evaluate.
|
|
99
|
-
* @returns A string representation of the primitive type.
|
|
100
|
-
*/
|
|
101
|
-
function getUnionTypes(type) {
|
|
102
|
-
if (type.kind === __powerlines_deepkit_vendor_type.ReflectionKind.union && type.types.length > 0) return (0, __stryke_helpers_get_unique.getUniqueBy)(type.types, __assignType((member) => member.kind, [
|
|
103
|
-
"member",
|
|
104
|
-
"",
|
|
105
|
-
"P\"2!\"/\""
|
|
106
|
-
]));
|
|
107
|
-
throw new Error(`Expected a TypeUnion, but received ${type.kind}.`);
|
|
108
|
-
}
|
|
109
|
-
getUnionTypes.__type = [
|
|
110
|
-
"Type",
|
|
111
|
-
"type",
|
|
112
|
-
"getUnionTypes",
|
|
113
|
-
"Converts a {@link TypeUnion} to its underlying primitive type representation.",
|
|
114
|
-
"P\"w!2\"\"w!F/#?$"
|
|
115
|
-
];
|
|
116
|
-
function isStringUnion(type) {
|
|
117
|
-
return getUnionTypes(type).some(__assignType((member) => member.kind === __powerlines_deepkit_vendor_type.ReflectionKind.string || member.kind === __powerlines_deepkit_vendor_type.ReflectionKind.literal && (0, __stryke_type_checks_is_string.isString)(member.literal), [
|
|
118
|
-
"member",
|
|
119
|
-
"",
|
|
120
|
-
"P\"2!\"/\""
|
|
121
|
-
]));
|
|
122
|
-
}
|
|
123
|
-
isStringUnion.__type = [
|
|
124
|
-
"Type",
|
|
125
|
-
"type",
|
|
126
|
-
"isStringUnion",
|
|
127
|
-
"P\"w!2\")/#"
|
|
128
|
-
];
|
|
129
|
-
/**
|
|
130
|
-
* Converts a ReflectionKind to its string representation.
|
|
131
|
-
*
|
|
132
|
-
* @param kind - The {@link ReflectionKind} to convert.
|
|
133
|
-
* @returns A string representation of the kind.
|
|
134
|
-
*/
|
|
135
|
-
function kindToName(kind) {
|
|
136
|
-
if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.void) return "void";
|
|
137
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.never) return "never";
|
|
138
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.null) return "null";
|
|
139
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.undefined) return "undefined";
|
|
140
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.symbol) return "symbol";
|
|
141
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.bigint) return "bigint";
|
|
142
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.number) return "number";
|
|
143
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.string) return "string";
|
|
144
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.boolean) return "boolean";
|
|
145
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.literal) return "literal";
|
|
146
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.class) return "class";
|
|
147
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.array) return "array";
|
|
148
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.object) return "object";
|
|
149
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral) return "objectLiteral";
|
|
150
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.union) return "union";
|
|
151
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.enum) return "enum";
|
|
152
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.regexp) return "regexp";
|
|
153
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.templateLiteral) return "templateLiteral";
|
|
154
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.property) return "property";
|
|
155
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.method) return "method";
|
|
156
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.function) return "function";
|
|
157
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.parameter) return "parameter";
|
|
158
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.promise) return "promise";
|
|
159
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.typeParameter) return "typeParameter";
|
|
160
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.tuple) return "tuple";
|
|
161
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.tupleMember) return "tupleMember";
|
|
162
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.enumMember) return "enumMember";
|
|
163
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.rest) return "rest";
|
|
164
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.indexSignature) return "indexSignature";
|
|
165
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.propertySignature) return "propertySignature";
|
|
166
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.methodSignature) return "methodSignature";
|
|
167
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.infer) return "infer";
|
|
168
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.callSignature) return "callSignature";
|
|
169
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.any) return "any";
|
|
170
|
-
else if (kind === __powerlines_deepkit_vendor_type.ReflectionKind.intersection) return "intersection";
|
|
171
|
-
return "unknown";
|
|
172
|
-
}
|
|
173
|
-
kindToName.__type = [
|
|
174
|
-
() => __powerlines_deepkit_vendor_type.__ΩReflectionKind,
|
|
175
|
-
"kind",
|
|
176
|
-
"kindToName",
|
|
177
|
-
"Converts a ReflectionKind to its string representation.",
|
|
178
|
-
"Pn!2\"&/#?$"
|
|
179
|
-
];
|
|
180
|
-
|
|
181
|
-
//#endregion
|
|
182
|
-
exports.stringifyDefaultValue = stringifyDefaultValue;
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { ReflectionKind, ReflectionParameter, ReflectionProperty, __ΩReflectionKind, __ΩTypeNumber, __ΩTypeString } from "@powerlines/deepkit/vendor/type";
|
|
2
|
-
import { isString } from "@stryke/type-checks/is-string";
|
|
3
|
-
import { getUniqueBy } from "@stryke/helpers/get-unique";
|
|
4
|
-
import { isUndefined } from "@stryke/type-checks/is-undefined";
|
|
5
|
-
import { StormJSON } from "@stryke/json/storm-json";
|
|
6
|
-
import { isNull } from "@stryke/type-checks/is-null";
|
|
7
|
-
|
|
8
|
-
//#region ../deepkit/src/utilities.ts
|
|
9
|
-
function __assignType(fn, args) {
|
|
10
|
-
fn.__type = args;
|
|
11
|
-
return fn;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Converts any {@link ReflectionProperty} or {@link ReflectionParameter}'s value to string representation.
|
|
15
|
-
*
|
|
16
|
-
* @param property - The {@link ReflectionProperty} or {@link ReflectionParameter} containing the value to stringify.
|
|
17
|
-
* @param value - The value to stringify.
|
|
18
|
-
* @returns A string representation of the value.
|
|
19
|
-
*/
|
|
20
|
-
function stringifyDefaultValue(property, value) {
|
|
21
|
-
return stringifyValue(property.type, value ?? property.getDefaultValue());
|
|
22
|
-
}
|
|
23
|
-
stringifyDefaultValue.__type = [
|
|
24
|
-
() => ReflectionProperty,
|
|
25
|
-
() => ReflectionParameter,
|
|
26
|
-
"property",
|
|
27
|
-
"value",
|
|
28
|
-
"stringifyDefaultValue",
|
|
29
|
-
"Converts any {@link ReflectionProperty} or {@link ReflectionParameter}'s value to string representation.",
|
|
30
|
-
"PPP7!P7\"J2#\"2$8&/%?&"
|
|
31
|
-
];
|
|
32
|
-
/**
|
|
33
|
-
* Stringifies a value as a string.
|
|
34
|
-
*
|
|
35
|
-
* @param value - The value to stringify.
|
|
36
|
-
* @returns A string representation of the value.
|
|
37
|
-
*/
|
|
38
|
-
function stringifyStringValue(value) {
|
|
39
|
-
return `"${String(value).replaceAll("\"", "\\\"")}"`;
|
|
40
|
-
}
|
|
41
|
-
stringifyStringValue.__type = [
|
|
42
|
-
"value",
|
|
43
|
-
"stringifyStringValue",
|
|
44
|
-
"Stringifies a value as a string.",
|
|
45
|
-
"P\"2!8&/\"?#"
|
|
46
|
-
];
|
|
47
|
-
/**
|
|
48
|
-
* Converts any {@link Type}'s actual value to string representation.
|
|
49
|
-
*
|
|
50
|
-
* @param type - The {@link Type} of the value to stringify.
|
|
51
|
-
* @param value - The value to stringify.
|
|
52
|
-
* @returns A string representation of the value.
|
|
53
|
-
*/
|
|
54
|
-
function stringifyValue(type, value) {
|
|
55
|
-
return isUndefined(value) ? "undefined" : isNull(value) ? "null" : type.kind === ReflectionKind.boolean ? String(value).trim().toLowerCase() === "true" ? "true" : "false" : type.kind === ReflectionKind.string || type.kind === ReflectionKind.literal && isString(type.literal) ? stringifyStringValue(value) : type.kind === ReflectionKind.enum ? getEnumReflectionType(type).kind === ReflectionKind.string ? stringifyStringValue(value) : `${String(value)}` : type.kind === ReflectionKind.union ? isStringUnion(type) ? stringifyStringValue(value) : `${String(value)}` : type.kind === ReflectionKind.array ? stringifyStringValue(StormJSON.stringify(value)) : type.kind === ReflectionKind.object || type.kind === ReflectionKind.objectLiteral ? StormJSON.stringify(value) : type.kind === ReflectionKind.property || type.kind === ReflectionKind.parameter ? stringifyValue(type.type, value) : String(value);
|
|
56
|
-
}
|
|
57
|
-
stringifyValue.__type = [
|
|
58
|
-
"Type",
|
|
59
|
-
"type",
|
|
60
|
-
"value",
|
|
61
|
-
"stringifyValue",
|
|
62
|
-
"Converts any {@link Type}'s actual value to string representation.",
|
|
63
|
-
"P\"w!2\"\"2#&/$?%"
|
|
64
|
-
];
|
|
65
|
-
/**
|
|
66
|
-
* Converts a {@link TypeEnum} to its underlying primitive type representation.
|
|
67
|
-
*
|
|
68
|
-
* @param type - The {@link TypeEnum} to evaluate.
|
|
69
|
-
* @returns A string representation of the primitive type.
|
|
70
|
-
*/
|
|
71
|
-
function getEnumReflectionType(type) {
|
|
72
|
-
if (type.kind !== ReflectionKind.enum) throw new Error(`Expected a TypeEnum, but received ${type.kind}.`);
|
|
73
|
-
const unique = getUniqueBy(type.values.filter(__assignType((value) => value !== void 0 && value !== null, [
|
|
74
|
-
"value",
|
|
75
|
-
"",
|
|
76
|
-
"P\"2!\"/\""
|
|
77
|
-
])), __assignType((enumMember) => isString(enumMember) ? { kind: ReflectionKind.string } : { kind: ReflectionKind.number }, [
|
|
78
|
-
"enumMember",
|
|
79
|
-
"",
|
|
80
|
-
"P\"2!\"/\""
|
|
81
|
-
]));
|
|
82
|
-
if (unique.length === 0) throw new Error(`No valid enum members could be found.`);
|
|
83
|
-
return unique[0] && isString(unique[0]) ? { kind: ReflectionKind.string } : { kind: ReflectionKind.number };
|
|
84
|
-
}
|
|
85
|
-
getEnumReflectionType.__type = [
|
|
86
|
-
"Type",
|
|
87
|
-
"type",
|
|
88
|
-
() => __ΩTypeString,
|
|
89
|
-
() => __ΩTypeNumber,
|
|
90
|
-
"getEnumReflectionType",
|
|
91
|
-
"Converts a {@link TypeEnum} to its underlying primitive type representation.",
|
|
92
|
-
"P\"w!2\"Pn#n$J/%?&"
|
|
93
|
-
];
|
|
94
|
-
/**
|
|
95
|
-
* Converts a {@link TypeUnion} to its underlying primitive type representation.
|
|
96
|
-
*
|
|
97
|
-
* @param type - The {@link TypeUnion} to evaluate.
|
|
98
|
-
* @returns A string representation of the primitive type.
|
|
99
|
-
*/
|
|
100
|
-
function getUnionTypes(type) {
|
|
101
|
-
if (type.kind === ReflectionKind.union && type.types.length > 0) return getUniqueBy(type.types, __assignType((member) => member.kind, [
|
|
102
|
-
"member",
|
|
103
|
-
"",
|
|
104
|
-
"P\"2!\"/\""
|
|
105
|
-
]));
|
|
106
|
-
throw new Error(`Expected a TypeUnion, but received ${type.kind}.`);
|
|
107
|
-
}
|
|
108
|
-
getUnionTypes.__type = [
|
|
109
|
-
"Type",
|
|
110
|
-
"type",
|
|
111
|
-
"getUnionTypes",
|
|
112
|
-
"Converts a {@link TypeUnion} to its underlying primitive type representation.",
|
|
113
|
-
"P\"w!2\"\"w!F/#?$"
|
|
114
|
-
];
|
|
115
|
-
function isStringUnion(type) {
|
|
116
|
-
return getUnionTypes(type).some(__assignType((member) => member.kind === ReflectionKind.string || member.kind === ReflectionKind.literal && isString(member.literal), [
|
|
117
|
-
"member",
|
|
118
|
-
"",
|
|
119
|
-
"P\"2!\"/\""
|
|
120
|
-
]));
|
|
121
|
-
}
|
|
122
|
-
isStringUnion.__type = [
|
|
123
|
-
"Type",
|
|
124
|
-
"type",
|
|
125
|
-
"isStringUnion",
|
|
126
|
-
"P\"w!2\")/#"
|
|
127
|
-
];
|
|
128
|
-
/**
|
|
129
|
-
* Converts a ReflectionKind to its string representation.
|
|
130
|
-
*
|
|
131
|
-
* @param kind - The {@link ReflectionKind} to convert.
|
|
132
|
-
* @returns A string representation of the kind.
|
|
133
|
-
*/
|
|
134
|
-
function kindToName(kind) {
|
|
135
|
-
if (kind === ReflectionKind.void) return "void";
|
|
136
|
-
else if (kind === ReflectionKind.never) return "never";
|
|
137
|
-
else if (kind === ReflectionKind.null) return "null";
|
|
138
|
-
else if (kind === ReflectionKind.undefined) return "undefined";
|
|
139
|
-
else if (kind === ReflectionKind.symbol) return "symbol";
|
|
140
|
-
else if (kind === ReflectionKind.bigint) return "bigint";
|
|
141
|
-
else if (kind === ReflectionKind.number) return "number";
|
|
142
|
-
else if (kind === ReflectionKind.string) return "string";
|
|
143
|
-
else if (kind === ReflectionKind.boolean) return "boolean";
|
|
144
|
-
else if (kind === ReflectionKind.literal) return "literal";
|
|
145
|
-
else if (kind === ReflectionKind.class) return "class";
|
|
146
|
-
else if (kind === ReflectionKind.array) return "array";
|
|
147
|
-
else if (kind === ReflectionKind.object) return "object";
|
|
148
|
-
else if (kind === ReflectionKind.objectLiteral) return "objectLiteral";
|
|
149
|
-
else if (kind === ReflectionKind.union) return "union";
|
|
150
|
-
else if (kind === ReflectionKind.enum) return "enum";
|
|
151
|
-
else if (kind === ReflectionKind.regexp) return "regexp";
|
|
152
|
-
else if (kind === ReflectionKind.templateLiteral) return "templateLiteral";
|
|
153
|
-
else if (kind === ReflectionKind.property) return "property";
|
|
154
|
-
else if (kind === ReflectionKind.method) return "method";
|
|
155
|
-
else if (kind === ReflectionKind.function) return "function";
|
|
156
|
-
else if (kind === ReflectionKind.parameter) return "parameter";
|
|
157
|
-
else if (kind === ReflectionKind.promise) return "promise";
|
|
158
|
-
else if (kind === ReflectionKind.typeParameter) return "typeParameter";
|
|
159
|
-
else if (kind === ReflectionKind.tuple) return "tuple";
|
|
160
|
-
else if (kind === ReflectionKind.tupleMember) return "tupleMember";
|
|
161
|
-
else if (kind === ReflectionKind.enumMember) return "enumMember";
|
|
162
|
-
else if (kind === ReflectionKind.rest) return "rest";
|
|
163
|
-
else if (kind === ReflectionKind.indexSignature) return "indexSignature";
|
|
164
|
-
else if (kind === ReflectionKind.propertySignature) return "propertySignature";
|
|
165
|
-
else if (kind === ReflectionKind.methodSignature) return "methodSignature";
|
|
166
|
-
else if (kind === ReflectionKind.infer) return "infer";
|
|
167
|
-
else if (kind === ReflectionKind.callSignature) return "callSignature";
|
|
168
|
-
else if (kind === ReflectionKind.any) return "any";
|
|
169
|
-
else if (kind === ReflectionKind.intersection) return "intersection";
|
|
170
|
-
return "unknown";
|
|
171
|
-
}
|
|
172
|
-
kindToName.__type = [
|
|
173
|
-
() => __ΩReflectionKind,
|
|
174
|
-
"kind",
|
|
175
|
-
"kindToName",
|
|
176
|
-
"Converts a ReflectionKind to its string representation.",
|
|
177
|
-
"Pn!2\"&/#?$"
|
|
178
|
-
];
|
|
179
|
-
|
|
180
|
-
//#endregion
|
|
181
|
-
export { stringifyDefaultValue };
|
|
@@ -1,45 +0,0 @@
|
|
|
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 contextRef = (0, __alloy_js_core.ref)(context);
|
|
19
|
-
const metaRef = (0, __alloy_js_core.ref)(meta ?? {});
|
|
20
|
-
const basePathRef = (0, __alloy_js_core.computed)(() => basePath ? (0, __stryke_path_replace.replacePath)(basePath, contextRef.value.workspaceConfig.workspaceRoot) : contextRef.value.workspaceConfig.workspaceRoot);
|
|
21
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Output, (0, __alloy_js_core_jsx_runtime.mergeProps)(rest, {
|
|
22
|
-
get basePath() {
|
|
23
|
-
return basePathRef.value;
|
|
24
|
-
},
|
|
25
|
-
get children() {
|
|
26
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(require_context.PowerlinesContext.Provider, {
|
|
27
|
-
value: {
|
|
28
|
-
ref: contextRef,
|
|
29
|
-
meta: metaRef
|
|
30
|
-
},
|
|
31
|
-
get children() {
|
|
32
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
33
|
-
get when() {
|
|
34
|
-
return Boolean(contextRef.value);
|
|
35
|
-
},
|
|
36
|
-
children
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
//#endregion
|
|
45
|
-
exports.Output = Output;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { PowerlinesContext } from "../contexts/context.mjs";
|
|
2
|
-
import { replacePath } from "@stryke/path/replace";
|
|
3
|
-
import { Output, Show, computed, ref, 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 contextRef = ref(context);
|
|
18
|
-
const metaRef = ref(meta ?? {});
|
|
19
|
-
const basePathRef = computed(() => basePath ? replacePath(basePath, contextRef.value.workspaceConfig.workspaceRoot) : contextRef.value.workspaceConfig.workspaceRoot);
|
|
20
|
-
return createComponent(Output, mergeProps(rest, {
|
|
21
|
-
get basePath() {
|
|
22
|
-
return basePathRef.value;
|
|
23
|
-
},
|
|
24
|
-
get children() {
|
|
25
|
-
return createComponent(PowerlinesContext.Provider, {
|
|
26
|
-
value: {
|
|
27
|
-
ref: contextRef,
|
|
28
|
-
meta: metaRef
|
|
29
|
-
},
|
|
30
|
-
get children() {
|
|
31
|
-
return createComponent(Show, {
|
|
32
|
-
get when() {
|
|
33
|
-
return Boolean(contextRef.value);
|
|
34
|
-
},
|
|
35
|
-
children
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
//#endregion
|
|
44
|
-
export { Output$1 as Output };
|
|
@@ -1,22 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
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 };
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_context = require('../contexts/context.cjs');
|
|
3
|
-
require('../contexts/index.cjs');
|
|
4
|
-
let defu = require("defu");
|
|
5
|
-
defu = require_rolldown_runtime.__toESM(defu);
|
|
6
|
-
let __stryke_path_append = require("@stryke/path/append");
|
|
7
|
-
let __alloy_js_core = require("@alloy-js/core");
|
|
8
|
-
let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
|
|
9
|
-
|
|
10
|
-
//#region ../plugin-alloy/src/core/components/source-file.tsx
|
|
11
|
-
/**
|
|
12
|
-
* A base component representing a Powerlines generated source file.
|
|
13
|
-
*
|
|
14
|
-
* @param props - The properties for the source file.
|
|
15
|
-
* @returns The rendered source file component.
|
|
16
|
-
*/
|
|
17
|
-
function SourceFile(props) {
|
|
18
|
-
const [{ children, meta, path, header, storage, filetype, reference }] = (0, __alloy_js_core.splitProps)(props, [
|
|
19
|
-
"children",
|
|
20
|
-
"meta",
|
|
21
|
-
"path",
|
|
22
|
-
"header",
|
|
23
|
-
"storage",
|
|
24
|
-
"filetype",
|
|
25
|
-
"reference"
|
|
26
|
-
]);
|
|
27
|
-
const metadata = require_context.useMeta();
|
|
28
|
-
const parentDirectory = (0, __alloy_js_core.useContext)(__alloy_js_core.SourceDirectoryContext);
|
|
29
|
-
const sourceFile = {
|
|
30
|
-
path: (0, __stryke_path_append.appendPath)(path, parentDirectory.path),
|
|
31
|
-
filetype,
|
|
32
|
-
reference
|
|
33
|
-
};
|
|
34
|
-
parentDirectory?.addContent(sourceFile);
|
|
35
|
-
const printOptions = (0, __alloy_js_core.useFormatOptions)({
|
|
36
|
-
printWidth: props.printWidth,
|
|
37
|
-
tabWidth: props.tabWidth,
|
|
38
|
-
useTabs: props.useTabs,
|
|
39
|
-
insertFinalNewLine: props.insertFinalNewLine
|
|
40
|
-
});
|
|
41
|
-
const nodeContext = (0, __alloy_js_core.getContext)();
|
|
42
|
-
nodeContext.meta = (0, defu.default)({
|
|
43
|
-
sourceFile,
|
|
44
|
-
printOptions
|
|
45
|
-
}, meta ?? {});
|
|
46
|
-
metadata[sourceFile.path] = {
|
|
47
|
-
storage,
|
|
48
|
-
...meta ?? {}
|
|
49
|
-
};
|
|
50
|
-
return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.SourceFileContext.Provider, {
|
|
51
|
-
value: sourceFile,
|
|
52
|
-
get children() {
|
|
53
|
-
return [(0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
|
|
54
|
-
when: header !== void 0,
|
|
55
|
-
get children() {
|
|
56
|
-
return [header, (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {})];
|
|
57
|
-
}
|
|
58
|
-
}), children];
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
//#endregion
|
|
64
|
-
exports.SourceFile = SourceFile;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { useMeta } from "../contexts/context.mjs";
|
|
2
|
-
import "../contexts/index.mjs";
|
|
3
|
-
import defu$1 from "defu";
|
|
4
|
-
import { appendPath } from "@stryke/path/append";
|
|
5
|
-
import { Show, SourceDirectoryContext, SourceFileContext, getContext, splitProps, useContext, useFormatOptions } from "@alloy-js/core";
|
|
6
|
-
import { createComponent, createIntrinsic } from "@alloy-js/core/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
//#region ../plugin-alloy/src/core/components/source-file.tsx
|
|
9
|
-
/**
|
|
10
|
-
* A base component representing a Powerlines generated source file.
|
|
11
|
-
*
|
|
12
|
-
* @param props - The properties for the source file.
|
|
13
|
-
* @returns The rendered source file component.
|
|
14
|
-
*/
|
|
15
|
-
function SourceFile(props) {
|
|
16
|
-
const [{ children, meta, path, header, storage, filetype, reference }] = splitProps(props, [
|
|
17
|
-
"children",
|
|
18
|
-
"meta",
|
|
19
|
-
"path",
|
|
20
|
-
"header",
|
|
21
|
-
"storage",
|
|
22
|
-
"filetype",
|
|
23
|
-
"reference"
|
|
24
|
-
]);
|
|
25
|
-
const metadata = useMeta();
|
|
26
|
-
const parentDirectory = useContext(SourceDirectoryContext);
|
|
27
|
-
const sourceFile = {
|
|
28
|
-
path: appendPath(path, parentDirectory.path),
|
|
29
|
-
filetype,
|
|
30
|
-
reference
|
|
31
|
-
};
|
|
32
|
-
parentDirectory?.addContent(sourceFile);
|
|
33
|
-
const printOptions = useFormatOptions({
|
|
34
|
-
printWidth: props.printWidth,
|
|
35
|
-
tabWidth: props.tabWidth,
|
|
36
|
-
useTabs: props.useTabs,
|
|
37
|
-
insertFinalNewLine: props.insertFinalNewLine
|
|
38
|
-
});
|
|
39
|
-
const nodeContext = getContext();
|
|
40
|
-
nodeContext.meta = defu$1({
|
|
41
|
-
sourceFile,
|
|
42
|
-
printOptions
|
|
43
|
-
}, meta ?? {});
|
|
44
|
-
metadata[sourceFile.path] = {
|
|
45
|
-
storage,
|
|
46
|
-
...meta ?? {}
|
|
47
|
-
};
|
|
48
|
-
return createComponent(SourceFileContext.Provider, {
|
|
49
|
-
value: sourceFile,
|
|
50
|
-
get children() {
|
|
51
|
-
return [createComponent(Show, {
|
|
52
|
-
when: header !== void 0,
|
|
53
|
-
get children() {
|
|
54
|
-
return [header, createIntrinsic("hbr", {})];
|
|
55
|
-
}
|
|
56
|
-
}), children];
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
export { SourceFile };
|