powerlines 0.37.21 → 0.37.22

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 (111) hide show
  1. package/dist/api.cjs +2 -2
  2. package/dist/api.js +1 -1
  3. package/dist/astro.cjs +4 -4
  4. package/dist/astro.js +3 -3
  5. package/dist/{chunk-STSTFZT2.js → chunk-2GYKL7MR.js} +31 -26
  6. package/dist/{chunk-AQG66EUK.js → chunk-3CM5DSDF.js} +3 -3
  7. package/dist/{chunk-OZZ65IVY.cjs → chunk-DJLMDKJL.cjs} +4 -4
  8. package/dist/{chunk-GUFYA64E.js → chunk-ED76WMZE.js} +3 -3
  9. package/dist/chunk-HG62S3DW.cjs +12 -0
  10. package/dist/{chunk-J7FOWGCH.cjs → chunk-LBPHFO4S.cjs} +31 -26
  11. package/dist/chunk-N3XGIGAC.cjs +12 -0
  12. package/dist/{chunk-LQZK77AH.cjs → chunk-P54ICZRA.cjs} +5 -5
  13. package/dist/{chunk-7Q4TUBXJ.js → chunk-QP6ZNNHB.js} +3 -3
  14. package/dist/{chunk-QVZ32P2J.js → chunk-TKMRSLBB.js} +3 -3
  15. package/dist/{chunk-KRQKJHEH.cjs → chunk-UQYTU5IK.cjs} +4 -4
  16. package/dist/{chunk-Y6A4FTVN.js → chunk-VUNH6T4K.js} +3 -3
  17. package/dist/esbuild.cjs +6 -6
  18. package/dist/esbuild.js +3 -3
  19. package/dist/farm.cjs +3 -3
  20. package/dist/farm.js +2 -2
  21. package/dist/index.cjs +10 -10
  22. package/dist/index.js +2 -2
  23. package/dist/lib/build/index.d.cts +1 -1
  24. package/dist/lib/build/index.d.ts +1 -1
  25. package/dist/lib/build/unbuild.d.cts +1 -1
  26. package/dist/lib/build/unbuild.d.ts +1 -1
  27. package/dist/lib/{chunk-C6CJM3EI.cjs → chunk-2SUWZWN4.cjs} +8 -4
  28. package/dist/lib/chunk-2SUWZWN4.cjs.map +1 -0
  29. package/dist/lib/{chunk-SVAHW2JC.cjs → chunk-FJ2KUDL6.cjs} +18 -17
  30. package/dist/lib/chunk-FJ2KUDL6.cjs.map +1 -0
  31. package/dist/lib/{chunk-GIYLCTW5.cjs → chunk-HATBUK22.cjs} +6 -6
  32. package/dist/lib/{chunk-GIYLCTW5.cjs.map → chunk-HATBUK22.cjs.map} +1 -1
  33. package/dist/lib/{chunk-LD73LMAE.js → chunk-HRRIUJJN.js} +24 -24
  34. package/dist/lib/chunk-HRRIUJJN.js.map +1 -0
  35. package/dist/lib/{chunk-MOCQ266V.cjs → chunk-IHQM73EH.cjs} +26 -26
  36. package/dist/lib/chunk-IHQM73EH.cjs.map +1 -0
  37. package/dist/lib/{chunk-ZH6OZFGY.js → chunk-MHID6LCS.js} +6 -5
  38. package/dist/lib/chunk-MHID6LCS.js.map +1 -0
  39. package/dist/lib/{chunk-LMXKPOEX.cjs → chunk-ML4OSKGQ.cjs} +19 -19
  40. package/dist/lib/{chunk-LMXKPOEX.cjs.map → chunk-ML4OSKGQ.cjs.map} +1 -1
  41. package/dist/lib/{chunk-2L77PLFS.js → chunk-NLUGEM63.js} +3 -3
  42. package/dist/lib/{chunk-2L77PLFS.js.map → chunk-NLUGEM63.js.map} +1 -1
  43. package/dist/lib/{chunk-4JLVGWHR.js → chunk-OGSYFDDP.js} +4 -4
  44. package/dist/lib/{chunk-4JLVGWHR.js.map → chunk-OGSYFDDP.js.map} +1 -1
  45. package/dist/lib/{chunk-ZTBWCQH5.js → chunk-VP4LPCL2.js} +8 -4
  46. package/dist/lib/chunk-VP4LPCL2.js.map +1 -0
  47. package/dist/lib/contexts/api-context.cjs +5 -5
  48. package/dist/lib/contexts/api-context.d.cts +1 -1
  49. package/dist/lib/contexts/api-context.d.ts +1 -1
  50. package/dist/lib/contexts/api-context.js +4 -4
  51. package/dist/lib/contexts/context.cjs +3 -3
  52. package/dist/lib/contexts/context.d.cts +1 -5
  53. package/dist/lib/contexts/context.d.ts +1 -5
  54. package/dist/lib/contexts/context.js +2 -2
  55. package/dist/lib/contexts/environment-context.cjs +4 -4
  56. package/dist/lib/contexts/environment-context.d.cts +1 -1
  57. package/dist/lib/contexts/environment-context.d.ts +1 -1
  58. package/dist/lib/contexts/environment-context.js +3 -3
  59. package/dist/lib/contexts/index.cjs +7 -7
  60. package/dist/lib/contexts/index.d.cts +1 -1
  61. package/dist/lib/contexts/index.d.ts +1 -1
  62. package/dist/lib/contexts/index.js +4 -4
  63. package/dist/lib/contexts/plugin-context.d.cts +1 -1
  64. package/dist/lib/contexts/plugin-context.d.ts +1 -1
  65. package/dist/lib/fs/index.cjs +2 -2
  66. package/dist/lib/fs/index.js +1 -1
  67. package/dist/lib/fs/vfs.cjs +2 -2
  68. package/dist/lib/fs/vfs.js +1 -1
  69. package/dist/lib/index.cjs +10 -10
  70. package/dist/lib/index.d.cts +1 -1
  71. package/dist/lib/index.d.ts +1 -1
  72. package/dist/lib/index.js +5 -5
  73. package/dist/lib/{internal-CFBs3Fok.d.cts → internal-Dt8PM9M2.d.cts} +5 -1
  74. package/dist/lib/{internal-Dlj-vo3a.d.ts → internal-DyXNBori.d.ts} +5 -1
  75. package/dist/lib/unplugin/factory.cjs +6 -6
  76. package/dist/lib/unplugin/factory.js +5 -5
  77. package/dist/lib/unplugin/index.cjs +6 -6
  78. package/dist/lib/unplugin/index.js +5 -5
  79. package/dist/next.cjs +4 -4
  80. package/dist/next.js +3 -3
  81. package/dist/nuxt.cjs +7 -7
  82. package/dist/nuxt.js +5 -5
  83. package/dist/rolldown.cjs +6 -6
  84. package/dist/rolldown.js +3 -3
  85. package/dist/rollup.cjs +3 -3
  86. package/dist/rollup.js +2 -2
  87. package/dist/rspack.cjs +3 -3
  88. package/dist/rspack.js +2 -2
  89. package/dist/tsdown.cjs +4 -4
  90. package/dist/tsdown.js +3 -3
  91. package/dist/tsup.cjs +4 -4
  92. package/dist/tsup.js +3 -3
  93. package/dist/types/internal.d.cts +5 -1
  94. package/dist/types/internal.d.ts +5 -1
  95. package/dist/unloader.cjs +3 -3
  96. package/dist/unloader.js +2 -2
  97. package/dist/unplugin.cjs +8 -8
  98. package/dist/unplugin.js +4 -4
  99. package/dist/vite.cjs +6 -6
  100. package/dist/vite.js +3 -3
  101. package/dist/webpack.cjs +6 -6
  102. package/dist/webpack.js +3 -3
  103. package/package.json +2 -2
  104. package/dist/chunk-4QATNI7W.cjs +0 -12
  105. package/dist/chunk-P3RYMCAA.cjs +0 -12
  106. package/dist/lib/chunk-C6CJM3EI.cjs.map +0 -1
  107. package/dist/lib/chunk-LD73LMAE.js.map +0 -1
  108. package/dist/lib/chunk-MOCQ266V.cjs.map +0 -1
  109. package/dist/lib/chunk-SVAHW2JC.cjs.map +0 -1
  110. package/dist/lib/chunk-ZH6OZFGY.js.map +0 -1
  111. package/dist/lib/chunk-ZTBWCQH5.js.map +0 -1
package/dist/api.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ7FOWGCH_cjs = require('./chunk-J7FOWGCH.cjs');
3
+ var chunkLBPHFO4S_cjs = require('./chunk-LBPHFO4S.cjs');
4
4
  require('./chunk-B6DVCLP5.cjs');
5
5
  require('./chunk-V5WOGN7O.cjs');
6
6
  require('./chunk-Z6ARQDHR.cjs');
@@ -10,7 +10,7 @@ require('./chunk-PK6SKIKE.cjs');
10
10
 
11
11
  Object.defineProperty(exports, "PowerlinesAPI", {
12
12
  enumerable: true,
13
- get: function () { return chunkJ7FOWGCH_cjs.PowerlinesAPI; }
13
+ get: function () { return chunkLBPHFO4S_cjs.PowerlinesAPI; }
14
14
  });
15
15
  //# sourceMappingURL=api.cjs.map
16
16
  //# sourceMappingURL=api.cjs.map
package/dist/api.js CHANGED
@@ -1,4 +1,4 @@
1
- export { PowerlinesAPI } from './chunk-STSTFZT2.js';
1
+ export { PowerlinesAPI } from './chunk-2GYKL7MR.js';
2
2
  import './chunk-PQXP7XQK.js';
3
3
  import './chunk-NITQ5IYP.js';
4
4
  import './chunk-2MYPFASJ.js';
package/dist/astro.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkKRQKJHEH_cjs = require('./chunk-KRQKJHEH.cjs');
5
+ var chunkUQYTU5IK_cjs = require('./chunk-UQYTU5IK.cjs');
6
6
  require('./chunk-SE3RCXWI.cjs');
7
- require('./chunk-LQZK77AH.cjs');
8
- require('./chunk-J7FOWGCH.cjs');
7
+ require('./chunk-P54ICZRA.cjs');
8
+ require('./chunk-LBPHFO4S.cjs');
9
9
  require('./chunk-B6DVCLP5.cjs');
10
10
  require('./chunk-V5WOGN7O.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,7 +15,7 @@ var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
15
15
  var astro = /* @__PURE__ */ chunkPK6SKIKE_cjs.__name((config) => ({
16
16
  vite: {
17
17
  plugins: [
18
- chunkKRQKJHEH_cjs.vite_default(config)
18
+ chunkUQYTU5IK_cjs.vite_default(config)
19
19
  ]
20
20
  }
21
21
  }), "astro");
package/dist/astro.js CHANGED
@@ -1,7 +1,7 @@
1
- import { vite_default } from './chunk-Y6A4FTVN.js';
1
+ import { vite_default } from './chunk-VUNH6T4K.js';
2
2
  import './chunk-BGBDDKML.js';
3
- import './chunk-7Q4TUBXJ.js';
4
- import './chunk-STSTFZT2.js';
3
+ import './chunk-QP6ZNNHB.js';
4
+ import './chunk-2GYKL7MR.js';
5
5
  import './chunk-PQXP7XQK.js';
6
6
  import './chunk-NITQ5IYP.js';
7
7
  import './chunk-2MYPFASJ.js';
@@ -1833,6 +1833,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
1833
1833
  * @returns A promise that resolves to a new virtual file system instance.
1834
1834
  */
1835
1835
  static async create(context) {
1836
+ context.debug("Starting virtual file system (VFS) initialization processes...");
1836
1837
  if (!context.config.skipCache && existsSync(joinPaths$1(context.dataPath, "fs.bin"))) {
1837
1838
  const buffer = await readFileBuffer(joinPaths$1(context.dataPath, "fs.bin"));
1838
1839
  const message2 = new $.Message(buffer, false);
@@ -1846,8 +1847,10 @@ var VirtualFileSystem = class _VirtualFileSystem {
1846
1847
  }
1847
1848
  const message = new $.Message();
1848
1849
  const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1850
+ result.#log(LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1849
1851
  if (result.metadata) {
1850
- context.entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1852
+ result.#log(LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.metadata).length} previously stored metadata records...`);
1853
+ const entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1851
1854
  if (meta.properties) {
1852
1855
  const typeDefinition = {
1853
1856
  file: path
@@ -1871,7 +1874,8 @@ var VirtualFileSystem = class _VirtualFileSystem {
1871
1874
  }
1872
1875
  return null;
1873
1876
  }).filter(Boolean);
1874
- context.debug(`Loaded ${context.entry.length} entry type definitions from VFS metadata.`);
1877
+ result.#log(LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1878
+ context.entry = entry;
1875
1879
  }
1876
1880
  return result;
1877
1881
  }
@@ -2720,7 +2724,9 @@ var PowerlinesContext = class _PowerlinesContext {
2720
2724
  *
2721
2725
  * @internal
2722
2726
  */
2723
- #internal = {};
2727
+ #internal = {
2728
+ entry: []
2729
+ };
2724
2730
  #workspaceConfig;
2725
2731
  #checksum = null;
2726
2732
  #buildId = uuid();
@@ -2812,10 +2818,6 @@ var PowerlinesContext = class _PowerlinesContext {
2812
2818
  */
2813
2819
  resolver;
2814
2820
  /**
2815
- * An internal object containing the added resolved entry type definitions for the project.
2816
- */
2817
- _entry = null;
2818
- /**
2819
2821
  * The resolved configuration options
2820
2822
  */
2821
2823
  resolvePatterns = [];
@@ -2845,13 +2847,13 @@ var PowerlinesContext = class _PowerlinesContext {
2845
2847
  * The resolved entry type definitions for the project
2846
2848
  */
2847
2849
  get entry() {
2848
- return resolveEntriesSync(this, !this._entry || this._entry.length === 0 ? toArray(this.config.entry) : this._entry);
2850
+ return resolveEntriesSync(this, !this.$$internal.entry || this.$$internal.entry.length === 0 ? toArray(this.config.entry) : this.$$internal.entry);
2849
2851
  }
2850
2852
  /**
2851
2853
  * Sets the resolved entry type definitions for the project
2852
2854
  */
2853
2855
  set entry(value) {
2854
- this._entry = value;
2856
+ this.$$internal.entry = value;
2855
2857
  }
2856
2858
  /**
2857
2859
  * The TypeScript configuration parsed from the tsconfig file
@@ -3308,13 +3310,14 @@ var PowerlinesContext = class _PowerlinesContext {
3308
3310
  */
3309
3311
  async emitEntry(code, path, options = {}) {
3310
3312
  const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3311
- this._entry ??= [];
3312
- this._entry.push({
3313
- name: options.name,
3314
- file: entryPath,
3315
- input: options.input,
3316
- output: options.output
3317
- });
3313
+ if (this.$$internal.entry) {
3314
+ this.$$internal.entry.push({
3315
+ name: options.name,
3316
+ file: entryPath,
3317
+ input: options.input,
3318
+ output: options.output
3319
+ });
3320
+ }
3318
3321
  return this.emit(code, entryPath, defu7(omit(options, [
3319
3322
  "name"
3320
3323
  ]), {
@@ -3338,13 +3341,14 @@ var PowerlinesContext = class _PowerlinesContext {
3338
3341
  */
3339
3342
  emitEntrySync(code, path, options = {}) {
3340
3343
  const entryPath = appendPath(replacePath(replacePath(replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3341
- this._entry ??= [];
3342
- this._entry.push({
3343
- name: options?.name,
3344
- file: entryPath,
3345
- input: options?.input,
3346
- output: options?.output
3347
- });
3344
+ if (this.$$internal.entry) {
3345
+ this.$$internal.entry.push({
3346
+ name: options?.name,
3347
+ file: entryPath,
3348
+ input: options?.input,
3349
+ output: options?.output
3350
+ });
3351
+ }
3348
3352
  return this.emitSync(code, entryPath, defu7(omit(options, [
3349
3353
  "name"
3350
3354
  ]), {
@@ -4297,7 +4301,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
4297
4301
  const api = new _PowerlinesAPI(await PowerlinesAPIContext.from(workspaceRoot, config));
4298
4302
  api.#context.$$internal = {
4299
4303
  api,
4300
- addPlugin: api.#addPlugin.bind(api)
4304
+ addPlugin: api.#addPlugin.bind(api),
4305
+ entry: []
4301
4306
  };
4302
4307
  for (const plugin of api.context.config.plugins ?? []) {
4303
4308
  await api.#addPlugin(plugin);
@@ -4940,5 +4945,5 @@ Note: Please ensure the plugin package's default export is a class that extends
4940
4945
  };
4941
4946
 
4942
4947
  export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId, combineContexts, createLog, extendLog, isUnpluginBuilderVariant };
4943
- //# sourceMappingURL=chunk-STSTFZT2.js.map
4944
- //# sourceMappingURL=chunk-STSTFZT2.js.map
4948
+ //# sourceMappingURL=chunk-2GYKL7MR.js.map
4949
+ //# sourceMappingURL=chunk-2GYKL7MR.js.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-BGBDDKML.js';
2
- import { createUnpluginFactory } from './chunk-7Q4TUBXJ.js';
2
+ import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isUndefined } from '@stryke/type-checks/is-undefined';
5
5
  import { createEsbuildPlugin } from 'unplugin';
@@ -29,5 +29,5 @@ var esbuild = createEsbuildPlugin(createUnpluginFactory("esbuild", (api, plugin)
29
29
  var esbuild_default = esbuild;
30
30
 
31
31
  export { esbuild, esbuild_default };
32
- //# sourceMappingURL=chunk-AQG66EUK.js.map
33
- //# sourceMappingURL=chunk-AQG66EUK.js.map
32
+ //# sourceMappingURL=chunk-3CM5DSDF.js.map
33
+ //# sourceMappingURL=chunk-3CM5DSDF.js.map
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
4
- var chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.cjs');
4
+ var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var isUndefined = require('@stryke/type-checks/is-undefined');
7
7
  var unplugin = require('unplugin');
8
8
 
9
- var esbuild = unplugin.createEsbuildPlugin(chunkLQZK77AH_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
9
+ var esbuild = unplugin.createEsbuildPlugin(chunkP54ICZRA_cjs.createUnpluginFactory("esbuild", (api, plugin) => {
10
10
  return {
11
11
  ...plugin,
12
12
  esbuild: {
@@ -32,5 +32,5 @@ var esbuild_default = esbuild;
32
32
 
33
33
  exports.esbuild = esbuild;
34
34
  exports.esbuild_default = esbuild_default;
35
- //# sourceMappingURL=chunk-OZZ65IVY.cjs.map
36
- //# sourceMappingURL=chunk-OZZ65IVY.cjs.map
35
+ //# sourceMappingURL=chunk-DJLMDKJL.cjs.map
36
+ //# sourceMappingURL=chunk-DJLMDKJL.cjs.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-7Q4TUBXJ.js';
1
+ import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
2
2
  import { createRolldownPlugin } from 'unplugin';
3
3
 
4
4
  var rolldown = createRolldownPlugin(createUnpluginFactory("rolldown"));
5
5
  var rolldown_default = rolldown;
6
6
 
7
7
  export { rolldown, rolldown_default };
8
- //# sourceMappingURL=chunk-GUFYA64E.js.map
9
- //# sourceMappingURL=chunk-GUFYA64E.js.map
8
+ //# sourceMappingURL=chunk-ED76WMZE.js.map
9
+ //# sourceMappingURL=chunk-ED76WMZE.js.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var webpack = unplugin.createWebpackPlugin(chunkP54ICZRA_cjs.createUnpluginFactory("webpack"));
7
+ var webpack_default = webpack;
8
+
9
+ exports.webpack = webpack;
10
+ exports.webpack_default = webpack_default;
11
+ //# sourceMappingURL=chunk-HG62S3DW.cjs.map
12
+ //# sourceMappingURL=chunk-HG62S3DW.cjs.map
@@ -1862,6 +1862,7 @@ var VirtualFileSystem = class _VirtualFileSystem {
1862
1862
  * @returns A promise that resolves to a new virtual file system instance.
1863
1863
  */
1864
1864
  static async create(context) {
1865
+ context.debug("Starting virtual file system (VFS) initialization processes...");
1865
1866
  if (!context.config.skipCache && exists.existsSync(joinPaths.joinPaths(context.dataPath, "fs.bin"))) {
1866
1867
  const buffer$1 = await buffer.readFileBuffer(joinPaths.joinPaths(context.dataPath, "fs.bin"));
1867
1868
  const message2 = new $__namespace.Message(buffer$1, false);
@@ -1875,8 +1876,10 @@ var VirtualFileSystem = class _VirtualFileSystem {
1875
1876
  }
1876
1877
  const message = new $__namespace.Message();
1877
1878
  const result = new _VirtualFileSystem(context, message.initRoot(FileSystem));
1879
+ result.#log(types.LogLevelLabel.DEBUG, "Successfully completed virtual file system (VFS) initialization.");
1878
1880
  if (result.metadata) {
1879
- context.entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1881
+ result.#log(types.LogLevelLabel.DEBUG, `Preparing to load ${Object.keys(result.metadata).length} previously stored metadata records...`);
1882
+ const entry = Object.entries(result.metadata).filter(([, meta]) => meta && meta.type === "entry").map(([path, meta]) => {
1880
1883
  if (meta.properties) {
1881
1884
  const typeDefinition = {
1882
1885
  file: path
@@ -1900,7 +1903,8 @@ var VirtualFileSystem = class _VirtualFileSystem {
1900
1903
  }
1901
1904
  return null;
1902
1905
  }).filter(Boolean);
1903
- context.debug(`Loaded ${context.entry.length} entry type definitions from VFS metadata.`);
1906
+ result.#log(types.LogLevelLabel.DEBUG, `Loaded ${entry.length} entry type definitions from VFS metadata.`);
1907
+ context.entry = entry;
1904
1908
  }
1905
1909
  return result;
1906
1910
  }
@@ -2749,7 +2753,9 @@ var PowerlinesContext = class _PowerlinesContext {
2749
2753
  *
2750
2754
  * @internal
2751
2755
  */
2752
- #internal = {};
2756
+ #internal = {
2757
+ entry: []
2758
+ };
2753
2759
  #workspaceConfig;
2754
2760
  #checksum = null;
2755
2761
  #buildId = uuid.uuid();
@@ -2841,10 +2847,6 @@ var PowerlinesContext = class _PowerlinesContext {
2841
2847
  */
2842
2848
  resolver;
2843
2849
  /**
2844
- * An internal object containing the added resolved entry type definitions for the project.
2845
- */
2846
- _entry = null;
2847
- /**
2848
2850
  * The resolved configuration options
2849
2851
  */
2850
2852
  resolvePatterns = [];
@@ -2874,13 +2876,13 @@ var PowerlinesContext = class _PowerlinesContext {
2874
2876
  * The resolved entry type definitions for the project
2875
2877
  */
2876
2878
  get entry() {
2877
- return resolveEntriesSync(this, !this._entry || this._entry.length === 0 ? toArray.toArray(this.config.entry) : this._entry);
2879
+ return resolveEntriesSync(this, !this.$$internal.entry || this.$$internal.entry.length === 0 ? toArray.toArray(this.config.entry) : this.$$internal.entry);
2878
2880
  }
2879
2881
  /**
2880
2882
  * Sets the resolved entry type definitions for the project
2881
2883
  */
2882
2884
  set entry(value) {
2883
- this._entry = value;
2885
+ this.$$internal.entry = value;
2884
2886
  }
2885
2887
  /**
2886
2888
  * The TypeScript configuration parsed from the tsconfig file
@@ -3337,13 +3339,14 @@ var PowerlinesContext = class _PowerlinesContext {
3337
3339
  */
3338
3340
  async emitEntry(code, path, options = {}) {
3339
3341
  const entryPath = append.appendPath(replace.replacePath(replace.replacePath(replace.replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3340
- this._entry ??= [];
3341
- this._entry.push({
3342
- name: options.name,
3343
- file: entryPath,
3344
- input: options.input,
3345
- output: options.output
3346
- });
3342
+ if (this.$$internal.entry) {
3343
+ this.$$internal.entry.push({
3344
+ name: options.name,
3345
+ file: entryPath,
3346
+ input: options.input,
3347
+ output: options.output
3348
+ });
3349
+ }
3347
3350
  return this.emit(code, entryPath, defu7__default.default(omit.omit(options, [
3348
3351
  "name"
3349
3352
  ]), {
@@ -3367,13 +3370,14 @@ var PowerlinesContext = class _PowerlinesContext {
3367
3370
  */
3368
3371
  emitEntrySync(code, path, options = {}) {
3369
3372
  const entryPath = append.appendPath(replace.replacePath(replace.replacePath(replace.replacePath(path, this.entryPath), this.config.projectRoot), this.workspaceConfig.workspaceRoot), this.entryPath);
3370
- this._entry ??= [];
3371
- this._entry.push({
3372
- name: options?.name,
3373
- file: entryPath,
3374
- input: options?.input,
3375
- output: options?.output
3376
- });
3373
+ if (this.$$internal.entry) {
3374
+ this.$$internal.entry.push({
3375
+ name: options?.name,
3376
+ file: entryPath,
3377
+ input: options?.input,
3378
+ output: options?.output
3379
+ });
3380
+ }
3377
3381
  return this.emitSync(code, entryPath, defu7__default.default(omit.omit(options, [
3378
3382
  "name"
3379
3383
  ]), {
@@ -4326,7 +4330,8 @@ var PowerlinesAPI = class _PowerlinesAPI {
4326
4330
  const api = new _PowerlinesAPI(await PowerlinesAPIContext.from(workspaceRoot, config));
4327
4331
  api.#context.$$internal = {
4328
4332
  api,
4329
- addPlugin: api.#addPlugin.bind(api)
4333
+ addPlugin: api.#addPlugin.bind(api),
4334
+ entry: []
4330
4335
  };
4331
4336
  for (const plugin of api.context.config.plugins ?? []) {
4332
4337
  await api.#addPlugin(plugin);
@@ -4979,5 +4984,5 @@ exports.combineContexts = combineContexts;
4979
4984
  exports.createLog = createLog;
4980
4985
  exports.extendLog = extendLog;
4981
4986
  exports.isUnpluginBuilderVariant = isUnpluginBuilderVariant;
4982
- //# sourceMappingURL=chunk-J7FOWGCH.cjs.map
4983
- //# sourceMappingURL=chunk-J7FOWGCH.cjs.map
4987
+ //# sourceMappingURL=chunk-LBPHFO4S.cjs.map
4988
+ //# sourceMappingURL=chunk-LBPHFO4S.cjs.map
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
4
+ var unplugin = require('unplugin');
5
+
6
+ var rolldown = unplugin.createRolldownPlugin(chunkP54ICZRA_cjs.createUnpluginFactory("rolldown"));
7
+ var rolldown_default = rolldown;
8
+
9
+ exports.rolldown = rolldown;
10
+ exports.rolldown_default = rolldown_default;
11
+ //# sourceMappingURL=chunk-N3XGIGAC.cjs.map
12
+ //# sourceMappingURL=chunk-N3XGIGAC.cjs.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJ7FOWGCH_cjs = require('./chunk-J7FOWGCH.cjs');
3
+ var chunkLBPHFO4S_cjs = require('./chunk-LBPHFO4S.cjs');
4
4
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
5
5
  var types = require('@storm-software/config-tools/types');
6
6
  var getWorkspaceRoot = require('@stryke/fs/get-workspace-root');
@@ -27,7 +27,7 @@ chunkPK6SKIKE_cjs.__name(getString, "getString");
27
27
  // src/lib/unplugin/factory.ts
28
28
  function createUnpluginFactory(variant, decorate) {
29
29
  return (config, meta) => {
30
- const log = chunkJ7FOWGCH_cjs.createLog("unplugin", config);
30
+ const log = chunkLBPHFO4S_cjs.createLog("unplugin", config);
31
31
  log(types.LogLevelLabel.DEBUG, "Initializing Unplugin");
32
32
  try {
33
33
  const userConfig = {
@@ -38,7 +38,7 @@ function createUnpluginFactory(variant, decorate) {
38
38
  let api;
39
39
  async function buildStart() {
40
40
  log(types.LogLevelLabel.DEBUG, "Powerlines build plugin starting...");
41
- api = await chunkJ7FOWGCH_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
41
+ api = await chunkLBPHFO4S_cjs.PowerlinesAPI.from(getWorkspaceRoot.getWorkspaceRoot(process.cwd()), userConfig);
42
42
  unplugin.setParseImpl(api.context.parse);
43
43
  log(types.LogLevelLabel.DEBUG, "Preparing build artifacts for the Powerlines project...");
44
44
  await api.prepare({
@@ -137,5 +137,5 @@ chunkPK6SKIKE_cjs.__name(createUnpluginFactory, "createUnpluginFactory");
137
137
 
138
138
  exports.createUnpluginFactory = createUnpluginFactory;
139
139
  exports.getString = getString;
140
- //# sourceMappingURL=chunk-LQZK77AH.cjs.map
141
- //# sourceMappingURL=chunk-LQZK77AH.cjs.map
140
+ //# sourceMappingURL=chunk-P54ICZRA.cjs.map
141
+ //# sourceMappingURL=chunk-P54ICZRA.cjs.map
@@ -1,4 +1,4 @@
1
- import { createLog, PowerlinesAPI } from './chunk-STSTFZT2.js';
1
+ import { createLog, PowerlinesAPI } from './chunk-2GYKL7MR.js';
2
2
  import { __name } from './chunk-7QVYU63E.js';
3
3
  import { LogLevelLabel } from '@storm-software/config-tools/types';
4
4
  import { getWorkspaceRoot } from '@stryke/fs/get-workspace-root';
@@ -134,5 +134,5 @@ function createUnpluginFactory(variant, decorate) {
134
134
  __name(createUnpluginFactory, "createUnpluginFactory");
135
135
 
136
136
  export { createUnpluginFactory, getString };
137
- //# sourceMappingURL=chunk-7Q4TUBXJ.js.map
138
- //# sourceMappingURL=chunk-7Q4TUBXJ.js.map
137
+ //# sourceMappingURL=chunk-QP6ZNNHB.js.map
138
+ //# sourceMappingURL=chunk-QP6ZNNHB.js.map
@@ -1,9 +1,9 @@
1
- import { createUnpluginFactory } from './chunk-7Q4TUBXJ.js';
1
+ import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
2
2
  import { createWebpackPlugin } from 'unplugin';
3
3
 
4
4
  var webpack = createWebpackPlugin(createUnpluginFactory("webpack"));
5
5
  var webpack_default = webpack;
6
6
 
7
7
  export { webpack, webpack_default };
8
- //# sourceMappingURL=chunk-QVZ32P2J.js.map
9
- //# sourceMappingURL=chunk-QVZ32P2J.js.map
8
+ //# sourceMappingURL=chunk-TKMRSLBB.js.map
9
+ //# sourceMappingURL=chunk-TKMRSLBB.js.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkSE3RCXWI_cjs = require('./chunk-SE3RCXWI.cjs');
4
- var chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.cjs');
4
+ var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
5
5
  var chunkPK6SKIKE_cjs = require('./chunk-PK6SKIKE.cjs');
6
6
  var environmentChecks = require('@stryke/env/environment-checks');
7
7
  var defu = require('defu');
@@ -97,7 +97,7 @@ function extractViteConfig(context) {
97
97
  chunkPK6SKIKE_cjs.__name(extractViteConfig, "extractViteConfig");
98
98
 
99
99
  // src/vite.ts
100
- var vite = unplugin.createVitePlugin(chunkLQZK77AH_cjs.createUnpluginFactory("vite", (api, plugin) => {
100
+ var vite = unplugin.createVitePlugin(chunkP54ICZRA_cjs.createUnpluginFactory("vite", (api, plugin) => {
101
101
  return {
102
102
  ...plugin,
103
103
  vite: {
@@ -158,5 +158,5 @@ var vite_default = vite;
158
158
 
159
159
  exports.vite = vite;
160
160
  exports.vite_default = vite_default;
161
- //# sourceMappingURL=chunk-KRQKJHEH.cjs.map
162
- //# sourceMappingURL=chunk-KRQKJHEH.cjs.map
161
+ //# sourceMappingURL=chunk-UQYTU5IK.cjs.map
162
+ //# sourceMappingURL=chunk-UQYTU5IK.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { extractESBuildConfig } from './chunk-BGBDDKML.js';
2
- import { createUnpluginFactory } from './chunk-7Q4TUBXJ.js';
2
+ import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
3
3
  import { __name } from './chunk-7QVYU63E.js';
4
4
  import { isDevelopmentMode, isTestMode } from '@stryke/env/environment-checks';
5
5
  import defu from 'defu';
@@ -151,5 +151,5 @@ var vite = createVitePlugin(createUnpluginFactory("vite", (api, plugin) => {
151
151
  var vite_default = vite;
152
152
 
153
153
  export { vite, vite_default };
154
- //# sourceMappingURL=chunk-Y6A4FTVN.js.map
155
- //# sourceMappingURL=chunk-Y6A4FTVN.js.map
154
+ //# sourceMappingURL=chunk-VUNH6T4K.js.map
155
+ //# sourceMappingURL=chunk-VUNH6T4K.js.map
package/dist/esbuild.cjs CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkOZZ65IVY_cjs = require('./chunk-OZZ65IVY.cjs');
5
+ var chunkDJLMDKJL_cjs = require('./chunk-DJLMDKJL.cjs');
6
6
  require('./chunk-SE3RCXWI.cjs');
7
- require('./chunk-LQZK77AH.cjs');
8
- require('./chunk-J7FOWGCH.cjs');
7
+ require('./chunk-P54ICZRA.cjs');
8
+ require('./chunk-LBPHFO4S.cjs');
9
9
  require('./chunk-B6DVCLP5.cjs');
10
10
  require('./chunk-V5WOGN7O.cjs');
11
11
  require('./chunk-Z6ARQDHR.cjs');
@@ -15,15 +15,15 @@ require('./chunk-PK6SKIKE.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "default", {
17
17
  enumerable: true,
18
- get: function () { return chunkOZZ65IVY_cjs.esbuild_default; }
18
+ get: function () { return chunkDJLMDKJL_cjs.esbuild_default; }
19
19
  });
20
20
  Object.defineProperty(exports, "esbuild", {
21
21
  enumerable: true,
22
- get: function () { return chunkOZZ65IVY_cjs.esbuild; }
22
+ get: function () { return chunkDJLMDKJL_cjs.esbuild; }
23
23
  });
24
24
  Object.defineProperty(exports, "module.exports", {
25
25
  enumerable: true,
26
- get: function () { return chunkOZZ65IVY_cjs.esbuild; }
26
+ get: function () { return chunkDJLMDKJL_cjs.esbuild; }
27
27
  });
28
28
  //# sourceMappingURL=esbuild.cjs.map
29
29
  //# sourceMappingURL=esbuild.cjs.map
package/dist/esbuild.js CHANGED
@@ -1,7 +1,7 @@
1
- export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-AQG66EUK.js';
1
+ export { esbuild_default as default, esbuild, esbuild as "module.exports" } from './chunk-3CM5DSDF.js';
2
2
  import './chunk-BGBDDKML.js';
3
- import './chunk-7Q4TUBXJ.js';
4
- import './chunk-STSTFZT2.js';
3
+ import './chunk-QP6ZNNHB.js';
4
+ import './chunk-2GYKL7MR.js';
5
5
  import './chunk-PQXP7XQK.js';
6
6
  import './chunk-NITQ5IYP.js';
7
7
  import './chunk-2MYPFASJ.js';
package/dist/farm.cjs CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkLQZK77AH_cjs = require('./chunk-LQZK77AH.cjs');
6
- require('./chunk-J7FOWGCH.cjs');
5
+ var chunkP54ICZRA_cjs = require('./chunk-P54ICZRA.cjs');
6
+ require('./chunk-LBPHFO4S.cjs');
7
7
  require('./chunk-B6DVCLP5.cjs');
8
8
  require('./chunk-V5WOGN7O.cjs');
9
9
  require('./chunk-Z6ARQDHR.cjs');
10
10
  require('./chunk-PK6SKIKE.cjs');
11
11
  var unplugin = require('unplugin');
12
12
 
13
- var farm = unplugin.createFarmPlugin(chunkLQZK77AH_cjs.createUnpluginFactory("farm"));
13
+ var farm = unplugin.createFarmPlugin(chunkP54ICZRA_cjs.createUnpluginFactory("farm"));
14
14
  var farm_default = farm;
15
15
 
16
16
  exports.default = farm_default;
package/dist/farm.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createUnpluginFactory } from './chunk-7Q4TUBXJ.js';
2
- import './chunk-STSTFZT2.js';
1
+ import { createUnpluginFactory } from './chunk-QP6ZNNHB.js';
2
+ import './chunk-2GYKL7MR.js';
3
3
  import './chunk-PQXP7XQK.js';
4
4
  import './chunk-NITQ5IYP.js';
5
5
  import './chunk-2MYPFASJ.js';
package/dist/index.cjs CHANGED
@@ -13,7 +13,7 @@ require('./chunk-4JCNAKOE.cjs');
13
13
  require('./chunk-D6GGZQLC.cjs');
14
14
  var chunkA7AUGAHH_cjs = require('./chunk-A7AUGAHH.cjs');
15
15
  var chunk42ZHOCZJ_cjs = require('./chunk-42ZHOCZJ.cjs');
16
- var chunkJ7FOWGCH_cjs = require('./chunk-J7FOWGCH.cjs');
16
+ var chunkLBPHFO4S_cjs = require('./chunk-LBPHFO4S.cjs');
17
17
  var chunkB6DVCLP5_cjs = require('./chunk-B6DVCLP5.cjs');
18
18
  var chunkV5WOGN7O_cjs = require('./chunk-V5WOGN7O.cjs');
19
19
  var chunkZ6ARQDHR_cjs = require('./chunk-Z6ARQDHR.cjs');
@@ -27,10 +27,10 @@ chunkPK6SKIKE_cjs.__name(defineConfig, "defineConfig");
27
27
  async function createPowerlines(options = {}) {
28
28
  options.root ??= process.cwd();
29
29
  const workspaceRoot = getWorkspaceRoot.getWorkspaceRoot(options.root);
30
- return chunkJ7FOWGCH_cjs.PowerlinesAPI.from(workspaceRoot, options);
30
+ return chunkLBPHFO4S_cjs.PowerlinesAPI.from(workspaceRoot, options);
31
31
  }
32
32
  chunkPK6SKIKE_cjs.__name(createPowerlines, "createPowerlines");
33
- var index_default = chunkJ7FOWGCH_cjs.PowerlinesAPI;
33
+ var index_default = chunkLBPHFO4S_cjs.PowerlinesAPI;
34
34
 
35
35
  Object.defineProperty(exports, "STORAGE_PRESETS", {
36
36
  enumerable: true,
@@ -50,31 +50,31 @@ Object.defineProperty(exports, "HOOKS_LIST_ORDERS", {
50
50
  });
51
51
  Object.defineProperty(exports, "FileId", {
52
52
  enumerable: true,
53
- get: function () { return chunkJ7FOWGCH_cjs.FileId; }
53
+ get: function () { return chunkLBPHFO4S_cjs.FileId; }
54
54
  });
55
55
  Object.defineProperty(exports, "FileMetadata", {
56
56
  enumerable: true,
57
- get: function () { return chunkJ7FOWGCH_cjs.FileMetadata; }
57
+ get: function () { return chunkLBPHFO4S_cjs.FileMetadata; }
58
58
  });
59
59
  Object.defineProperty(exports, "FileMetadata_KeyValuePair", {
60
60
  enumerable: true,
61
- get: function () { return chunkJ7FOWGCH_cjs.FileMetadata_KeyValuePair; }
61
+ get: function () { return chunkLBPHFO4S_cjs.FileMetadata_KeyValuePair; }
62
62
  });
63
63
  Object.defineProperty(exports, "FileStorage", {
64
64
  enumerable: true,
65
- get: function () { return chunkJ7FOWGCH_cjs.FileStorage; }
65
+ get: function () { return chunkLBPHFO4S_cjs.FileStorage; }
66
66
  });
67
67
  Object.defineProperty(exports, "FileSystem", {
68
68
  enumerable: true,
69
- get: function () { return chunkJ7FOWGCH_cjs.FileSystem; }
69
+ get: function () { return chunkLBPHFO4S_cjs.FileSystem; }
70
70
  });
71
71
  Object.defineProperty(exports, "PowerlinesAPI", {
72
72
  enumerable: true,
73
- get: function () { return chunkJ7FOWGCH_cjs.PowerlinesAPI; }
73
+ get: function () { return chunkLBPHFO4S_cjs.PowerlinesAPI; }
74
74
  });
75
75
  Object.defineProperty(exports, "_capnpFileId", {
76
76
  enumerable: true,
77
- get: function () { return chunkJ7FOWGCH_cjs._capnpFileId; }
77
+ get: function () { return chunkLBPHFO4S_cjs._capnpFileId; }
78
78
  });
79
79
  Object.defineProperty(exports, "KNOWN_PLUGIN_FIELDS", {
80
80
  enumerable: true,
package/dist/index.js CHANGED
@@ -9,8 +9,8 @@ import './chunk-OYASPHNL.js';
9
9
  import './chunk-OD4BINRW.js';
10
10
  export { STORAGE_PRESETS, __VFS_PATCH__, __VFS_REVERT__ } from './chunk-KXRVVFNK.js';
11
11
  export { HOOKS_LIST_ORDERS } from './chunk-CCJQBJKQ.js';
12
- import { PowerlinesAPI } from './chunk-STSTFZT2.js';
13
- export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-STSTFZT2.js';
12
+ import { PowerlinesAPI } from './chunk-2GYKL7MR.js';
13
+ export { FileId, FileMetadata, FileMetadata_KeyValuePair, FileStorage, FileSystem, PowerlinesAPI, _capnpFileId } from './chunk-2GYKL7MR.js';
14
14
  export { KNOWN_PLUGIN_FIELDS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS } from './chunk-PQXP7XQK.js';
15
15
  export { BUILDER_VARIANTS, UNPLUGIN_BUILDER_VARIANTS } from './chunk-NITQ5IYP.js';
16
16
  export { SUPPORTED_COMMANDS } from './chunk-2MYPFASJ.js';