@powerlines/core 0.15.18 → 0.15.20

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 (171) hide show
  1. package/dist/constants/api.mjs.map +1 -1
  2. package/dist/constants/commands.mjs.map +1 -1
  3. package/dist/constants/extensions.mjs.map +1 -1
  4. package/dist/constants/fs.mjs.map +1 -1
  5. package/dist/constants/hooks.mjs.map +1 -1
  6. package/dist/constants/log-level.mjs.map +1 -1
  7. package/dist/constants/plugin.mjs.map +1 -1
  8. package/dist/context/base-context.cjs +2 -8
  9. package/dist/context/base-context.d.cts.map +1 -1
  10. package/dist/context/base-context.d.mts.map +1 -1
  11. package/dist/context/base-context.mjs +2 -8
  12. package/dist/context/base-context.mjs.map +1 -1
  13. package/dist/context/context.cjs +2 -1
  14. package/dist/context/context.d.cts.map +1 -1
  15. package/dist/context/context.d.mts.map +1 -1
  16. package/dist/context/context.mjs +2 -1
  17. package/dist/context/context.mjs.map +1 -1
  18. package/dist/context/environment-context.mjs.map +1 -1
  19. package/dist/context/execution-context.d.cts.map +1 -1
  20. package/dist/context/execution-context.d.mts.map +1 -1
  21. package/dist/context/execution-context.mjs.map +1 -1
  22. package/dist/context/plugin-context.mjs.map +1 -1
  23. package/dist/lib/config.d.cts.map +1 -1
  24. package/dist/lib/config.d.mts.map +1 -1
  25. package/dist/lib/config.mjs.map +1 -1
  26. package/dist/lib/context-helpers.d.cts +4 -7
  27. package/dist/lib/context-helpers.d.cts.map +1 -1
  28. package/dist/lib/context-helpers.d.mts +4 -7
  29. package/dist/lib/context-helpers.d.mts.map +1 -1
  30. package/dist/lib/context-helpers.mjs.map +1 -1
  31. package/dist/lib/entry.d.cts.map +1 -1
  32. package/dist/lib/entry.d.mts.map +1 -1
  33. package/dist/lib/entry.mjs.map +1 -1
  34. package/dist/lib/environment.mjs.map +1 -1
  35. package/dist/lib/events.mjs.map +1 -1
  36. package/dist/lib/generate-types.d.cts.map +1 -1
  37. package/dist/lib/generate-types.d.mts.map +1 -1
  38. package/dist/lib/generate-types.mjs.map +1 -1
  39. package/dist/lib/hooks.mjs.map +1 -1
  40. package/dist/lib/install-dependencies.mjs.map +1 -1
  41. package/dist/lib/meta.d.cts.map +1 -1
  42. package/dist/lib/meta.d.mts.map +1 -1
  43. package/dist/lib/meta.mjs.map +1 -1
  44. package/dist/lib/plugins.d.cts.map +1 -1
  45. package/dist/lib/plugins.d.mts.map +1 -1
  46. package/dist/lib/plugins.mjs.map +1 -1
  47. package/dist/lib/resolver.d.cts.map +1 -1
  48. package/dist/lib/resolver.d.mts.map +1 -1
  49. package/dist/lib/resolver.mjs.map +1 -1
  50. package/dist/lib/streaming-channel.d.cts.map +1 -1
  51. package/dist/lib/streaming-channel.d.mts.map +1 -1
  52. package/dist/lib/streaming-channel.mjs.map +1 -1
  53. package/dist/lib/typescript/ts-morph.mjs.map +1 -1
  54. package/dist/lib/typescript/tsconfig.d.cts.map +1 -1
  55. package/dist/lib/typescript/tsconfig.d.mts.map +1 -1
  56. package/dist/lib/typescript/tsconfig.mjs.map +1 -1
  57. package/dist/lib/unplugin/helpers.d.cts.map +1 -1
  58. package/dist/lib/unplugin/helpers.d.mts.map +1 -1
  59. package/dist/lib/unplugin/helpers.mjs.map +1 -1
  60. package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
  61. package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
  62. package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
  63. package/dist/lib/unplugin/plugin.d.cts.map +1 -1
  64. package/dist/lib/unplugin/plugin.d.mts.map +1 -1
  65. package/dist/lib/unplugin/plugin.mjs.map +1 -1
  66. package/dist/lib/utilities/file-header.d.cts.map +1 -1
  67. package/dist/lib/utilities/file-header.d.mts.map +1 -1
  68. package/dist/lib/utilities/file-header.mjs.map +1 -1
  69. package/dist/lib/utilities/format.d.cts.map +1 -1
  70. package/dist/lib/utilities/format.d.mts.map +1 -1
  71. package/dist/lib/utilities/format.mjs.map +1 -1
  72. package/dist/lib/utilities/source-file.d.cts.map +1 -1
  73. package/dist/lib/utilities/source-file.d.mts.map +1 -1
  74. package/dist/lib/utilities/source-file.mjs.map +1 -1
  75. package/dist/lib/utilities/source-map.d.cts.map +1 -1
  76. package/dist/lib/utilities/source-map.d.mts.map +1 -1
  77. package/dist/lib/utilities/source-map.mjs.map +1 -1
  78. package/dist/lib/utilities/write-file.mjs.map +1 -1
  79. package/dist/lib/vfs.d.cts.map +1 -1
  80. package/dist/lib/vfs.d.mts.map +1 -1
  81. package/dist/lib/vfs.mjs.map +1 -1
  82. package/dist/plugin-base.d.cts.map +1 -1
  83. package/dist/plugin-base.d.mts.map +1 -1
  84. package/dist/plugin-base.mjs.map +1 -1
  85. package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
  86. package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
  87. package/dist/plugin-utils/build-helpers.mjs.map +1 -1
  88. package/dist/plugin-utils/combine-plugins.d.cts +6 -7
  89. package/dist/plugin-utils/combine-plugins.d.cts.map +1 -1
  90. package/dist/plugin-utils/combine-plugins.d.mts +6 -7
  91. package/dist/plugin-utils/combine-plugins.d.mts.map +1 -1
  92. package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
  93. package/dist/plugin-utils/context-helpers.d.cts.map +1 -1
  94. package/dist/plugin-utils/context-helpers.d.mts.map +1 -1
  95. package/dist/plugin-utils/context-helpers.mjs.map +1 -1
  96. package/dist/plugin-utils/docs-helper.d.cts.map +1 -1
  97. package/dist/plugin-utils/docs-helper.d.mts.map +1 -1
  98. package/dist/plugin-utils/docs-helper.mjs.map +1 -1
  99. package/dist/plugin-utils/enable-plugin.mjs.map +1 -1
  100. package/dist/plugin-utils/extend.mjs.map +1 -1
  101. package/dist/plugin-utils/filter.d.cts.map +1 -1
  102. package/dist/plugin-utils/filter.d.mts.map +1 -1
  103. package/dist/plugin-utils/filter.mjs.map +1 -1
  104. package/dist/plugin-utils/format-package-json.mjs.map +1 -1
  105. package/dist/plugin-utils/format.d.cts.map +1 -1
  106. package/dist/plugin-utils/format.d.mts.map +1 -1
  107. package/dist/plugin-utils/format.mjs.map +1 -1
  108. package/dist/plugin-utils/get-config-path.d.cts.map +1 -1
  109. package/dist/plugin-utils/get-config-path.d.mts.map +1 -1
  110. package/dist/plugin-utils/get-config-path.mjs.map +1 -1
  111. package/dist/plugin-utils/helpers.d.cts +10 -13
  112. package/dist/plugin-utils/helpers.d.cts.map +1 -1
  113. package/dist/plugin-utils/helpers.d.mts +10 -13
  114. package/dist/plugin-utils/helpers.d.mts.map +1 -1
  115. package/dist/plugin-utils/helpers.mjs.map +1 -1
  116. package/dist/plugin-utils/install.d.cts.map +1 -1
  117. package/dist/plugin-utils/install.d.mts.map +1 -1
  118. package/dist/plugin-utils/install.mjs.map +1 -1
  119. package/dist/plugin-utils/logging.d.cts.map +1 -1
  120. package/dist/plugin-utils/logging.d.mts.map +1 -1
  121. package/dist/plugin-utils/logging.mjs.map +1 -1
  122. package/dist/plugin-utils/merge.d.cts.map +1 -1
  123. package/dist/plugin-utils/merge.d.mts.map +1 -1
  124. package/dist/plugin-utils/merge.mjs.map +1 -1
  125. package/dist/plugin-utils/modules.d.cts.map +1 -1
  126. package/dist/plugin-utils/modules.d.mts.map +1 -1
  127. package/dist/plugin-utils/modules.mjs.map +1 -1
  128. package/dist/plugin-utils/paths.cjs +1 -1
  129. package/dist/plugin-utils/paths.d.cts.map +1 -1
  130. package/dist/plugin-utils/paths.d.mts.map +1 -1
  131. package/dist/plugin-utils/paths.mjs +1 -1
  132. package/dist/plugin-utils/paths.mjs.map +1 -1
  133. package/dist/plugin-utils/virtual.d.cts.map +1 -1
  134. package/dist/plugin-utils/virtual.d.mts.map +1 -1
  135. package/dist/plugin-utils/virtual.mjs.map +1 -1
  136. package/dist/schemas/fs.d.cts.map +1 -1
  137. package/dist/schemas/fs.d.mts.map +1 -1
  138. package/dist/schemas/fs.mjs.map +1 -1
  139. package/dist/storage/base.cjs +1 -0
  140. package/dist/storage/base.d.cts.map +1 -1
  141. package/dist/storage/base.d.mts.map +1 -1
  142. package/dist/storage/base.mjs +1 -0
  143. package/dist/storage/base.mjs.map +1 -1
  144. package/dist/storage/file-system.d.cts.map +1 -1
  145. package/dist/storage/file-system.d.mts.map +1 -1
  146. package/dist/storage/file-system.mjs.map +1 -1
  147. package/dist/storage/helpers.d.cts.map +1 -1
  148. package/dist/storage/helpers.d.mts.map +1 -1
  149. package/dist/storage/helpers.mjs.map +1 -1
  150. package/dist/storage/virtual.d.cts.map +1 -1
  151. package/dist/storage/virtual.d.mts.map +1 -1
  152. package/dist/storage/virtual.mjs.map +1 -1
  153. package/dist/types/api.d.cts.map +1 -1
  154. package/dist/types/api.d.mts.map +1 -1
  155. package/dist/types/config.d.cts.map +1 -1
  156. package/dist/types/config.d.mts.map +1 -1
  157. package/dist/types/context.d.cts.map +1 -1
  158. package/dist/types/context.d.mts.map +1 -1
  159. package/dist/types/fs.d.cts.map +1 -1
  160. package/dist/types/fs.d.mts.map +1 -1
  161. package/dist/types/hooks.d.cts.map +1 -1
  162. package/dist/types/hooks.d.mts.map +1 -1
  163. package/dist/types/logging.d.cts.map +1 -1
  164. package/dist/types/logging.d.mts.map +1 -1
  165. package/dist/types/plugin.d.cts.map +1 -1
  166. package/dist/types/plugin.d.mts.map +1 -1
  167. package/dist/types/tsconfig.d.cts.map +1 -1
  168. package/dist/types/tsconfig.d.mts.map +1 -1
  169. package/dist/types/unplugin.d.cts.map +1 -1
  170. package/dist/types/unplugin.d.mts.map +1 -1
  171. package/package.json +5 -5
@@ -1 +1 @@
1
- {"version":3,"file":"api.mjs","names":[],"sources":["../../src/constants/api.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const BASE_EXECUTION_API_METHODS = [\n \"create\",\n \"clean\",\n \"prepare\",\n \"lint\",\n \"test\",\n \"build\",\n \"docs\",\n \"deploy\"\n] as const;\n\nexport const EXECUTION_API_METHODS = [\n \"types\",\n ...BASE_EXECUTION_API_METHODS\n] as const;\n"],"mappings":";AAkBA,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,wBAAwB,CACnC,SACA,GAAG,2BACJ"}
1
+ {"version":3,"file":"api.mjs","names":[],"sources":["../../src/constants/api.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const BASE_EXECUTION_API_METHODS = [\n \"create\",\n \"clean\",\n \"prepare\",\n \"lint\",\n \"test\",\n \"build\",\n \"docs\",\n \"deploy\"\n] as const;\n\nexport const EXECUTION_API_METHODS = [\n \"types\",\n ...BASE_EXECUTION_API_METHODS\n] as const;\n"],"mappings":";AAkBA,MAAa,6BAA6B;CACxC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,wBAAwB,CACnC,SACA,GAAG,0BACL"}
@@ -1 +1 @@
1
- {"version":3,"file":"commands.mjs","names":[],"sources":["../../src/constants/commands.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EXECUTION_API_METHODS } from \"./api\";\n\nexport const SUPPORTED_COMMANDS = [\n ...EXECUTION_API_METHODS,\n \"finalize\"\n] as readonly string[];\n"],"mappings":";;;AAoBA,MAAa,qBAAqB,CAChC,GAAG,uBACH,WACD"}
1
+ {"version":3,"file":"commands.mjs","names":[],"sources":["../../src/constants/commands.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EXECUTION_API_METHODS } from \"./api\";\n\nexport const SUPPORTED_COMMANDS = [\n ...EXECUTION_API_METHODS,\n \"finalize\"\n] as readonly string[];\n"],"mappings":";;;AAoBA,MAAa,qBAAqB,CAChC,GAAG,uBACH,UACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"extensions.mjs","names":[],"sources":["../../src/constants/extensions.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DEFAULT_EXTENSIONS = [\n \"js\",\n \"ts\",\n \"cjs\",\n \"cts\",\n \"mjs\",\n \"mts\",\n \"tsx\",\n \"jsx\",\n \"json\",\n \"json5\",\n \"jsonc\",\n \"md\",\n \"mdx\"\n];\n"],"mappings":";AAkBA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
1
+ {"version":3,"file":"extensions.mjs","names":[],"sources":["../../src/constants/extensions.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const DEFAULT_EXTENSIONS = [\n \"js\",\n \"ts\",\n \"cjs\",\n \"cts\",\n \"mjs\",\n \"mts\",\n \"tsx\",\n \"jsx\",\n \"json\",\n \"json5\",\n \"jsonc\",\n \"md\",\n \"mdx\"\n];\n"],"mappings":";AAkBA,MAAa,qBAAqB;CAChC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"fs.mjs","names":[],"sources":["../../src/constants/fs.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n// eslint-disable-next-line ts/naming-convention\nexport const __VFS_PATCH__ = \"__VFS_PATCH__\";\n\n// eslint-disable-next-line ts/naming-convention\nexport const __VFS_REVERT__ = \"__VFS_REVERT__\";\n\nexport const STORAGE_PRESETS = [\"fs\", \"virtual\"];\n"],"mappings":";AAmBA,MAAa,gBAAgB;AAG7B,MAAa,iBAAiB;AAE9B,MAAa,kBAAkB,CAAC,MAAM,UAAU"}
1
+ {"version":3,"file":"fs.mjs","names":[],"sources":["../../src/constants/fs.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\n// eslint-disable-next-line ts/naming-convention\nexport const __VFS_PATCH__ = \"__VFS_PATCH__\";\n\n// eslint-disable-next-line ts/naming-convention\nexport const __VFS_REVERT__ = \"__VFS_REVERT__\";\n\nexport const STORAGE_PRESETS = [\"fs\", \"virtual\"];\n"],"mappings":";AAmBA,MAAa,gBAAgB;AAG7B,MAAa,iBAAiB;AAE9B,MAAa,kBAAkB,CAAC,MAAM,SAAS"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.mjs","names":[],"sources":["../../src/constants/hooks.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const HOOKS_LIST_ORDERS = [\n \"preOrdered\",\n \"preEnforced\",\n \"normal\",\n \"postEnforced\",\n \"postOrdered\"\n] as const;\n"],"mappings":";AAkBA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;CACD"}
1
+ {"version":3,"file":"hooks.mjs","names":[],"sources":["../../src/constants/hooks.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const HOOKS_LIST_ORDERS = [\n \"preOrdered\",\n \"preEnforced\",\n \"normal\",\n \"postEnforced\",\n \"postOrdered\"\n] as const;\n"],"mappings":";AAkBA,MAAa,oBAAoB;CAC/B;CACA;CACA;CACA;CACA;AACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"log-level.mjs","names":[],"sources":["../../src/constants/log-level.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const LogLevels = {\n SILENT: \"silent\",\n ERROR: \"error\",\n WARN: \"warn\",\n INFO: \"info\",\n DEBUG: \"debug\",\n TRACE: \"trace\"\n} as const;\n\nexport const LOG_LEVELS = [\n LogLevels.SILENT,\n LogLevels.ERROR,\n LogLevels.WARN,\n LogLevels.INFO,\n LogLevels.DEBUG,\n LogLevels.TRACE\n] as const;\n\nexport const LogCategories = {\n GENERAL: \"general\",\n FS: \"fs\",\n PERFORMANCE: \"performance\",\n CONFIG: \"config\",\n PLUGINS: \"plugins\",\n HOOKS: \"hooks\",\n ENV: \"env\",\n RPC: \"rpc\",\n BABEL: \"babel\",\n COMMUNICATION: \"communication\"\n} as const;\n\nexport const LOG_CATEGORIES_ARRAY = Object.values(LogCategories);\n\nexport const LOG_CATEGORIES = [\n LogCategories.GENERAL,\n LogCategories.FS,\n LogCategories.PERFORMANCE,\n LogCategories.CONFIG,\n LogCategories.PLUGINS,\n LogCategories.HOOKS,\n LogCategories.ENV,\n LogCategories.RPC,\n LogCategories.COMMUNICATION,\n LogCategories.BABEL\n] as const;\n\nexport const DEFAULT_DEVELOPMENT_LOG_LEVEL = {\n general: \"debug\",\n fs: \"info\",\n config: \"warn\",\n plugins: \"debug\",\n hooks: \"debug\",\n performance: \"debug\",\n env: \"info\",\n rpc: \"info\",\n communication: \"debug\",\n babel: \"debug\"\n} as const;\n\nexport const DEFAULT_TEST_LOG_LEVEL = {\n general: \"info\",\n fs: \"warn\",\n config: \"warn\",\n plugins: \"warn\",\n hooks: \"warn\",\n performance: \"info\",\n env: \"warn\",\n rpc: \"warn\",\n communication: \"warn\",\n babel: \"warn\"\n} as const;\n\nexport const DEFAULT_PRODUCTION_LOG_LEVEL = {\n general: \"warn\",\n fs: \"error\",\n config: \"error\",\n plugins: \"warn\",\n hooks: \"warn\",\n performance: \"info\",\n env: \"error\",\n rpc: \"error\",\n communication: \"error\",\n babel: \"warn\"\n} as const;\n"],"mappings":";AAkBA,MAAa,YAAY;CACvB,QAAQ;CACR,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;CACR;AAED,MAAa,aAAa;CACxB,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACX;AAED,MAAa,gBAAgB;CAC3B,SAAS;CACT,IAAI;CACJ,aAAa;CACb,QAAQ;CACR,SAAS;CACT,OAAO;CACP,KAAK;CACL,KAAK;CACL,OAAO;CACP,eAAe;CAChB;AAED,MAAa,uBAAuB,OAAO,OAAO,cAAc;AAEhE,MAAa,iBAAiB;CAC5B,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACf;AAED,MAAa,gCAAgC;CAC3C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;CACR;AAED,MAAa,yBAAyB;CACpC,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;CACR;AAED,MAAa,+BAA+B;CAC1C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;CACR"}
1
+ {"version":3,"file":"log-level.mjs","names":[],"sources":["../../src/constants/log-level.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const LogLevels = {\n SILENT: \"silent\",\n ERROR: \"error\",\n WARN: \"warn\",\n INFO: \"info\",\n DEBUG: \"debug\",\n TRACE: \"trace\"\n} as const;\n\nexport const LOG_LEVELS = [\n LogLevels.SILENT,\n LogLevels.ERROR,\n LogLevels.WARN,\n LogLevels.INFO,\n LogLevels.DEBUG,\n LogLevels.TRACE\n] as const;\n\nexport const LogCategories = {\n GENERAL: \"general\",\n FS: \"fs\",\n PERFORMANCE: \"performance\",\n CONFIG: \"config\",\n PLUGINS: \"plugins\",\n HOOKS: \"hooks\",\n ENV: \"env\",\n RPC: \"rpc\",\n BABEL: \"babel\",\n COMMUNICATION: \"communication\"\n} as const;\n\nexport const LOG_CATEGORIES_ARRAY = Object.values(LogCategories);\n\nexport const LOG_CATEGORIES = [\n LogCategories.GENERAL,\n LogCategories.FS,\n LogCategories.PERFORMANCE,\n LogCategories.CONFIG,\n LogCategories.PLUGINS,\n LogCategories.HOOKS,\n LogCategories.ENV,\n LogCategories.RPC,\n LogCategories.COMMUNICATION,\n LogCategories.BABEL\n] as const;\n\nexport const DEFAULT_DEVELOPMENT_LOG_LEVEL = {\n general: \"debug\",\n fs: \"info\",\n config: \"warn\",\n plugins: \"debug\",\n hooks: \"debug\",\n performance: \"debug\",\n env: \"info\",\n rpc: \"info\",\n communication: \"debug\",\n babel: \"debug\"\n} as const;\n\nexport const DEFAULT_TEST_LOG_LEVEL = {\n general: \"info\",\n fs: \"warn\",\n config: \"warn\",\n plugins: \"warn\",\n hooks: \"warn\",\n performance: \"info\",\n env: \"warn\",\n rpc: \"warn\",\n communication: \"warn\",\n babel: \"warn\"\n} as const;\n\nexport const DEFAULT_PRODUCTION_LOG_LEVEL = {\n general: \"warn\",\n fs: \"error\",\n config: \"error\",\n plugins: \"warn\",\n hooks: \"warn\",\n performance: \"info\",\n env: \"error\",\n rpc: \"error\",\n communication: \"error\",\n babel: \"warn\"\n} as const;\n"],"mappings":";AAkBA,MAAa,YAAY;CACvB,QAAQ;CACR,OAAO;CACP,MAAM;CACN,MAAM;CACN,OAAO;CACP,OAAO;AACT;AAEA,MAAa,aAAa;CACxB,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;CACV,UAAU;AACZ;AAEA,MAAa,gBAAgB;CAC3B,SAAS;CACT,IAAI;CACJ,aAAa;CACb,QAAQ;CACR,SAAS;CACT,OAAO;CACP,KAAK;CACL,KAAK;CACL,OAAO;CACP,eAAe;AACjB;AAEA,MAAa,uBAAuB,OAAO,OAAO,aAAa;AAE/D,MAAa,iBAAiB;CAC5B,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;CACd,cAAc;AAChB;AAEA,MAAa,gCAAgC;CAC3C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT;AAEA,MAAa,yBAAyB;CACpC,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT;AAEA,MAAa,+BAA+B;CAC1C,SAAS;CACT,IAAI;CACJ,QAAQ;CACR,SAAS;CACT,OAAO;CACP,aAAa;CACb,KAAK;CACL,KAAK;CACL,eAAe;CACf,OAAO;AACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/constants/plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { SUPPORTED_COMMANDS } from \"./commands\";\n\nexport const UNPLUGIN_BUILDER_VARIANTS = [\n \"rollup\",\n \"webpack\",\n \"rspack\",\n \"vite\",\n \"esbuild\",\n \"farm\",\n \"unloader\",\n \"rolldown\",\n \"bun\"\n] as const;\n\nexport const BUILDER_VARIANTS = [\n ...UNPLUGIN_BUILDER_VARIANTS,\n \"tsup\",\n \"tsdown\",\n \"unbuild\"\n] as const;\n\nexport const PLUGIN_NON_HOOK_FIELDS = [\n \"name\",\n \"api\",\n \"enforce\",\n \"dedupe\",\n \"applyToEnvironment\"\n] as const;\n\nexport const PLUGIN_HOOKS_FIELDS = [\n ...SUPPORTED_COMMANDS,\n \"config\",\n \"configEnvironment\",\n \"configResolved\",\n \"types\",\n \"buildStart\",\n \"buildEnd\",\n \"transform\",\n \"load\",\n \"resolveId\",\n \"writeBundle\"\n] as const;\n\nexport const KNOWN_PLUGIN_FIELDS = [\n ...PLUGIN_NON_HOOK_FIELDS,\n ...PLUGIN_HOOKS_FIELDS,\n ...BUILDER_VARIANTS\n] as const;\n"],"mappings":";;;AAoBA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,mBAAmB;CAC9B,GAAG;CACH;CACA;CACA;CACD;AAED,MAAa,yBAAyB;CACpC;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,sBAAsB;CACjC,GAAG;CACH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD;AAED,MAAa,sBAAsB;CACjC,GAAG;CACH,GAAG;CACH,GAAG;CACJ"}
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/constants/plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { SUPPORTED_COMMANDS } from \"./commands\";\n\nexport const UNPLUGIN_BUILDER_VARIANTS = [\n \"rollup\",\n \"webpack\",\n \"rspack\",\n \"vite\",\n \"esbuild\",\n \"farm\",\n \"unloader\",\n \"rolldown\",\n \"bun\"\n] as const;\n\nexport const BUILDER_VARIANTS = [\n ...UNPLUGIN_BUILDER_VARIANTS,\n \"tsup\",\n \"tsdown\",\n \"unbuild\"\n] as const;\n\nexport const PLUGIN_NON_HOOK_FIELDS = [\n \"name\",\n \"api\",\n \"enforce\",\n \"dedupe\",\n \"applyToEnvironment\"\n] as const;\n\nexport const PLUGIN_HOOKS_FIELDS = [\n ...SUPPORTED_COMMANDS,\n \"config\",\n \"configEnvironment\",\n \"configResolved\",\n \"types\",\n \"buildStart\",\n \"buildEnd\",\n \"transform\",\n \"load\",\n \"resolveId\",\n \"writeBundle\"\n] as const;\n\nexport const KNOWN_PLUGIN_FIELDS = [\n ...PLUGIN_NON_HOOK_FIELDS,\n ...PLUGIN_HOOKS_FIELDS,\n ...BUILDER_VARIANTS\n] as const;\n"],"mappings":";;;AAoBA,MAAa,4BAA4B;CACvC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,mBAAmB;CAC9B,GAAG;CACH;CACA;CACA;AACF;AAEA,MAAa,yBAAyB;CACpC;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,sBAAsB;CACjC,GAAG;CACH;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,sBAAsB;CACjC,GAAG;CACH,GAAG;CACH,GAAG;AACL"}
@@ -3,11 +3,11 @@ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
3
  const require_plugin_utils_logging = require('../plugin-utils/logging.cjs');
4
4
  let chalk = require("chalk");
5
5
  chalk = require_runtime.__toESM(chalk, 1);
6
- let _stryke_fs_resolve = require("@stryke/fs/resolve");
7
6
  let date_fns_formatDistanceToNowStrict = require("date-fns/formatDistanceToNowStrict");
8
7
 
9
8
  //#region src/context/base-context.ts
10
9
  var PowerlinesBaseContext = class {
10
+ options;
11
11
  #timestamp = Date.now();
12
12
  powerlinesPath;
13
13
  system;
@@ -114,13 +114,7 @@ var PowerlinesBaseContext = class {
114
114
  /**
115
115
  * Initialize the context with the provided configuration options
116
116
  */
117
- async init() {
118
- if (!this.powerlinesPath) {
119
- const powerlinesPath = await (0, _stryke_fs_resolve.resolvePackage)("powerlines");
120
- if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
121
- this.powerlinesPath = powerlinesPath;
122
- }
123
- }
117
+ async init() {}
124
118
  };
125
119
 
126
120
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"base-context.d.cts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;uBA2BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,CAAA,GAAY,QAAA;EAAA,IAErB,MAAA,CAAA,GAAU,MAAA;EAAA,IAIV,GAAA,CAAA;EAAA,IAIA,SAAA,CAAA;EARU;;;;;EAAA,UAiBZ,WAAA,CAAoB,OAAA,EAAS,OAAA;EAAA,SAEtB,YAAA,CAAa,OAAA,GAAU,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EAE/D,YAAA,CAAa,OAAA,EAAS,a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EhC,KAAA,CAAM,OAAA,WAAkB,UAAA;EAtEF;;;;;;;;;;;;;EAuFtB,KAAA,CAAM,IAAA;EAnCN;;;EAAA,UAyDS,IAAA,CAAA,GAAI,OAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"base-context.d.mts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;uBA2BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,CAAA,GAAY,QAAA;EAAA,IAErB,MAAA,CAAA,GAAU,MAAA;EAAA,IAIV,GAAA,CAAA;EAAA,IAIA,SAAA,CAAA;EARU;;;;;EAAA,UAiBZ,WAAA,CAAoB,OAAA,EAAS,OAAA;EAAA,SAEtB,YAAA,CAAa,OAAA,GAAU,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EAE/D,YAAA,CAAa,OAAA,EAAS,aAAA,GAAa,MAAA;EASE;;;;;EAArC,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EA6Db;;;;;EA5CxB,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EAxDjC;;;;;EAyEJ,IAAA,CAAK,OAAA,WAAkB,UAAA;EApEvB;;;;;EA6EA,IAAA,CAAK,OAAA,WAAkB,UAAA;EArEnB;;;;;EA8EJ,KAAA,CAAM,OAAA,WAAkB,UAAA;EA/DQ;;;;;EAwEhC,KAAA,CAAM,OAAA,WAAkB,UAAA;EAtEF;;;;;;;;;;;;;EAuFtB,KAAA,CAAM,IAAA;EAnCN;;;EAAA,UAyDS,IAAA,CAAA,GAAI,OAAA;AAAA"}
1
+ {"version":3,"file":"base-context.d.mts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;uBA0BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,CAAA,GAAY,QAAA;EAAA,IAErB,MAAA,CAAA,GAAU,MAAA;EAAA,IAIV,GAAA,CAAA;EAAA,IAIA,SAAA,CAAA;EARU;;;;;EAAA,UAiBZ,WAAA,CAAoB,OAAA,EAAS,OAAA;EAAA,SAEtB,YAAA,CAAa,OAAA,GAAU,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EAE/D,YAAA,CAAa,OAAA,EAAS,aAAA,GAAa,MAAA;EASE;;;;;EAArC,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EA6Db;;;;;EA5CxB,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EAxDjC;;;;;EAyEJ,IAAA,CAAK,OAAA,WAAkB,UAAA;EApEvB;;;;;EA6EA,IAAA,CAAK,OAAA,WAAkB,UAAA;EArEnB;;;;;EA8EJ,KAAA,CAAM,OAAA,WAAkB,UAAA;EA/DQ;;;;;EAwEhC,KAAA,CAAM,OAAA,WAAkB,UAAA;EAtEF;;;;;;;;;;;;;EAuFtB,KAAA,CAAM,IAAA;EAnCN;;;EAAA,UAyDS,IAAA,CAAA,GAAI,OAAA;AAAA"}
@@ -1,10 +1,10 @@
1
1
  import { extendLogger } from "../plugin-utils/logging.mjs";
2
2
  import chalk from "chalk";
3
- import { resolvePackage } from "@stryke/fs/resolve";
4
3
  import { formatDistanceToNowStrict } from "date-fns/formatDistanceToNowStrict";
5
4
 
6
5
  //#region src/context/base-context.ts
7
6
  var PowerlinesBaseContext = class {
7
+ options;
8
8
  #timestamp = Date.now();
9
9
  powerlinesPath;
10
10
  system;
@@ -111,13 +111,7 @@ var PowerlinesBaseContext = class {
111
111
  /**
112
112
  * Initialize the context with the provided configuration options
113
113
  */
114
- async init() {
115
- if (!this.powerlinesPath) {
116
- const powerlinesPath = await resolvePackage("powerlines");
117
- if (!powerlinesPath) throw new Error("Could not resolve `powerlines` package location.");
118
- this.powerlinesPath = powerlinesPath;
119
- }
120
- }
114
+ async init() {}
121
115
  };
122
116
 
123
117
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"base-context.mjs","names":["#timestamp"],"sources":["../../src/context/base-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EnvPaths } from \"@stryke/env/get-env-paths\";\nimport { resolvePackage } from \"@stryke/fs/resolve\";\nimport chalk from \"chalk\";\nimport { formatDistanceToNowStrict } from \"date-fns/formatDistanceToNowStrict\";\nimport { extendLogger } from \"../plugin-utils/logging\";\nimport { Options } from \"../types/config\";\nimport { BaseContext } from \"../types/context\";\nimport { LogFn, Logger, LoggerOptions, LogMessage } from \"../types/logging\";\n\nexport abstract class PowerlinesBaseContext<\n TSystemContext = unknown\n> implements BaseContext<TSystemContext> {\n #timestamp: number = Date.now();\n\n public powerlinesPath!: string;\n\n public system!: TSystemContext;\n\n public abstract get envPaths(): EnvPaths;\n\n public get logger(): Logger {\n return this.createLogger();\n }\n\n public get cwd(): string {\n return this.options.cwd || process.cwd();\n }\n\n public get timestamp(): number {\n return this.#timestamp;\n }\n\n /**\n * Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.\n *\n * @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.\n */\n protected constructor(public options: Options) {}\n\n public abstract createLogger(options?: LoggerOptions, logFn?: LogFn): Logger;\n\n public extendLogger(options: LoggerOptions) {\n return extendLogger(this.logger, options);\n }\n\n /**\n * A logging function for fatal messages\n *\n * @param message - The message to log.\n */\n public fatal(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for error messages\n *\n * @param message - The message to log.\n */\n public error(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for warning messages\n *\n * @param message - The message to log.\n */\n public warn(message: string | LogMessage) {\n this.logger.warn(message);\n }\n\n /**\n * A logging function for informational messages\n *\n * @param message - The message to log.\n */\n public info(message: string | LogMessage) {\n this.logger.info(message);\n }\n\n /**\n * A logging function for debug messages\n *\n * @param message - The message to log.\n */\n public debug(message: string | LogMessage) {\n this.logger.debug(message);\n }\n\n /**\n * A logging function for trace messages\n *\n * @param message - The message to log.\n */\n public trace(message: string | LogMessage) {\n this.logger.trace(message);\n }\n\n /**\n * A function to create a timer for measuring the duration of asynchronous operations\n *\n * @example\n * ```ts\n * const stopTimer = context.timer(\"Your Async Operation\");\n * await performAsyncOperation();\n * stopTimer(); // \"Your Async Operation completed in 123.45 milliseconds\"\n * ```\n *\n * @param name - The name of the timer.\n * @returns A function that, when called, stops the timer and logs the duration.\n */\n public timer(name: string): () => void {\n const startDate = Date.now();\n const startDuration = performance.now();\n\n return () => {\n const duration = performance.now() - startDuration;\n this.logger.info({\n meta: {\n category: \"performance\"\n },\n message: `${chalk.bold.cyanBright(name)} completed in ${chalk.bold.cyanBright(\n duration < 1000\n ? `${duration.toFixed(2)} milliseconds`\n : formatDistanceToNowStrict(startDate)\n )}`\n });\n };\n }\n\n /**\n * Initialize the context with the provided configuration options\n */\n protected async init() {\n if (!this.powerlinesPath) {\n const powerlinesPath = await resolvePackage(\"powerlines\");\n if (!powerlinesPath) {\n throw new Error(\"Could not resolve `powerlines` package location.\");\n }\n this.powerlinesPath = power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ACvB,0BAA0B,UAAU,CACzC;IACF,CAAC;;;;;;CAON,MAAgB,OAAO;AACrB,MAAI,CAAC,KAAK,gBAAgB;GACxB,MAAM,iBAAiB,MAAM,eAAe,aAAa;AACzD,OAAI,CAAC,eACH,OAAM,IAAI,MAAM,mDAAmD;AAErE,QAAK,iBAAiB"}
1
+ {"version":3,"file":"base-context.mjs","names":["#timestamp"],"sources":["../../src/context/base-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EnvPaths } from \"@stryke/env/get-env-paths\";\nimport chalk from \"chalk\";\nimport { formatDistanceToNowStrict } from \"date-fns/formatDistanceToNowStrict\";\nimport { extendLogger } from \"../plugin-utils/logging\";\nimport { Options } from \"../types/config\";\nimport { BaseContext } from \"../types/context\";\nimport { LogFn, Logger, LoggerOptions, LogMessage } from \"../types/logging\";\n\nexport abstract class PowerlinesBaseContext<\n TSystemContext = unknown\n> implements BaseContext<TSystemContext> {\n #timestamp: number = Date.now();\n\n public powerlinesPath!: string;\n\n public system!: TSystemContext;\n\n public abstract get envPaths(): EnvPaths;\n\n public get logger(): Logger {\n return this.createLogger();\n }\n\n public get cwd(): string {\n return this.options.cwd || process.cwd();\n }\n\n public get timestamp(): number {\n return this.#timestamp;\n }\n\n /**\n * Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.\n *\n * @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.\n */\n protected constructor(public options: Options) {}\n\n public abstract createLogger(options?: LoggerOptions, logFn?: LogFn): Logger;\n\n public extendLogger(options: LoggerOptions) {\n return extendLogger(this.logger, options);\n }\n\n /**\n * A logging function for fatal messages\n *\n * @param message - The message to log.\n */\n public fatal(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for error messages\n *\n * @param message - The message to log.\n */\n public error(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for warning messages\n *\n * @param message - The message to log.\n */\n public warn(message: string | LogMessage) {\n this.logger.warn(message);\n }\n\n /**\n * A logging function for informational messages\n *\n * @param message - The message to log.\n */\n public info(message: string | LogMessage) {\n this.logger.info(message);\n }\n\n /**\n * A logging function for debug messages\n *\n * @param message - The message to log.\n */\n public debug(message: string | LogMessage) {\n this.logger.debug(message);\n }\n\n /**\n * A logging function for trace messages\n *\n * @param message - The message to log.\n */\n public trace(message: string | LogMessage) {\n this.logger.trace(message);\n }\n\n /**\n * A function to create a timer for measuring the duration of asynchronous operations\n *\n * @example\n * ```ts\n * const stopTimer = context.timer(\"Your Async Operation\");\n * await performAsyncOperation();\n * stopTimer(); // \"Your Async Operation completed in 123.45 milliseconds\"\n * ```\n *\n * @param name - The name of the timer.\n * @returns A function that, when called, stops the timer and logs the duration.\n */\n public timer(name: string): () => void {\n const startDate = Date.now();\n const startDuration = performance.now();\n\n return () => {\n const duration = performance.now() - startDuration;\n this.logger.info({\n meta: {\n category: \"performance\"\n },\n message: `${chalk.bold.cyanBright(name)} completed in ${chalk.bold.cyanBright(\n duration < 1000\n ? `${duration.toFixed(2)} milliseconds`\n : formatDistanceToNowStrict(startDate)\n )}`\n });\n };\n }\n\n /**\n * Initialize the context with the provided configuration options\n */\n protected async init() {\n // if (!this.powerlinesPath) {\n // const powerlinesPath = await resolvePackage(\"powerlines\");\n // if (!powerlinesPath) {\n // throw new Error(\"Could not resolve `powerlines` package location.\");\n // }\n // this.powerlinesPath = powerlinesPath;\n // }\n }\n}\n"],"mappings":";;;;;AA0BA,IAAsB,wBAAtB,MAEyC;CA0BV;CAzB7B,aAAqB,KAAK,IAAI;CAE9B,AAAO;CAEP,AAAO;CAIP,IAAW,SAAiB;EAC1B,OAAO,KAAK,aAAa;CAC3B;CAEA,IAAW,MAAc;EACvB,OAAO,KAAK,QAAQ,OAAO,QAAQ,IAAI;CACzC;CAEA,IAAW,YAAoB;EAC7B,OAAO,KAAKA;CACd;;;;;;CAOA,AAAU,YAAY,AAAO,SAAkB;EAAlB;CAAmB;CAIhD,AAAO,aAAa,SAAwB;EAC1C,OAAO,aAAa,KAAK,QAAQ,OAAO;CAC1C;;;;;;CAOA,AAAO,MAAM,SAAsC;EACjD,KAAK,OAAO,MACV,mBAAmB,QACf;GACE,MAAM,CAAC;GACP,SAAS,QAAQ;GACjB,OAAO;EACT,IACA,OACN;CACF;;;;;;CAOA,AAAO,MAAM,SAAsC;EACjD,KAAK,OAAO,MACV,mBAAmB,QACf;GACE,MAAM,CAAC;GACP,SAAS,QAAQ;GACjB,OAAO;EACT,IACA,OACN;CACF;;;;;;CAOA,AAAO,KAAK,SAA8B;EACxC,KAAK,OAAO,KAAK,OAAO;CAC1B;;;;;;CAOA,AAAO,KAAK,SAA8B;EACxC,KAAK,OAAO,KAAK,OAAO;CAC1B;;;;;;CAOA,AAAO,MAAM,SAA8B;EACzC,KAAK,OAAO,MAAM,OAAO;CAC3B;;;;;;CAOA,AAAO,MAAM,SAA8B;EACzC,KAAK,OAAO,MAAM,OAAO;CAC3B;;;;;;;;;;;;;;CAeA,AAAO,MAAM,MAA0B;EACrC,MAAM,YAAY,KAAK,IAAI;EAC3B,MAAM,gBAAgB,YAAY,IAAI;EAEtC,aAAa;GACX,MAAM,WAAW,YAAY,IAAI,IAAI;GACrC,KAAK,OAAO,KAAK;IACf,MAAM,EACJ,UAAU,cACZ;IACA,SAAS,GAAG,MAAM,KAAK,WAAW,IAAI,EAAE,gBAAgB,MAAM,KAAK,WACjE,WAAW,MACP,GAAG,SAAS,QAAQ,CAAC,EAAE,iBACvB,0BAA0B,SAAS,CACzC;GACF,CAAC;EACH;CACF;;;;CAKA,MAAgB,OAAO,CAQvB;AACF"}
@@ -64,6 +64,7 @@ const UNRESOLVED_CONFIG_NAMES = [
64
64
  "environmentConfig"
65
65
  ];
66
66
  var PowerlinesContext = class extends require_context_base_context.PowerlinesBaseContext {
67
+ options;
67
68
  #checksum = null;
68
69
  #buildId = (0, _stryke_unique_id_uuid.uuid)();
69
70
  #releaseId = (0, _stryke_unique_id_uuid.uuid)();
@@ -838,7 +839,7 @@ var PowerlinesContext = class extends require_context_base_context.PowerlinesBas
838
839
  return {
839
840
  glob: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) ? asset.glob : asset,
840
841
  input: (0, _stryke_type_checks_is_string.isString)(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? mergedConfig.cwd : (0, _stryke_path_is_parent_path.isParentPath)(asset.input, mergedConfig.cwd) || (0, _stryke_path_is_equal.isEqual)(asset.input, mergedConfig.cwd) ? asset.input : (0, _stryke_path_append.appendPath)(asset.input, mergedConfig.cwd),
841
- output: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) && asset.output ? (0, _stryke_path_is_parent_path.isParentPath)(asset.output, mergedConfig.cwd) ? asset.output : (0, _stryke_path_append.appendPath)((0, _stryke_path_join.joinPaths)(mergedConfig.output.copy.path, (0, _stryke_path_replace.replacePath)((0, _stryke_path_replace.replacePath)(asset.output, (0, _stryke_path_replace.replacePath)(mergedConfig.output.copy.path, mergedConfig.cwd)), mergedConfig.output.copy.path)), mergedConfig.cwd) : (0, _stryke_path_append.appendPath)(mergedConfig.output.copy.path, mergedConfig.cwd),
842
+ output: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) && (0, _stryke_type_checks_is_set_string.isSetString)(asset.output) ? (0, _stryke_path_is_parent_path.isParentPath)(asset.output, mergedConfig.cwd) ? asset.output : (0, _stryke_path_append.appendPath)((0, _stryke_path_join.joinPaths)(mergedConfig.output.copy.path, (0, _stryke_path_replace.replacePath)((0, _stryke_path_replace.replacePath)(asset.output, (0, _stryke_path_replace.replacePath)(mergedConfig.output.copy.path, mergedConfig.cwd)), mergedConfig.output.copy.path)), mergedConfig.cwd) : (0, _stryke_path_append.appendPath)(mergedConfig.output.copy.path, mergedConfig.cwd),
842
843
  ignore: (0, _stryke_type_checks_is_set_object.isSetObject)(asset) && asset.ignore ? (0, _stryke_convert_to_array.toArray)(asset.ignore) : void 0
843
844
  };
844
845
  }), (a) => `${a.input}-${a.glob}-${a.output}`);
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.cts","names":[],"sources":["../../src/context/context.ts"],"mappings":";;;;;;;;;;;;;;;cA8Ja,iBAAA,yBACa,cAAA,GAAiB,cAAA,oCAGjC,qBAAA,CAAsB,cAAA,aACnB,OAAA,CAAQ,eAAA,EAAiB,cAAA;EAAA;EA+cE,OAAA,EAAS,gBAAA;EA7bxC,QAAA,EAAW,QAAA;EAvBU;;;EA4BrB,WAAA,EAAc,WAAA;EAvBF;;;EA4BZ,WAAA,EAAa,MAAA;EALC;;;EAUd,UAAA,EAAa,gBAAA;EAKC;;;EAAd,YAAA,EAAc,MAAA,kBAAwB,KAAA;EAerB;;;EAVjB,eAAA,EAAiB,MAAA,kBAAwB,KAAA;EA0BxB;;;EArBjB,aAAA,EAAe,QAAA;EA6DC;;;EAxDhB,eAAA,EAAiB,MAAA;EAyGb;;;EAAA,UApGD,cAAA,EAAgB,eAAA;EAuGf;;;EAAA,UAlGD,gBAAA,EAAkB,sBAAA,CAAuB,eAAA;EAmGhD;;;EAAA,UA7FO,YAAA,EAAc,eAAA;EAqQJ;;;EAAA,UA/PV,UAAA,EAAY,eAAA;EAwTO;;;EAAA,UAlTnB,YAAA,EAAc,eAAA;EAkYc;;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AAQ,aAAA;EAmKT;;;;;;;;;;;;;;EAxCW,IAAA,CAAK,EAAA,WAAa,OAAA,CAAQ,eAAA;EAoJrC;;;EAnIW,WAAA,CAAA,GAAW,OAAA,CAAA,WAAA;EAmKtB;;;;;;;EA/IW,IAAA,CACX,IAAA,UACA,IAAA,UACA,OAAA,GAAS,WAAA,GACR,OAAA;EAyKuD;;;;;;;EArInD,QAAA,CAAS,IAAA,UAAc,IAAA,UAAc,OAAA,GAAS,WAAA;EA+L9C;;;;;;;EA3JM,SAAA,CACX,IAAA,UACA,IAAA,UACA,OAAA,GAAS,gBAAA,GACR,OAAA;EAiMU;;;;;;;EApKN,aAAA,CACL,IAAA,UACA,IAAA,UACA,OAAA,GAAS,gBAAA;EA0OD;;;;;;;EA5MG,WAAA,CACX,IAAA,UACA,EAAA,UACA,OAAA,GAAS,WAAA,GACR,OAAA;EAmlBK;;AAAiB;;;;;EAxjBlB,eAAA,CAAgB,IAAA,UAAc,EAAA,UAAY,OAAA,GAAS,WAAA;;;;;;;;EA2B7C,kBAAA,CACX,IAAA,UACA,EAAA,UACA,OAAA,GAAS,WAAA,GACR,OAAA;;;;;;;;EA2BI,sBAAA,CACL,IAAA,UACA,EAAA,UACA,OAAA,GAAS,WAAA;;;;;;;EA2BE,gBAAA,CAAiB,IAAA,YAAgB,OAAA;;;;;;;EAYjC,eAAA,CACX,MAAA,EAAQ,eAAA,mBACP,OAAA;;;;;;;EAsDU,eAAA,CACX,MAAA,EAAQ,eAAA,mBACP,OAAA;;;;;;YAeO,WAAA,CAAA,GAAe,eAAA;;;;;;;YA4BT,aAAA,CACd,MAAA,EAAQ,eAAA,iBACP,OAAA;;;;YAaa,aAAA,CAAA,GAAiB,OAAA;EAAA,QAgWzB,iBAAA;AAAA"}
@@ -61,6 +61,7 @@ const UNRESOLVED_CONFIG_NAMES = [
61
61
  "environmentConfig"
62
62
  ];
63
63
  var PowerlinesContext = class extends PowerlinesBaseContext {
64
+ options;
64
65
  #checksum = null;
65
66
  #buildId = uuid();
66
67
  #releaseId = uuid();
@@ -835,7 +836,7 @@ var PowerlinesContext = class extends PowerlinesBaseContext {
835
836
  return {
836
837
  glob: isSetObject(asset) ? asset.glob : asset,
837
838
  input: isString(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? mergedConfig.cwd : isParentPath(asset.input, mergedConfig.cwd) || isEqual(asset.input, mergedConfig.cwd) ? asset.input : appendPath(asset.input, mergedConfig.cwd),
838
- output: isSetObject(asset) && asset.output ? isParentPath(asset.output, mergedConfig.cwd) ? asset.output : appendPath(joinPaths(mergedConfig.output.copy.path, replacePath(replacePath(asset.output, replacePath(mergedConfig.output.copy.path, mergedConfig.cwd)), mergedConfig.output.copy.path)), mergedConfig.cwd) : appendPath(mergedConfig.output.copy.path, mergedConfig.cwd),
839
+ output: isSetObject(asset) && isSetString(asset.output) ? isParentPath(asset.output, mergedConfig.cwd) ? asset.output : appendPath(joinPaths(mergedConfig.output.copy.path, replacePath(replacePath(asset.output, replacePath(mergedConfig.output.copy.path, mergedConfig.cwd)), mergedConfig.output.copy.path)), mergedConfig.cwd) : appendPath(mergedConfig.output.copy.path, mergedConfig.cwd),
839
840
  ignore: isSetObject(asset) && asset.ignore ? toArray(asset.ignore) : void 0
840
841
  };
841
842
  }), (a) => `${a.input}-${a.glob}-${a.output}`);