powerlines 0.37.31 → 0.37.33

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.
Files changed (211) hide show
  1. package/dist/api.cjs +2 -2
  2. package/dist/api.js +1 -1
  3. package/dist/astro.cjs +5 -5
  4. package/dist/astro.js +4 -4
  5. package/dist/{chunk-DQFKSPI5.cjs → chunk-2SKHJHPI.cjs} +5 -5
  6. package/dist/chunk-4G7C2OQK.cjs +12 -0
  7. package/dist/{chunk-MS7QGIJM.cjs → chunk-5HIL7EVA.cjs} +6 -6
  8. package/dist/chunk-5YUJKRDM.cjs +12 -0
  9. package/dist/{chunk-Z5JSF22L.js → chunk-C2LWIHQL.js} +3 -3
  10. package/dist/{chunk-3XBU4DDR.js → chunk-EED2UPZI.js} +3 -3
  11. package/dist/{chunk-BGBDDKML.js → chunk-FJHS7DAU.js} +3 -3
  12. package/dist/{chunk-W6O3CPYC.js → chunk-LML34F4E.js} +5 -5
  13. package/dist/{chunk-6WYVGWDN.cjs → chunk-M5ZTDIE2.cjs} +7 -7
  14. package/dist/{chunk-K2PLWWNA.js → chunk-NXF47SUO.js} +4 -4
  15. package/dist/{chunk-5WZHLXMC.js → chunk-OBW6UYPF.js} +3 -3
  16. package/dist/{chunk-ST65VKTR.cjs → chunk-TPEJ4HAR.cjs} +167 -210
  17. package/dist/{chunk-SE3RCXWI.cjs → chunk-VBGDN56Q.cjs} +3 -3
  18. package/dist/{chunk-4VHA6QFN.js → chunk-YDYRZGLC.js} +154 -199
  19. package/dist/esbuild.cjs +7 -7
  20. package/dist/esbuild.js +4 -4
  21. package/dist/farm.cjs +3 -3
  22. package/dist/farm.js +2 -2
  23. package/dist/index.cjs +10 -10
  24. package/dist/index.js +2 -2
  25. package/dist/lib/build/esbuild.cjs +5 -5
  26. package/dist/lib/build/esbuild.js +2 -2
  27. package/dist/lib/build/index.cjs +30 -30
  28. package/dist/lib/build/index.d.cts +1 -1
  29. package/dist/lib/build/index.d.ts +1 -1
  30. package/dist/lib/build/index.js +10 -10
  31. package/dist/lib/build/rolldown.cjs +3 -3
  32. package/dist/lib/build/rolldown.js +2 -2
  33. package/dist/lib/build/rollup.cjs +3 -3
  34. package/dist/lib/build/rollup.js +1 -1
  35. package/dist/lib/build/rspack.cjs +2 -2
  36. package/dist/lib/build/rspack.js +1 -1
  37. package/dist/lib/build/tsdown.cjs +5 -5
  38. package/dist/lib/build/tsdown.js +1 -1
  39. package/dist/lib/build/tsup.cjs +6 -6
  40. package/dist/lib/build/tsup.js +3 -3
  41. package/dist/lib/build/unbuild.cjs +5 -5
  42. package/dist/lib/build/unbuild.d.cts +1 -1
  43. package/dist/lib/build/unbuild.d.ts +1 -1
  44. package/dist/lib/build/unbuild.js +2 -2
  45. package/dist/lib/build/vite.cjs +5 -5
  46. package/dist/lib/build/vite.js +3 -3
  47. package/dist/lib/build/webpack.cjs +2 -2
  48. package/dist/lib/build/webpack.js +1 -1
  49. package/dist/lib/{chunk-NPRQVHXP.cjs → chunk-2J3BIEL5.cjs} +7 -83
  50. package/dist/lib/chunk-2J3BIEL5.cjs.map +1 -0
  51. package/dist/lib/{chunk-NMZHPWB6.js → chunk-2JWZTFXS.js} +4 -4
  52. package/dist/lib/{chunk-NMZHPWB6.js.map → chunk-2JWZTFXS.js.map} +1 -1
  53. package/dist/lib/{chunk-TFOAWLRF.js → chunk-37ISVVSL.js} +4 -4
  54. package/dist/lib/chunk-37ISVVSL.js.map +1 -0
  55. package/dist/lib/{chunk-JJDYYD64.cjs → chunk-47ELJR3Z.cjs} +7 -7
  56. package/dist/lib/chunk-47ELJR3Z.cjs.map +1 -0
  57. package/dist/lib/{chunk-G6LP5AUT.cjs → chunk-5OPL6S37.cjs} +13 -9
  58. package/dist/lib/chunk-5OPL6S37.cjs.map +1 -0
  59. package/dist/lib/{chunk-7ZLMFCZF.js → chunk-7D4ANVQ3.js} +3 -3
  60. package/dist/lib/{chunk-7ZLMFCZF.js.map → chunk-7D4ANVQ3.js.map} +1 -1
  61. package/dist/lib/{chunk-NHY25RLN.js → chunk-C2P7PUMG.js} +3 -3
  62. package/dist/lib/chunk-C2P7PUMG.js.map +1 -0
  63. package/dist/lib/{chunk-37QKQRHL.js → chunk-DNSJN2LL.js} +4 -4
  64. package/dist/lib/chunk-DNSJN2LL.js.map +1 -0
  65. package/dist/lib/{chunk-FSQATFTG.js → chunk-DW3OHFKB.js} +4 -4
  66. package/dist/lib/chunk-DW3OHFKB.js.map +1 -0
  67. package/dist/lib/{chunk-ZFOPHCGK.cjs → chunk-FC4WYLMZ.cjs} +3 -3
  68. package/dist/lib/chunk-FC4WYLMZ.cjs.map +1 -0
  69. package/dist/lib/{chunk-FR7QMZ4X.cjs → chunk-FSSYT5DT.cjs} +5 -5
  70. package/dist/lib/chunk-FSSYT5DT.cjs.map +1 -0
  71. package/dist/lib/{chunk-NMCDCHEL.cjs → chunk-HFM5IVGD.cjs} +39 -33
  72. package/dist/lib/chunk-HFM5IVGD.cjs.map +1 -0
  73. package/dist/lib/{chunk-GF5FQKAI.js → chunk-HX5UF7YV.js} +36 -30
  74. package/dist/lib/chunk-HX5UF7YV.js.map +1 -0
  75. package/dist/lib/{chunk-3SANFGBI.js → chunk-I66U3XHM.js} +7 -7
  76. package/dist/lib/chunk-I66U3XHM.js.map +1 -0
  77. package/dist/lib/{chunk-6MX6ZNGS.cjs → chunk-JF4ZEC67.cjs} +19 -19
  78. package/dist/lib/{chunk-6MX6ZNGS.cjs.map → chunk-JF4ZEC67.cjs.map} +1 -1
  79. package/dist/lib/{chunk-2IXO6SBG.js → chunk-KJCQ3FNZ.js} +3 -3
  80. package/dist/lib/chunk-KJCQ3FNZ.js.map +1 -0
  81. package/dist/lib/{chunk-FYRHGPDZ.js → chunk-L273AS74.js} +12 -8
  82. package/dist/lib/chunk-L273AS74.js.map +1 -0
  83. package/dist/lib/{chunk-TAHP4BEC.cjs → chunk-L3OTKQT7.cjs} +5 -5
  84. package/dist/lib/chunk-L3OTKQT7.cjs.map +1 -0
  85. package/dist/lib/{chunk-S6HKYEP4.js → chunk-LLWUZWXK.js} +51 -48
  86. package/dist/lib/chunk-LLWUZWXK.js.map +1 -0
  87. package/dist/lib/{chunk-YZ2NKI4K.cjs → chunk-M6FABDGH.cjs} +3 -3
  88. package/dist/lib/chunk-M6FABDGH.cjs.map +1 -0
  89. package/dist/lib/{chunk-KLU5DWCZ.js → chunk-N37JIOZ4.js} +28 -8
  90. package/dist/lib/chunk-N37JIOZ4.js.map +1 -0
  91. package/dist/lib/{chunk-TBRFVVYJ.cjs → chunk-O3ZBMF6Z.cjs} +6 -6
  92. package/dist/lib/{chunk-TBRFVVYJ.cjs.map → chunk-O3ZBMF6Z.cjs.map} +1 -1
  93. package/dist/lib/{chunk-PD6TYAFZ.cjs → chunk-PNVVTXLD.cjs} +4 -4
  94. package/dist/lib/{chunk-PD6TYAFZ.cjs.map → chunk-PNVVTXLD.cjs.map} +1 -1
  95. package/dist/lib/{chunk-QNGZB26V.cjs → chunk-QTOV3SHA.cjs} +5 -5
  96. package/dist/lib/chunk-QTOV3SHA.cjs.map +1 -0
  97. package/dist/lib/{chunk-CEHUDHRY.js → chunk-SLC5EL2C.js} +4 -4
  98. package/dist/lib/chunk-SLC5EL2C.js.map +1 -0
  99. package/dist/lib/{chunk-TAXCKJWL.cjs → chunk-U7XNN2N5.cjs} +75 -72
  100. package/dist/lib/chunk-U7XNN2N5.cjs.map +1 -0
  101. package/dist/lib/{chunk-O7HKPUBS.cjs → chunk-UOVILPP5.cjs} +5 -5
  102. package/dist/lib/chunk-UOVILPP5.cjs.map +1 -0
  103. package/dist/lib/{chunk-TQ45IJLR.cjs → chunk-VKFPSCIU.cjs} +3 -3
  104. package/dist/lib/chunk-VKFPSCIU.cjs.map +1 -0
  105. package/dist/lib/{chunk-26JHNKA7.js → chunk-VOTCZHM5.js} +3 -3
  106. package/dist/lib/chunk-VOTCZHM5.js.map +1 -0
  107. package/dist/lib/{chunk-NMHBDJX7.js → chunk-WQRK3BBU.js} +7 -83
  108. package/dist/lib/chunk-WQRK3BBU.js.map +1 -0
  109. package/dist/lib/{chunk-EEF6LJVD.js → chunk-X6CZ2G2G.js} +3 -3
  110. package/dist/lib/{chunk-EEF6LJVD.js.map → chunk-X6CZ2G2G.js.map} +1 -1
  111. package/dist/lib/{chunk-FQZQA4EJ.cjs → chunk-Y36HVRRL.cjs} +29 -7
  112. package/dist/lib/chunk-Y36HVRRL.cjs.map +1 -0
  113. package/dist/lib/{chunk-HUWGH27W.cjs → chunk-YZNE7GOJ.cjs} +4 -4
  114. package/dist/lib/{chunk-HUWGH27W.cjs.map → chunk-YZNE7GOJ.cjs.map} +1 -1
  115. package/dist/lib/{chunk-3DYPJHNF.js → chunk-ZK2C72JS.js} +3 -3
  116. package/dist/lib/{chunk-3DYPJHNF.js.map → chunk-ZK2C72JS.js.map} +1 -1
  117. package/dist/lib/contexts/api-context.cjs +6 -6
  118. package/dist/lib/contexts/api-context.d.cts +1 -1
  119. package/dist/lib/contexts/api-context.d.ts +1 -1
  120. package/dist/lib/contexts/api-context.js +5 -5
  121. package/dist/lib/contexts/context.cjs +4 -4
  122. package/dist/lib/contexts/context.d.cts +5 -5
  123. package/dist/lib/contexts/context.d.ts +5 -5
  124. package/dist/lib/contexts/context.js +3 -3
  125. package/dist/lib/contexts/environment-context.cjs +5 -5
  126. package/dist/lib/contexts/environment-context.d.cts +1 -1
  127. package/dist/lib/contexts/environment-context.d.ts +1 -1
  128. package/dist/lib/contexts/environment-context.js +4 -4
  129. package/dist/lib/contexts/index.cjs +8 -8
  130. package/dist/lib/contexts/index.d.cts +1 -1
  131. package/dist/lib/contexts/index.d.ts +1 -1
  132. package/dist/lib/contexts/index.js +5 -5
  133. package/dist/lib/contexts/plugin-context.d.cts +1 -1
  134. package/dist/lib/contexts/plugin-context.d.ts +1 -1
  135. package/dist/lib/entry.cjs +17 -9
  136. package/dist/lib/entry.d.cts +16 -2
  137. package/dist/lib/entry.d.ts +16 -2
  138. package/dist/lib/entry.js +1 -1
  139. package/dist/lib/fs/index.cjs +2 -2
  140. package/dist/lib/fs/index.js +1 -1
  141. package/dist/lib/fs/vfs.cjs +2 -2
  142. package/dist/lib/fs/vfs.js +1 -1
  143. package/dist/lib/index.cjs +32 -24
  144. package/dist/lib/index.d.cts +2 -2
  145. package/dist/lib/index.d.ts +2 -2
  146. package/dist/lib/index.js +9 -9
  147. package/dist/lib/{internal-DyXNBori.d.ts → internal-CFBs3Fok.d.cts} +1 -5
  148. package/dist/lib/{internal-Dt8PM9M2.d.cts → internal-Dlj-vo3a.d.ts} +1 -5
  149. package/dist/lib/unplugin/factory.cjs +7 -7
  150. package/dist/lib/unplugin/factory.js +6 -6
  151. package/dist/lib/unplugin/index.cjs +7 -7
  152. package/dist/lib/unplugin/index.js +6 -6
  153. package/dist/lib/utilities/bundle.cjs +4 -4
  154. package/dist/lib/utilities/bundle.js +3 -3
  155. package/dist/lib/utilities/index.cjs +6 -6
  156. package/dist/lib/utilities/index.js +4 -4
  157. package/dist/lib/utilities/resolve.cjs +5 -5
  158. package/dist/lib/utilities/resolve.js +4 -4
  159. package/dist/next.cjs +4 -4
  160. package/dist/next.js +3 -3
  161. package/dist/nuxt.cjs +9 -14
  162. package/dist/nuxt.js +5 -10
  163. package/dist/rolldown.cjs +6 -6
  164. package/dist/rolldown.js +3 -3
  165. package/dist/rollup.cjs +3 -3
  166. package/dist/rollup.js +2 -2
  167. package/dist/rspack.cjs +3 -3
  168. package/dist/rspack.js +2 -2
  169. package/dist/tsdown.cjs +4 -4
  170. package/dist/tsdown.js +3 -3
  171. package/dist/tsup.cjs +5 -5
  172. package/dist/tsup.js +4 -4
  173. package/dist/types/internal.d.cts +1 -5
  174. package/dist/types/internal.d.ts +1 -5
  175. package/dist/unloader.cjs +3 -3
  176. package/dist/unloader.js +2 -2
  177. package/dist/unplugin.cjs +8 -8
  178. package/dist/unplugin.js +4 -4
  179. package/dist/vite.cjs +7 -7
  180. package/dist/vite.js +4 -4
  181. package/dist/webpack.cjs +6 -6
  182. package/dist/webpack.js +3 -3
  183. package/package.json +2 -2
  184. package/dist/chunk-KQNFLNDO.cjs +0 -12
  185. package/dist/chunk-ZPGYJJAN.cjs +0 -12
  186. package/dist/lib/chunk-26JHNKA7.js.map +0 -1
  187. package/dist/lib/chunk-2IXO6SBG.js.map +0 -1
  188. package/dist/lib/chunk-37QKQRHL.js.map +0 -1
  189. package/dist/lib/chunk-3SANFGBI.js.map +0 -1
  190. package/dist/lib/chunk-CEHUDHRY.js.map +0 -1
  191. package/dist/lib/chunk-FQZQA4EJ.cjs.map +0 -1
  192. package/dist/lib/chunk-FR7QMZ4X.cjs.map +0 -1
  193. package/dist/lib/chunk-FSQATFTG.js.map +0 -1
  194. package/dist/lib/chunk-FYRHGPDZ.js.map +0 -1
  195. package/dist/lib/chunk-G6LP5AUT.cjs.map +0 -1
  196. package/dist/lib/chunk-GF5FQKAI.js.map +0 -1
  197. package/dist/lib/chunk-JJDYYD64.cjs.map +0 -1
  198. package/dist/lib/chunk-KLU5DWCZ.js.map +0 -1
  199. package/dist/lib/chunk-NHY25RLN.js.map +0 -1
  200. package/dist/lib/chunk-NMCDCHEL.cjs.map +0 -1
  201. package/dist/lib/chunk-NMHBDJX7.js.map +0 -1
  202. package/dist/lib/chunk-NPRQVHXP.cjs.map +0 -1
  203. package/dist/lib/chunk-O7HKPUBS.cjs.map +0 -1
  204. package/dist/lib/chunk-QNGZB26V.cjs.map +0 -1
  205. package/dist/lib/chunk-S6HKYEP4.js.map +0 -1
  206. package/dist/lib/chunk-TAHP4BEC.cjs.map +0 -1
  207. package/dist/lib/chunk-TAXCKJWL.cjs.map +0 -1
  208. package/dist/lib/chunk-TFOAWLRF.js.map +0 -1
  209. package/dist/lib/chunk-TQ45IJLR.cjs.map +0 -1
  210. package/dist/lib/chunk-YZ2NKI4K.cjs.map +0 -1
  211. package/dist/lib/chunk-ZFOPHCGK.cjs.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/lib/entry.ts"],"names":["resolveEntryInputFile","context","typeDefinition","replacePath","file","joinPaths","workspaceConfig","workspaceRoot","config","projectRoot","resolveEntryInput","name","resolveEntryOutput","replaceExtension","sourceRoot","resolveEntry","input","output","resolveEntries","typeDefinitions","Promise","all","map","parsed","parseTypeDefinition","filePath","appendPath","isFile","listFiles","flat","filter","Boolean","isTypeDefinition","entry","isString","undefined","isResolvedEntryTypeDefinition","resolveEntriesSync","replacePathTokens","listFilesSync","resolveVirtualEntry","resolved","artifactsPath","murmurhash","maxLength","replaceAll","getUniqueEntries","entries","getUniqueBy","toArray","item","isSetString"],"mappings":"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","file":"chunk-Y36HVRRL.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { toArray } from \"@stryke/convert/to-array\";\nimport { isFile } from \"@stryke/fs/is-file\";\nimport { listFiles, listFilesSync } from \"@stryke/fs/list-files\";\nimport { murmurhash } from \"@stryke/hash/murmurhash\";\nimport { getUniqueBy } from \"@stryke/helpers/get-unique\";\nimport { appendPath } from \"@stryke/path/append\";\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { replaceExtension, replacePath } from \"@stryke/path/replace\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport { isString } from \"@stryke/type-checks/is-string\";\nimport type {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport { replacePathTokens } from \"../plugin-utils/paths\";\nimport type { Context } from \"../types/context\";\nimport { ResolvedEntryTypeDefinition } from \"../types/resolved\";\n\nexport function resolveEntryInputFile(\n context: Context,\n typeDefinition: TypeDefinition\n): string {\n return replacePath(\n typeDefinition.file,\n joinPaths(context.workspaceConfig.workspaceRoot, context.config.projectRoot)\n );\n}\n\nexport function resolveEntryInput(\n context: Context,\n typeDefinition: TypeDefinition\n): TypeDefinition {\n return {\n file: resolveEntryInputFile(context, typeDefinition),\n name: typeDefinition.name\n };\n}\n\nexport function resolveEntryOutput(\n context: Context,\n typeDefinition: TypeDefinition\n): string {\n return replaceExtension(\n replacePath(\n replacePath(\n replacePath(\n replacePath(\n replacePath(\n typeDefinition.file,\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.sourceRoot\n )\n ),\n joinPaths(\n context.workspaceConfig.workspaceRoot,\n context.config.projectRoot\n )\n ),\n context.config.sourceRoot\n ),\n context.config.projectRoot\n ),\n replacePath(context.config.sourceRoot, context.config.projectRoot)\n )\n );\n}\n\nexport function resolveEntry(\n context: Context,\n typeDefinition: TypeDefinition\n): ResolvedEntryTypeDefinition {\n const input = resolveEntryInput(context, typeDefinition);\n\n return {\n ...input,\n input,\n output: resolveEntryOutput(context, typeDefinition)\n };\n}\n\n/**\n * Resolves multiple type definitions into their corresponding resolved entry type definitions.\n *\n * @param context - The current context\n * @param typeDefinitions - The type definitions to resolve.\n * @returns A promise that resolves to an array of resolved entry type definitions.\n */\nexport async function resolveEntries(\n context: Context,\n typeDefinitions: TypeDefinitionParameter[]\n): Promise<ResolvedEntryTypeDefinition[]> {\n return (\n await Promise.all(\n typeDefinitions.map(async typeDefinition => {\n const parsed = parseTypeDefinition(typeDefinition)!;\n\n const filePath = appendPath(parsed.file, context.config.projectRoot);\n if (isFile(filePath)) {\n return resolveEntry(context, {\n file: replacePath(filePath, context.config.projectRoot),\n name: parsed.name\n });\n }\n\n return (\n await listFiles(appendPath(parsed.file, context.config.projectRoot))\n ).map(file =>\n resolveEntry(context, {\n file,\n name: parsed.name\n })\n );\n })\n )\n )\n .flat()\n .filter(Boolean);\n}\n\n/**\n * Checks if the provided entry is a type definition.\n *\n * @param entry - The entry to check.\n * @returns True if the entry is a type definition, false otherwise.\n */\nexport function isTypeDefinition(\n entry: TypeDefinitionParameter\n): entry is TypeDefinition {\n return !isString(entry) && entry.file !== undefined;\n}\n\n/**\n * Checks if the provided entry is a resolved entry type definition.\n *\n * @param entry - The entry to check.\n * @returns True if the entry is a resolved entry type definition, false otherwise.\n */\nexport function isResolvedEntryTypeDefinition(\n entry: TypeDefinitionParameter | ResolvedEntryTypeDefinition\n): entry is ResolvedEntryTypeDefinition {\n return (\n isTypeDefinition(entry) &&\n (entry as ResolvedEntryTypeDefinition).input !== undefined &&\n (entry as ResolvedEntryTypeDefinition).output !== undefined\n );\n}\n\n/**\n * Resolves multiple type definitions into their corresponding resolved entry type definitions.\n *\n * @param context - The current context\n * @param typeDefinitions - The type definitions to resolve.\n * @returns A promise that resolves to an array of resolved entry type definitions.\n */\nexport function resolveEntriesSync(\n context: Context,\n typeDefinitions: Array<TypeDefinitionParameter | ResolvedEntryTypeDefinition>\n): ResolvedEntryTypeDefinition[] {\n return typeDefinitions\n .map(entry => {\n if (isResolvedEntryTypeDefinition(entry)) {\n return { ...entry, file: replacePathTokens(context, entry.file) };\n }\n\n let typeDefinition: TypeDefinition;\n if (isString(entry)) {\n typeDefinition = parseTypeDefinition(\n replacePathTokens(context, entry)\n )!;\n } else {\n typeDefinition = entry;\n typeDefinition.file = replacePathTokens(context, typeDefinition.file);\n }\n\n const filePath = appendPath(\n typeDefinition.file,\n context.config.projectRoot\n );\n if (isFile(filePath)) {\n return resolveEntry(context, {\n file: replacePath(filePath, context.config.projectRoot),\n name: typeDefinition.name\n });\n }\n\n return listFilesSync(filePath).map(file =>\n resolveEntry(context, {\n file,\n name: typeDefinition.name\n })\n );\n })\n .flat()\n .filter(Boolean);\n}\n\n/** Resolve a virtual entry point by generating a unique file path in the artifacts directory.\n *\n * @param context - The current context\n * @param typeDefinition - The type definition to resolve.\n * @returns The resolved entry type definition with a unique virtual file path.\n */\nexport function resolveVirtualEntry(\n context: Context,\n typeDefinition: TypeDefinitionParameter\n): ResolvedEntryTypeDefinition {\n const parsed = parseTypeDefinition(typeDefinition)!;\n const resolved = resolveEntry(context, parsed);\n const file = joinPaths(\n context.artifactsPath,\n `entry-${murmurhash(\n { file: resolved.file, name: resolved.name },\n { maxLength: 24 }\n )\n .replaceAll(\"-\", \"0\")\n .replaceAll(\"_\", \"1\")}.ts`\n );\n\n return {\n file,\n name: resolved.name,\n input: {\n file,\n name: resolved.name\n },\n output: file\n };\n}\n\n/**\n * Get unique entries from the provided list.\n *\n * @param entries - The entries to process.\n * @returns An array of unique entries (by file path or content hash).\n */\nexport function getUniqueEntries(\n entries: TypeDefinitionParameter | TypeDefinitionParameter[] = []\n): TypeDefinitionParameter[] {\n return getUniqueBy(toArray(entries), (item: TypeDefinitionParameter) =>\n isSetString(item) ? item : murmurhash(item ?? {}, { maxLength: 24 })\n );\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkPD6TYAFZ_cjs = require('./chunk-PD6TYAFZ.cjs');
3
+ var chunkPNVVTXLD_cjs = require('./chunk-PNVVTXLD.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
6
6
  var isSetString = require('@stryke/type-checks/is-set-string');
@@ -12,7 +12,7 @@ async function resolve(context, type, overrides = {}) {
12
12
  } else {
13
13
  typeDefinition = type;
14
14
  }
15
- const result = await chunkPD6TYAFZ_cjs.bundle(context, typeDefinition.file, overrides);
15
+ const result = await chunkPNVVTXLD_cjs.bundle(context, typeDefinition.file, overrides);
16
16
  const resolved = await context.resolver.evalModule(result.text, {
17
17
  filename: result.path,
18
18
  forceTranspile: true
@@ -26,5 +26,5 @@ async function resolve(context, type, overrides = {}) {
26
26
  chunkPK6SKIKE_cjs.__name(resolve, "resolve");
27
27
 
28
28
  exports.resolve = resolve;
29
- //# sourceMappingURL=chunk-HUWGH27W.cjs.map
30
- //# sourceMappingURL=chunk-HUWGH27W.cjs.map
29
+ //# sourceMappingURL=chunk-YZNE7GOJ.cjs.map
30
+ //# sourceMappingURL=chunk-YZNE7GOJ.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/utilities/resolve.ts"],"names":["resolve","context","type","overrides","typeDefinition","isSetString","parseTypeDefinition","result","bundle","file","resolved","resolver","evalModule","text","filename","path","forceTranspile","exportName","name"],"mappings":";;;;;;;AAoCA,eAAsBA,OAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,IAAIC,cAAAA;AACJ,EAAA,IAAIC,uBAAAA,CAAYH,IAAAA,CAAAA,EAAO;AACrBE,IAAAA,cAAAA,GAAiBE,wCAAoBJ,IAAAA,CAAAA;EACvC,CAAA,MAAO;AACLE,IAAAA,cAAAA,GAAiBF,IAAAA;AACnB,EAAA;AAEA,EAAA,MAAMK,SAAS,MAAMC,wBAAAA,CAAOP,OAAAA,EAASG,cAAAA,CAAeK,MAAMN,SAAAA,CAAAA;AAE1D,EAAA,MAAMO,WAAY,MAAMT,OAAAA,CAAQU,QAAAA,CAASC,UAAAA,CAAWL,OAAOM,IAAAA,EAAM;AAC/DC,IAAAA,QAAAA,EAAUP,MAAAA,CAAOQ,IAAAA;IACjBC,cAAAA,EAAgB;GAClB,CAAA;AAEA,EAAA,IAAIC,aAAab,cAAAA,CAAec,IAAAA;AAChC,EAAA,IAAI,CAACD,UAAAA,EAAY;AACfA,IAAAA,UAAAA,GAAa,SAAA;AACf,EAAA;AAEA,EAAA,OAAOP,SAASO,UAAAA,CAAAA,IAAeP,QAAAA,CAAS,CAAA,QAAA,EAAMO,UAAAA,CAAAA,CAAY,CAAA;AAC5D;AAzBsBjB,wBAAAA,CAAAA,OAAAA,EAAAA,SAAAA,CAAAA","file":"chunk-HUWGH27W.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport { ESBuildResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { bundle } from \"./bundle\";\n\n/**\n * Compiles a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the compiled module.\n */\nexport async function resolve<TResult = any>(\n context: Context,\n type: TypeDefinitionParameter,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<TResult> {\n let typeDefinition!: TypeDefinition;\n if (isSetString(type)) {\n typeDefinition = parseTypeDefinition(type) as TypeDefinition;\n } else {\n typeDefinition = type;\n }\n\n const result = await bundle(context, typeDefinition.file, overrides);\n\n const resolved = (await context.resolver.evalModule(result.text, {\n filename: result.path,\n forceTranspile: true\n })) as Record<string, any>;\n\n let exportName = typeDefinition.name;\n if (!exportName) {\n exportName = \"default\";\n }\n\n return resolved[exportName] ?? resolved[`__Ω${exportName}`];\n}\n"]}
1
+ {"version":3,"sources":["../../src/lib/utilities/resolve.ts"],"names":["resolve","context","type","overrides","typeDefinition","isSetString","parseTypeDefinition","result","bundle","file","resolved","resolver","evalModule","text","filename","path","forceTranspile","exportName","name"],"mappings":";;;;;;;AAoCA,eAAsBA,OAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,IAAIC,cAAAA;AACJ,EAAA,IAAIC,uBAAAA,CAAYH,IAAAA,CAAAA,EAAO;AACrBE,IAAAA,cAAAA,GAAiBE,wCAAoBJ,IAAAA,CAAAA;EACvC,CAAA,MAAO;AACLE,IAAAA,cAAAA,GAAiBF,IAAAA;AACnB,EAAA;AAEA,EAAA,MAAMK,SAAS,MAAMC,wBAAAA,CAAOP,OAAAA,EAASG,cAAAA,CAAeK,MAAMN,SAAAA,CAAAA;AAE1D,EAAA,MAAMO,WAAY,MAAMT,OAAAA,CAAQU,QAAAA,CAASC,UAAAA,CAAWL,OAAOM,IAAAA,EAAM;AAC/DC,IAAAA,QAAAA,EAAUP,MAAAA,CAAOQ,IAAAA;IACjBC,cAAAA,EAAgB;GAClB,CAAA;AAEA,EAAA,IAAIC,aAAab,cAAAA,CAAec,IAAAA;AAChC,EAAA,IAAI,CAACD,UAAAA,EAAY;AACfA,IAAAA,UAAAA,GAAa,SAAA;AACf,EAAA;AAEA,EAAA,OAAOP,SAASO,UAAAA,CAAAA,IAAeP,QAAAA,CAAS,CAAA,QAAA,EAAMO,UAAAA,CAAAA,CAAY,CAAA;AAC5D;AAzBsBjB,wBAAAA,CAAAA,OAAAA,EAAAA,SAAAA,CAAAA","file":"chunk-YZNE7GOJ.cjs","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport { ESBuildResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { bundle } from \"./bundle\";\n\n/**\n * Compiles a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the compiled module.\n */\nexport async function resolve<TResult = any>(\n context: Context,\n type: TypeDefinitionParameter,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<TResult> {\n let typeDefinition!: TypeDefinition;\n if (isSetString(type)) {\n typeDefinition = parseTypeDefinition(type) as TypeDefinition;\n } else {\n typeDefinition = type;\n }\n\n const result = await bundle(context, typeDefinition.file, overrides);\n\n const resolved = (await context.resolver.evalModule(result.text, {\n filename: result.path,\n forceTranspile: true\n })) as Record<string, any>;\n\n let exportName = typeDefinition.name;\n if (!exportName) {\n exportName = \"default\";\n }\n\n return resolved[exportName] ?? resolved[`__Ω${exportName}`];\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { bundle } from './chunk-7ZLMFCZF.js';
1
+ import { bundle } from './chunk-7D4ANVQ3.js';
2
2
  import { __name } from './chunk-7QVYU63E.js';
3
3
  import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
4
4
  import { isSetString } from '@stryke/type-checks/is-set-string';
@@ -24,5 +24,5 @@ async function resolve(context, type, overrides = {}) {
24
24
  __name(resolve, "resolve");
25
25
 
26
26
  export { resolve };
27
- //# sourceMappingURL=chunk-3DYPJHNF.js.map
28
- //# sourceMappingURL=chunk-3DYPJHNF.js.map
27
+ //# sourceMappingURL=chunk-ZK2C72JS.js.map
28
+ //# sourceMappingURL=chunk-ZK2C72JS.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/lib/utilities/resolve.ts"],"names":["resolve","context","type","overrides","typeDefinition","isSetString","parseTypeDefinition","result","bundle","file","resolved","resolver","evalModule","text","filename","path","forceTranspile","exportName","name"],"mappings":";;;;;AAoCA,eAAsBA,OAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,IAAIC,cAAAA;AACJ,EAAA,IAAIC,WAAAA,CAAYH,IAAAA,CAAAA,EAAO;AACrBE,IAAAA,cAAAA,GAAiBE,oBAAoBJ,IAAAA,CAAAA;EACvC,CAAA,MAAO;AACLE,IAAAA,cAAAA,GAAiBF,IAAAA;AACnB,EAAA;AAEA,EAAA,MAAMK,SAAS,MAAMC,MAAAA,CAAOP,OAAAA,EAASG,cAAAA,CAAeK,MAAMN,SAAAA,CAAAA;AAE1D,EAAA,MAAMO,WAAY,MAAMT,OAAAA,CAAQU,QAAAA,CAASC,UAAAA,CAAWL,OAAOM,IAAAA,EAAM;AAC/DC,IAAAA,QAAAA,EAAUP,MAAAA,CAAOQ,IAAAA;IACjBC,cAAAA,EAAgB;GAClB,CAAA;AAEA,EAAA,IAAIC,aAAab,cAAAA,CAAec,IAAAA;AAChC,EAAA,IAAI,CAACD,UAAAA,EAAY;AACfA,IAAAA,UAAAA,GAAa,SAAA;AACf,EAAA;AAEA,EAAA,OAAOP,SAASO,UAAAA,CAAAA,IAAeP,QAAAA,CAAS,CAAA,QAAA,EAAMO,UAAAA,CAAAA,CAAY,CAAA;AAC5D;AAzBsBjB,MAAAA,CAAAA,OAAAA,EAAAA,SAAAA,CAAAA","file":"chunk-3DYPJHNF.js","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport { ESBuildResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { bundle } from \"./bundle\";\n\n/**\n * Compiles a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the compiled module.\n */\nexport async function resolve<TResult = any>(\n context: Context,\n type: TypeDefinitionParameter,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<TResult> {\n let typeDefinition!: TypeDefinition;\n if (isSetString(type)) {\n typeDefinition = parseTypeDefinition(type) as TypeDefinition;\n } else {\n typeDefinition = type;\n }\n\n const result = await bundle(context, typeDefinition.file, overrides);\n\n const resolved = (await context.resolver.evalModule(result.text, {\n filename: result.path,\n forceTranspile: true\n })) as Record<string, any>;\n\n let exportName = typeDefinition.name;\n if (!exportName) {\n exportName = \"default\";\n }\n\n return resolved[exportName] ?? resolved[`__Ω${exportName}`];\n}\n"]}
1
+ {"version":3,"sources":["../../src/lib/utilities/resolve.ts"],"names":["resolve","context","type","overrides","typeDefinition","isSetString","parseTypeDefinition","result","bundle","file","resolved","resolver","evalModule","text","filename","path","forceTranspile","exportName","name"],"mappings":";;;;;AAoCA,eAAsBA,OAAAA,CACpBC,OAAAA,EACAC,IAAAA,EACAC,SAAAA,GAAiD,EAAC,EAAC;AAEnD,EAAA,IAAIC,cAAAA;AACJ,EAAA,IAAIC,WAAAA,CAAYH,IAAAA,CAAAA,EAAO;AACrBE,IAAAA,cAAAA,GAAiBE,oBAAoBJ,IAAAA,CAAAA;EACvC,CAAA,MAAO;AACLE,IAAAA,cAAAA,GAAiBF,IAAAA;AACnB,EAAA;AAEA,EAAA,MAAMK,SAAS,MAAMC,MAAAA,CAAOP,OAAAA,EAASG,cAAAA,CAAeK,MAAMN,SAAAA,CAAAA;AAE1D,EAAA,MAAMO,WAAY,MAAMT,OAAAA,CAAQU,QAAAA,CAASC,UAAAA,CAAWL,OAAOM,IAAAA,EAAM;AAC/DC,IAAAA,QAAAA,EAAUP,MAAAA,CAAOQ,IAAAA;IACjBC,cAAAA,EAAgB;GAClB,CAAA;AAEA,EAAA,IAAIC,aAAab,cAAAA,CAAec,IAAAA;AAChC,EAAA,IAAI,CAACD,UAAAA,EAAY;AACfA,IAAAA,UAAAA,GAAa,SAAA;AACf,EAAA;AAEA,EAAA,OAAOP,SAASO,UAAAA,CAAAA,IAAeP,QAAAA,CAAS,CAAA,QAAA,EAAMO,UAAAA,CAAAA,CAAY,CAAA;AAC5D;AAzBsBjB,MAAAA,CAAAA,OAAAA,EAAAA,SAAAA,CAAAA","file":"chunk-ZK2C72JS.js","sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { parseTypeDefinition } from \"@stryke/convert/parse-type-definition\";\nimport { isSetString } from \"@stryke/type-checks/is-set-string\";\nimport {\n TypeDefinition,\n TypeDefinitionParameter\n} from \"@stryke/types/configuration\";\nimport { ESBuildResolvedBuildConfig } from \"../../types/build\";\nimport { Context } from \"../../types/context\";\nimport { bundle } from \"./bundle\";\n\n/**\n * Compiles a type definition to a module.\n *\n * @param context - The context object containing the environment paths.\n * @param type - The type definition to compile. This can be either a string or a {@link TypeDefinition} object.\n * @param overrides - Optional overrides for the ESBuild configuration.\n * @returns A promise that resolves to the compiled module.\n */\nexport async function resolve<TResult = any>(\n context: Context,\n type: TypeDefinitionParameter,\n overrides: Partial<ESBuildResolvedBuildConfig> = {}\n): Promise<TResult> {\n let typeDefinition!: TypeDefinition;\n if (isSetString(type)) {\n typeDefinition = parseTypeDefinition(type) as TypeDefinition;\n } else {\n typeDefinition = type;\n }\n\n const result = await bundle(context, typeDefinition.file, overrides);\n\n const resolved = (await context.resolver.evalModule(result.text, {\n filename: result.path,\n forceTranspile: true\n })) as Record<string, any>;\n\n let exportName = typeDefinition.name;\n if (!exportName) {\n exportName = \"default\";\n }\n\n return resolved[exportName] ?? resolved[`__Ω${exportName}`];\n}\n"]}
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var chunkTBRFVVYJ_cjs = require('../chunk-TBRFVVYJ.cjs');
4
- require('../chunk-6MX6ZNGS.cjs');
3
+ var chunkO3ZBMF6Z_cjs = require('../chunk-O3ZBMF6Z.cjs');
4
+ require('../chunk-JF4ZEC67.cjs');
5
5
  require('../chunk-GNEHIBN4.cjs');
6
- require('../chunk-NMCDCHEL.cjs');
6
+ require('../chunk-HFM5IVGD.cjs');
7
7
  require('../chunk-BJGMF356.cjs');
8
8
  require('../chunk-ZWLSNYIN.cjs');
9
9
  require('../chunk-QHTL2U3L.cjs');
10
10
  require('../chunk-64R4MDJ7.cjs');
11
11
  require('../chunk-GZDE4GLY.cjs');
12
- require('../chunk-NPRQVHXP.cjs');
12
+ require('../chunk-2J3BIEL5.cjs');
13
13
  require('../chunk-XKEHVYDR.cjs');
14
14
  require('../chunk-FO5AJ2PR.cjs');
15
15
  require('../chunk-4LHV7MWI.cjs');
@@ -18,7 +18,7 @@ require('../chunk-J4TJDOSP.cjs');
18
18
  require('../chunk-H3C5BWBW.cjs');
19
19
  require('../chunk-2JR645O3.cjs');
20
20
  require('../chunk-GFUPZMLG.cjs');
21
- require('../chunk-FQZQA4EJ.cjs');
21
+ require('../chunk-Y36HVRRL.cjs');
22
22
  require('../chunk-YF57WETC.cjs');
23
23
  require('../chunk-PK6SKIKE.cjs');
24
24
 
@@ -26,7 +26,7 @@ require('../chunk-PK6SKIKE.cjs');
26
26
 
27
27
  Object.defineProperty(exports, "PowerlinesAPIContext", {
28
28
  enumerable: true,
29
- get: function () { return chunkTBRFVVYJ_cjs.PowerlinesAPIContext; }
29
+ get: function () { return chunkO3ZBMF6Z_cjs.PowerlinesAPIContext; }
30
30
  });
31
31
  //# sourceMappingURL=api-context.cjs.map
32
32
  //# sourceMappingURL=api-context.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-D7uVz_j9.cjs';
2
- import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-Dt8PM9M2.cjs';
2
+ import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-CFBs3Fok.cjs';
3
3
  import { PowerlinesContext } from './context.cjs';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -1,5 +1,5 @@
1
1
  import { g as ResolvedConfig, A as APIContext, I as InitialUserConfig, L as LogFn, h as Plugin, i as PluginContext, W as WorkspaceConfig, j as EnvironmentResolvedConfig, k as InitContextOptions, l as EnvironmentContext } from '../config-B7VlKFtE.js';
2
- import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-DyXNBori.js';
2
+ import { a as UNSAFE_ContextInternal, b as UNSAFE_EnvironmentContext } from '../internal-Dlj-vo3a.js';
3
3
  import { PowerlinesContext } from './context.js';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -1,13 +1,13 @@
1
- export { PowerlinesAPIContext } from '../chunk-NMZHPWB6.js';
2
- import '../chunk-EEF6LJVD.js';
1
+ export { PowerlinesAPIContext } from '../chunk-2JWZTFXS.js';
2
+ import '../chunk-X6CZ2G2G.js';
3
3
  import '../chunk-254IMO3A.js';
4
- import '../chunk-GF5FQKAI.js';
4
+ import '../chunk-HX5UF7YV.js';
5
5
  import '../chunk-45D4XIOK.js';
6
6
  import '../chunk-ZLWW2MXD.js';
7
7
  import '../chunk-FPFPUYXS.js';
8
8
  import '../chunk-HGE5DAZF.js';
9
9
  import '../chunk-7PD2L3PS.js';
10
- import '../chunk-NMHBDJX7.js';
10
+ import '../chunk-WQRK3BBU.js';
11
11
  import '../chunk-2LZ2KCSP.js';
12
12
  import '../chunk-I3GWGYDB.js';
13
13
  import '../chunk-QHKZQZJG.js';
@@ -16,7 +16,7 @@ import '../chunk-LGM65FVK.js';
16
16
  import '../chunk-BZ5L2CVR.js';
17
17
  import '../chunk-Q25ZPXA7.js';
18
18
  import '../chunk-F5GKG7AF.js';
19
- import '../chunk-KLU5DWCZ.js';
19
+ import '../chunk-N37JIOZ4.js';
20
20
  import '../chunk-FFATMOAQ.js';
21
21
  import '../chunk-7QVYU63E.js';
22
22
  //# sourceMappingURL=api-context.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkNMCDCHEL_cjs = require('../chunk-NMCDCHEL.cjs');
3
+ var chunkHFM5IVGD_cjs = require('../chunk-HFM5IVGD.cjs');
4
4
  require('../chunk-BJGMF356.cjs');
5
5
  require('../chunk-ZWLSNYIN.cjs');
6
6
  require('../chunk-QHTL2U3L.cjs');
7
7
  require('../chunk-64R4MDJ7.cjs');
8
- require('../chunk-NPRQVHXP.cjs');
8
+ require('../chunk-2J3BIEL5.cjs');
9
9
  require('../chunk-XKEHVYDR.cjs');
10
10
  require('../chunk-FO5AJ2PR.cjs');
11
11
  require('../chunk-4LHV7MWI.cjs');
@@ -13,7 +13,7 @@ require('../chunk-QSNEYALY.cjs');
13
13
  require('../chunk-J4TJDOSP.cjs');
14
14
  require('../chunk-2JR645O3.cjs');
15
15
  require('../chunk-GFUPZMLG.cjs');
16
- require('../chunk-FQZQA4EJ.cjs');
16
+ require('../chunk-Y36HVRRL.cjs');
17
17
  require('../chunk-YF57WETC.cjs');
18
18
  require('../chunk-PK6SKIKE.cjs');
19
19
 
@@ -21,7 +21,7 @@ require('../chunk-PK6SKIKE.cjs');
21
21
 
22
22
  Object.defineProperty(exports, "PowerlinesContext", {
23
23
  enumerable: true,
24
- get: function () { return chunkNMCDCHEL_cjs.PowerlinesContext; }
24
+ get: function () { return chunkHFM5IVGD_cjs.PowerlinesContext; }
25
25
  });
26
26
  //# sourceMappingURL=context.cjs.map
27
27
  //# sourceMappingURL=context.cjs.map
@@ -8,7 +8,7 @@ import { RequestInfo, Response } from 'undici';
8
8
  import { ExternalIdResult, UnpluginMessage } from 'unplugin';
9
9
  import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, o as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, p as ParseOptions, q as TransformResult, r as EmitOptions, s as EmitEntryOptions, k as InitContextOptions } from '../config-D7uVz_j9.cjs';
10
10
  import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile } from '../fs-DkLcPGg-.cjs';
11
- import { a as UNSAFE_ContextInternal } from '../internal-Dt8PM9M2.cjs';
11
+ import { a as UNSAFE_ContextInternal } from '../internal-CFBs3Fok.cjs';
12
12
  import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.cjs';
13
13
  import '@storm-software/build-tools/types';
14
14
  import '@storm-software/config-tools/types';
@@ -101,10 +101,6 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
101
101
  * The resolved entry type definitions for the project
102
102
  */
103
103
  get entry(): ResolvedEntryTypeDefinition[];
104
- /**
105
- * Sets the resolved entry type definitions for the project
106
- */
107
- set entry(value: ResolvedEntryTypeDefinition[]);
108
104
  /**
109
105
  * The TypeScript configuration parsed from the tsconfig file
110
106
  */
@@ -190,6 +186,10 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
190
186
  * Gets the request cache.
191
187
  */
192
188
  protected get requestCache(): FlatCache;
189
+ /**
190
+ * The entry points that exist in the Powerlines virtual file system
191
+ */
192
+ protected get _entry(): ResolvedEntryTypeDefinition[];
193
193
  /**
194
194
  * A function to perform HTTP fetch requests
195
195
  *
@@ -8,7 +8,7 @@ import { RequestInfo, Response } from 'undici';
8
8
  import { ExternalIdResult, UnpluginMessage } from 'unplugin';
9
9
  import { g as ResolvedConfig, C as Context, I as InitialUserConfig, M as MetaInfo, o as Resolver, R as ResolvedEntryTypeDefinition, L as LogFn, W as WorkspaceConfig, F as FetchOptions, p as ParseOptions, q as TransformResult, r as EmitOptions, s as EmitEntryOptions, k as InitContextOptions } from '../config-B7VlKFtE.js';
10
10
  import { V as VirtualFileSystemInterface, R as ResolveOptions, a as VirtualFile } from '../fs-DkLcPGg-.js';
11
- import { a as UNSAFE_ContextInternal } from '../internal-DyXNBori.js';
11
+ import { a as UNSAFE_ContextInternal } from '../internal-Dlj-vo3a.js';
12
12
  import { P as ParsedTypeScriptConfig } from '../tsconfig-Bz-CiFqD.js';
13
13
  import '@storm-software/build-tools/types';
14
14
  import '@storm-software/config-tools/types';
@@ -101,10 +101,6 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
101
101
  * The resolved entry type definitions for the project
102
102
  */
103
103
  get entry(): ResolvedEntryTypeDefinition[];
104
- /**
105
- * Sets the resolved entry type definitions for the project
106
- */
107
- set entry(value: ResolvedEntryTypeDefinition[]);
108
104
  /**
109
105
  * The TypeScript configuration parsed from the tsconfig file
110
106
  */
@@ -190,6 +186,10 @@ declare class PowerlinesContext<TResolvedConfig extends ResolvedConfig = Resolve
190
186
  * Gets the request cache.
191
187
  */
192
188
  protected get requestCache(): FlatCache;
189
+ /**
190
+ * The entry points that exist in the Powerlines virtual file system
191
+ */
192
+ protected get _entry(): ResolvedEntryTypeDefinition[];
193
193
  /**
194
194
  * A function to perform HTTP fetch requests
195
195
  *
@@ -1,9 +1,9 @@
1
- export { PowerlinesContext } from '../chunk-GF5FQKAI.js';
1
+ export { PowerlinesContext } from '../chunk-HX5UF7YV.js';
2
2
  import '../chunk-45D4XIOK.js';
3
3
  import '../chunk-ZLWW2MXD.js';
4
4
  import '../chunk-FPFPUYXS.js';
5
5
  import '../chunk-HGE5DAZF.js';
6
- import '../chunk-NMHBDJX7.js';
6
+ import '../chunk-WQRK3BBU.js';
7
7
  import '../chunk-2LZ2KCSP.js';
8
8
  import '../chunk-I3GWGYDB.js';
9
9
  import '../chunk-QHKZQZJG.js';
@@ -11,7 +11,7 @@ import '../chunk-XCVUC3IN.js';
11
11
  import '../chunk-LGM65FVK.js';
12
12
  import '../chunk-Q25ZPXA7.js';
13
13
  import '../chunk-F5GKG7AF.js';
14
- import '../chunk-KLU5DWCZ.js';
14
+ import '../chunk-N37JIOZ4.js';
15
15
  import '../chunk-FFATMOAQ.js';
16
16
  import '../chunk-7QVYU63E.js';
17
17
  //# sourceMappingURL=context.js.map
@@ -1,14 +1,14 @@
1
1
  'use strict';
2
2
 
3
- var chunk6MX6ZNGS_cjs = require('../chunk-6MX6ZNGS.cjs');
3
+ var chunkJF4ZEC67_cjs = require('../chunk-JF4ZEC67.cjs');
4
4
  require('../chunk-GNEHIBN4.cjs');
5
- require('../chunk-NMCDCHEL.cjs');
5
+ require('../chunk-HFM5IVGD.cjs');
6
6
  require('../chunk-BJGMF356.cjs');
7
7
  require('../chunk-ZWLSNYIN.cjs');
8
8
  require('../chunk-QHTL2U3L.cjs');
9
9
  require('../chunk-64R4MDJ7.cjs');
10
10
  require('../chunk-GZDE4GLY.cjs');
11
- require('../chunk-NPRQVHXP.cjs');
11
+ require('../chunk-2J3BIEL5.cjs');
12
12
  require('../chunk-XKEHVYDR.cjs');
13
13
  require('../chunk-FO5AJ2PR.cjs');
14
14
  require('../chunk-4LHV7MWI.cjs');
@@ -16,7 +16,7 @@ require('../chunk-QSNEYALY.cjs');
16
16
  require('../chunk-J4TJDOSP.cjs');
17
17
  require('../chunk-2JR645O3.cjs');
18
18
  require('../chunk-GFUPZMLG.cjs');
19
- require('../chunk-FQZQA4EJ.cjs');
19
+ require('../chunk-Y36HVRRL.cjs');
20
20
  require('../chunk-YF57WETC.cjs');
21
21
  require('../chunk-PK6SKIKE.cjs');
22
22
 
@@ -24,7 +24,7 @@ require('../chunk-PK6SKIKE.cjs');
24
24
 
25
25
  Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
26
26
  enumerable: true,
27
- get: function () { return chunk6MX6ZNGS_cjs.PowerlinesEnvironmentContext; }
27
+ get: function () { return chunkJF4ZEC67_cjs.PowerlinesEnvironmentContext; }
28
28
  });
29
29
  //# sourceMappingURL=environment-context.cjs.map
30
30
  //# sourceMappingURL=environment-context.cjs.map
@@ -36,7 +36,7 @@ import '../tsconfig-Bz-CiFqD.cjs';
36
36
  import '@stryke/types/tsconfig';
37
37
  import 'typescript';
38
38
  import 'flat-cache';
39
- import '../internal-Dt8PM9M2.cjs';
39
+ import '../internal-CFBs3Fok.cjs';
40
40
 
41
41
  declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
42
42
  #private;
@@ -36,7 +36,7 @@ import '../tsconfig-Bz-CiFqD.js';
36
36
  import '@stryke/types/tsconfig';
37
37
  import 'typescript';
38
38
  import 'flat-cache';
39
- import '../internal-DyXNBori.js';
39
+ import '../internal-Dlj-vo3a.js';
40
40
 
41
41
  declare class PowerlinesEnvironmentContext<TResolvedConfig extends ResolvedConfig = ResolvedConfig> extends PowerlinesContext<TResolvedConfig> implements EnvironmentContext<TResolvedConfig> {
42
42
  #private;
@@ -1,12 +1,12 @@
1
- export { PowerlinesEnvironmentContext } from '../chunk-EEF6LJVD.js';
1
+ export { PowerlinesEnvironmentContext } from '../chunk-X6CZ2G2G.js';
2
2
  import '../chunk-254IMO3A.js';
3
- import '../chunk-GF5FQKAI.js';
3
+ import '../chunk-HX5UF7YV.js';
4
4
  import '../chunk-45D4XIOK.js';
5
5
  import '../chunk-ZLWW2MXD.js';
6
6
  import '../chunk-FPFPUYXS.js';
7
7
  import '../chunk-HGE5DAZF.js';
8
8
  import '../chunk-7PD2L3PS.js';
9
- import '../chunk-NMHBDJX7.js';
9
+ import '../chunk-WQRK3BBU.js';
10
10
  import '../chunk-2LZ2KCSP.js';
11
11
  import '../chunk-I3GWGYDB.js';
12
12
  import '../chunk-QHKZQZJG.js';
@@ -14,7 +14,7 @@ import '../chunk-XCVUC3IN.js';
14
14
  import '../chunk-LGM65FVK.js';
15
15
  import '../chunk-Q25ZPXA7.js';
16
16
  import '../chunk-F5GKG7AF.js';
17
- import '../chunk-KLU5DWCZ.js';
17
+ import '../chunk-N37JIOZ4.js';
18
18
  import '../chunk-FFATMOAQ.js';
19
19
  import '../chunk-7QVYU63E.js';
20
20
  //# sourceMappingURL=environment-context.js.map
@@ -1,16 +1,16 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-QMKA57N4.cjs');
4
- var chunkTBRFVVYJ_cjs = require('../chunk-TBRFVVYJ.cjs');
5
- var chunk6MX6ZNGS_cjs = require('../chunk-6MX6ZNGS.cjs');
4
+ var chunkO3ZBMF6Z_cjs = require('../chunk-O3ZBMF6Z.cjs');
5
+ var chunkJF4ZEC67_cjs = require('../chunk-JF4ZEC67.cjs');
6
6
  require('../chunk-GNEHIBN4.cjs');
7
- var chunkNMCDCHEL_cjs = require('../chunk-NMCDCHEL.cjs');
7
+ var chunkHFM5IVGD_cjs = require('../chunk-HFM5IVGD.cjs');
8
8
  require('../chunk-BJGMF356.cjs');
9
9
  require('../chunk-ZWLSNYIN.cjs');
10
10
  require('../chunk-QHTL2U3L.cjs');
11
11
  require('../chunk-64R4MDJ7.cjs');
12
12
  var chunkGZDE4GLY_cjs = require('../chunk-GZDE4GLY.cjs');
13
- require('../chunk-NPRQVHXP.cjs');
13
+ require('../chunk-2J3BIEL5.cjs');
14
14
  require('../chunk-XKEHVYDR.cjs');
15
15
  require('../chunk-FO5AJ2PR.cjs');
16
16
  require('../chunk-4LHV7MWI.cjs');
@@ -19,7 +19,7 @@ require('../chunk-J4TJDOSP.cjs');
19
19
  require('../chunk-H3C5BWBW.cjs');
20
20
  require('../chunk-2JR645O3.cjs');
21
21
  require('../chunk-GFUPZMLG.cjs');
22
- require('../chunk-FQZQA4EJ.cjs');
22
+ require('../chunk-Y36HVRRL.cjs');
23
23
  require('../chunk-YF57WETC.cjs');
24
24
  require('../chunk-PK6SKIKE.cjs');
25
25
 
@@ -27,15 +27,15 @@ require('../chunk-PK6SKIKE.cjs');
27
27
 
28
28
  Object.defineProperty(exports, "PowerlinesAPIContext", {
29
29
  enumerable: true,
30
- get: function () { return chunkTBRFVVYJ_cjs.PowerlinesAPIContext; }
30
+ get: function () { return chunkO3ZBMF6Z_cjs.PowerlinesAPIContext; }
31
31
  });
32
32
  Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
33
33
  enumerable: true,
34
- get: function () { return chunk6MX6ZNGS_cjs.PowerlinesEnvironmentContext; }
34
+ get: function () { return chunkJF4ZEC67_cjs.PowerlinesEnvironmentContext; }
35
35
  });
36
36
  Object.defineProperty(exports, "PowerlinesContext", {
37
37
  enumerable: true,
38
- get: function () { return chunkNMCDCHEL_cjs.PowerlinesContext; }
38
+ get: function () { return chunkHFM5IVGD_cjs.PowerlinesContext; }
39
39
  });
40
40
  Object.defineProperty(exports, "createPluginContext", {
41
41
  enumerable: true,
@@ -38,5 +38,5 @@ import '@stryke/types/array';
38
38
  import '../tsconfig-Bz-CiFqD.cjs';
39
39
  import '@stryke/types/tsconfig';
40
40
  import 'typescript';
41
- import '../internal-Dt8PM9M2.cjs';
41
+ import '../internal-CFBs3Fok.cjs';
42
42
  import 'flat-cache';
@@ -38,5 +38,5 @@ import '@stryke/types/array';
38
38
  import '../tsconfig-Bz-CiFqD.js';
39
39
  import '@stryke/types/tsconfig';
40
40
  import 'typescript';
41
- import '../internal-DyXNBori.js';
41
+ import '../internal-Dlj-vo3a.js';
42
42
  import 'flat-cache';
@@ -1,14 +1,14 @@
1
1
  import '../chunk-FJMP4CXA.js';
2
- export { PowerlinesAPIContext } from '../chunk-NMZHPWB6.js';
3
- export { PowerlinesEnvironmentContext } from '../chunk-EEF6LJVD.js';
2
+ export { PowerlinesAPIContext } from '../chunk-2JWZTFXS.js';
3
+ export { PowerlinesEnvironmentContext } from '../chunk-X6CZ2G2G.js';
4
4
  import '../chunk-254IMO3A.js';
5
- export { PowerlinesContext } from '../chunk-GF5FQKAI.js';
5
+ export { PowerlinesContext } from '../chunk-HX5UF7YV.js';
6
6
  import '../chunk-45D4XIOK.js';
7
7
  import '../chunk-ZLWW2MXD.js';
8
8
  import '../chunk-FPFPUYXS.js';
9
9
  import '../chunk-HGE5DAZF.js';
10
10
  export { createPluginContext } from '../chunk-7PD2L3PS.js';
11
- import '../chunk-NMHBDJX7.js';
11
+ import '../chunk-WQRK3BBU.js';
12
12
  import '../chunk-2LZ2KCSP.js';
13
13
  import '../chunk-I3GWGYDB.js';
14
14
  import '../chunk-QHKZQZJG.js';
@@ -17,7 +17,7 @@ import '../chunk-LGM65FVK.js';
17
17
  import '../chunk-BZ5L2CVR.js';
18
18
  import '../chunk-Q25ZPXA7.js';
19
19
  import '../chunk-F5GKG7AF.js';
20
- import '../chunk-KLU5DWCZ.js';
20
+ import '../chunk-N37JIOZ4.js';
21
21
  import '../chunk-FFATMOAQ.js';
22
22
  import '../chunk-7QVYU63E.js';
23
23
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { g as ResolvedConfig, h as Plugin, i as PluginContext } from '../config-D7uVz_j9.cjs';
2
- import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-Dt8PM9M2.cjs';
2
+ import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-CFBs3Fok.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import { g as ResolvedConfig, h as Plugin, i as PluginContext } from '../config-B7VlKFtE.js';
2
- import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-DyXNBori.js';
2
+ import { b as UNSAFE_EnvironmentContext, U as UNSAFE_PluginContext } from '../internal-Dlj-vo3a.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkFQZQA4EJ_cjs = require('./chunk-FQZQA4EJ.cjs');
3
+ var chunkY36HVRRL_cjs = require('./chunk-Y36HVRRL.cjs');
4
4
  require('./chunk-YF57WETC.cjs');
5
5
  require('./chunk-PK6SKIKE.cjs');
6
6
 
@@ -8,35 +8,43 @@ require('./chunk-PK6SKIKE.cjs');
8
8
 
9
9
  Object.defineProperty(exports, "getUniqueEntries", {
10
10
  enumerable: true,
11
- get: function () { return chunkFQZQA4EJ_cjs.getUniqueEntries; }
11
+ get: function () { return chunkY36HVRRL_cjs.getUniqueEntries; }
12
+ });
13
+ Object.defineProperty(exports, "isResolvedEntryTypeDefinition", {
14
+ enumerable: true,
15
+ get: function () { return chunkY36HVRRL_cjs.isResolvedEntryTypeDefinition; }
16
+ });
17
+ Object.defineProperty(exports, "isTypeDefinition", {
18
+ enumerable: true,
19
+ get: function () { return chunkY36HVRRL_cjs.isTypeDefinition; }
12
20
  });
13
21
  Object.defineProperty(exports, "resolveEntries", {
14
22
  enumerable: true,
15
- get: function () { return chunkFQZQA4EJ_cjs.resolveEntries; }
23
+ get: function () { return chunkY36HVRRL_cjs.resolveEntries; }
16
24
  });
17
25
  Object.defineProperty(exports, "resolveEntriesSync", {
18
26
  enumerable: true,
19
- get: function () { return chunkFQZQA4EJ_cjs.resolveEntriesSync; }
27
+ get: function () { return chunkY36HVRRL_cjs.resolveEntriesSync; }
20
28
  });
21
29
  Object.defineProperty(exports, "resolveEntry", {
22
30
  enumerable: true,
23
- get: function () { return chunkFQZQA4EJ_cjs.resolveEntry; }
31
+ get: function () { return chunkY36HVRRL_cjs.resolveEntry; }
24
32
  });
25
33
  Object.defineProperty(exports, "resolveEntryInput", {
26
34
  enumerable: true,
27
- get: function () { return chunkFQZQA4EJ_cjs.resolveEntryInput; }
35
+ get: function () { return chunkY36HVRRL_cjs.resolveEntryInput; }
28
36
  });
29
37
  Object.defineProperty(exports, "resolveEntryInputFile", {
30
38
  enumerable: true,
31
- get: function () { return chunkFQZQA4EJ_cjs.resolveEntryInputFile; }
39
+ get: function () { return chunkY36HVRRL_cjs.resolveEntryInputFile; }
32
40
  });
33
41
  Object.defineProperty(exports, "resolveEntryOutput", {
34
42
  enumerable: true,
35
- get: function () { return chunkFQZQA4EJ_cjs.resolveEntryOutput; }
43
+ get: function () { return chunkY36HVRRL_cjs.resolveEntryOutput; }
36
44
  });
37
45
  Object.defineProperty(exports, "resolveVirtualEntry", {
38
46
  enumerable: true,
39
- get: function () { return chunkFQZQA4EJ_cjs.resolveVirtualEntry; }
47
+ get: function () { return chunkY36HVRRL_cjs.resolveVirtualEntry; }
40
48
  });
41
49
  //# sourceMappingURL=entry.cjs.map
42
50
  //# sourceMappingURL=entry.cjs.map
@@ -47,6 +47,20 @@ declare function resolveEntry(context: Context, typeDefinition: TypeDefinition):
47
47
  * @returns A promise that resolves to an array of resolved entry type definitions.
48
48
  */
49
49
  declare function resolveEntries(context: Context, typeDefinitions: TypeDefinitionParameter[]): Promise<ResolvedEntryTypeDefinition[]>;
50
+ /**
51
+ * Checks if the provided entry is a type definition.
52
+ *
53
+ * @param entry - The entry to check.
54
+ * @returns True if the entry is a type definition, false otherwise.
55
+ */
56
+ declare function isTypeDefinition(entry: TypeDefinitionParameter): entry is TypeDefinition;
57
+ /**
58
+ * Checks if the provided entry is a resolved entry type definition.
59
+ *
60
+ * @param entry - The entry to check.
61
+ * @returns True if the entry is a resolved entry type definition, false otherwise.
62
+ */
63
+ declare function isResolvedEntryTypeDefinition(entry: TypeDefinitionParameter | ResolvedEntryTypeDefinition): entry is ResolvedEntryTypeDefinition;
50
64
  /**
51
65
  * Resolves multiple type definitions into their corresponding resolved entry type definitions.
52
66
  *
@@ -54,7 +68,7 @@ declare function resolveEntries(context: Context, typeDefinitions: TypeDefinitio
54
68
  * @param typeDefinitions - The type definitions to resolve.
55
69
  * @returns A promise that resolves to an array of resolved entry type definitions.
56
70
  */
57
- declare function resolveEntriesSync(context: Context, typeDefinitions: TypeDefinitionParameter[]): ResolvedEntryTypeDefinition[];
71
+ declare function resolveEntriesSync(context: Context, typeDefinitions: Array<TypeDefinitionParameter | ResolvedEntryTypeDefinition>): ResolvedEntryTypeDefinition[];
58
72
  /** Resolve a virtual entry point by generating a unique file path in the artifacts directory.
59
73
  *
60
74
  * @param context - The current context
@@ -70,4 +84,4 @@ declare function resolveVirtualEntry(context: Context, typeDefinition: TypeDefin
70
84
  */
71
85
  declare function getUniqueEntries(entries?: TypeDefinitionParameter | TypeDefinitionParameter[]): TypeDefinitionParameter[];
72
86
 
73
- export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry };
87
+ export { getUniqueEntries, isResolvedEntryTypeDefinition, isTypeDefinition, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry };