powerlines 0.24.6 → 0.24.8

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 (63) 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-4YOH66OR.js → chunk-3TNZWTLG.js} +1 -1
  6. package/dist/{chunk-J42CWDHS.cjs → chunk-7RWEBVQC.cjs} +3 -3
  7. package/dist/{chunk-5VVIGLK7.js → chunk-BCHFSOQ4.js} +23 -19
  8. package/dist/{chunk-MBWFPGQL.cjs → chunk-FQXHIKCM.cjs} +2 -2
  9. package/dist/{chunk-D7IZZTKR.cjs → chunk-LOUZXJFY.cjs} +2 -2
  10. package/dist/{chunk-E2CYWY4C.js → chunk-MOXO6WJO.js} +1 -1
  11. package/dist/{chunk-6F2RGMWO.js → chunk-OB7MYWHE.js} +1 -1
  12. package/dist/{chunk-RUNRTWUD.js → chunk-OLCL34MI.js} +1 -1
  13. package/dist/{chunk-MWURGZO3.cjs → chunk-QH4TS5V4.cjs} +23 -19
  14. package/dist/{chunk-TSGTSGEL.cjs → chunk-X74SYWFL.cjs} +2 -2
  15. package/dist/esbuild.cjs +6 -6
  16. package/dist/esbuild.js +3 -3
  17. package/dist/farm.cjs +3 -3
  18. package/dist/farm.js +2 -2
  19. package/dist/index.cjs +11 -11
  20. package/dist/index.js +2 -2
  21. package/dist/lib/{chunk-QOS4T645.cjs → chunk-3MZQ4MQX.cjs} +9 -11
  22. package/dist/lib/{chunk-JFHYBGFE.js → chunk-5JAFU45Z.js} +10 -11
  23. package/dist/lib/{chunk-SJCNXDNU.cjs → chunk-OA7OL7HF.cjs} +23 -19
  24. package/dist/lib/{chunk-B6MVU5AR.js → chunk-SYF7QG2J.js} +1 -1
  25. package/dist/lib/{chunk-IRIEW3X6.js → chunk-T2KQZC5K.js} +15 -11
  26. package/dist/lib/{chunk-HQ7626MD.js → chunk-UGVHYKKN.js} +2 -2
  27. package/dist/lib/{chunk-ZTI2BIQ4.cjs → chunk-XLYMVIVD.cjs} +10 -10
  28. package/dist/lib/{chunk-FSV2WXHS.cjs → chunk-YMHOAMCU.cjs} +4 -4
  29. package/dist/lib/contexts/api-context.cjs +4 -4
  30. package/dist/lib/contexts/api-context.js +3 -3
  31. package/dist/lib/contexts/context.cjs +2 -2
  32. package/dist/lib/contexts/context.js +1 -1
  33. package/dist/lib/contexts/environment-context.cjs +3 -3
  34. package/dist/lib/contexts/environment-context.js +2 -2
  35. package/dist/lib/contexts/index.cjs +6 -6
  36. package/dist/lib/contexts/index.js +3 -3
  37. package/dist/lib/index.cjs +9 -9
  38. package/dist/lib/index.js +4 -4
  39. package/dist/lib/unplugin/factory.cjs +5 -5
  40. package/dist/lib/unplugin/factory.js +4 -4
  41. package/dist/lib/unplugin/index.cjs +5 -5
  42. package/dist/lib/unplugin/index.js +4 -4
  43. package/dist/next.cjs +4 -4
  44. package/dist/next.js +3 -3
  45. package/dist/nuxt.cjs +6 -6
  46. package/dist/nuxt.js +4 -4
  47. package/dist/rolldown.cjs +3 -3
  48. package/dist/rolldown.js +2 -2
  49. package/dist/rollup.cjs +3 -3
  50. package/dist/rollup.js +2 -2
  51. package/dist/rspack.cjs +3 -3
  52. package/dist/rspack.js +2 -2
  53. package/dist/tsup.cjs +4 -4
  54. package/dist/tsup.js +3 -3
  55. package/dist/unloader.cjs +3 -3
  56. package/dist/unloader.js +2 -2
  57. package/dist/unplugin.cjs +5 -5
  58. package/dist/unplugin.js +3 -3
  59. package/dist/vite.cjs +6 -6
  60. package/dist/vite.js +3 -3
  61. package/dist/webpack.cjs +6 -6
  62. package/dist/webpack.js +3 -3
  63. package/package.json +2 -2
@@ -1535,22 +1535,21 @@ var VirtualFileSystem = class _VirtualFileSystem {
1535
1535
  await this.unlink(joinPaths$1(this.#context.dataPath, "fs.bin"));
1536
1536
  const message = new $.Message();
1537
1537
  const fs2 = message.initRoot(FileSystem);
1538
- const virtualFS = this.#unifiedFS.toJSON();
1539
- const virtualFiles = Object.entries(virtualFS).filter(([_, code]) => code);
1538
+ const virtualFiles = Object.entries(this.#unifiedFS.toJSON()).filter(([, code]) => code);
1540
1539
  const files = fs2._initFiles(virtualFiles.length);
1541
- virtualFiles.forEach(([path, code], index) => {
1540
+ virtualFiles.filter(([, code]) => code).forEach(([path, code], index) => {
1542
1541
  const fd = files.get(index);
1543
1542
  fd.path = path;
1544
1543
  fd.code = code || "";
1545
1544
  });
1546
1545
  const ids = fs2._initIds(Object.keys(this.ids).length);
1547
- Object.entries(this.ids).forEach(([id, path], index) => {
1546
+ Object.entries(this.ids).filter(([, path]) => path).forEach(([id, path], index) => {
1548
1547
  const fileId = ids.get(index);
1549
1548
  fileId.id = id;
1550
1549
  fileId.path = path;
1551
1550
  });
1552
1551
  const metadata = fs2._initMetadata(Object.keys(this.metadata).length);
1553
- Object.entries(this.metadata).forEach(([id, value], index) => {
1552
+ Object.entries(this.metadata).filter(([, value]) => value).forEach(([id, value], index) => {
1554
1553
  const fileMetadata = metadata.get(index);
1555
1554
  fileMetadata.id = id;
1556
1555
  fileMetadata.mode = value.mode;
@@ -1558,10 +1557,10 @@ var VirtualFileSystem = class _VirtualFileSystem {
1558
1557
  fileMetadata.timestamp = value.timestamp ?? BigInt(Date.now());
1559
1558
  if (value.properties) {
1560
1559
  const props = fileMetadata._initProperties(Object.keys(value.properties).length);
1561
- Object.entries(value.properties).forEach(([key, val], propIndex) => {
1562
- const propData = props.get(propIndex);
1563
- propData.key = key;
1564
- propData.value = val;
1560
+ Object.entries(value.properties).forEach(([key, val], index2) => {
1561
+ const prop = props.get(index2);
1562
+ prop.key = key;
1563
+ prop.value = val;
1565
1564
  });
1566
1565
  }
1567
1566
  });
@@ -1830,7 +1829,7 @@ var PowerlinesContext = class _PowerlinesContext {
1830
1829
  * Get the path to the generated declaration file for the project
1831
1830
  */
1832
1831
  get dtsPath() {
1833
- return this.config.output.dts ? appendPath(this.config.output.dts, this.workspaceConfig.workspaceRoot) : joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "storm.d.ts");
1832
+ return this.config.output.dts ? appendPath(this.config.output.dts, this.workspaceConfig.workspaceRoot) : joinPaths(this.workspaceConfig.workspaceRoot, this.config.projectRoot, "powerlines.d.ts");
1834
1833
  }
1835
1834
  /**
1836
1835
  * Get the project root relative to the workspace root
@@ -2322,4 +2321,4 @@ var PowerlinesContext = class _PowerlinesContext {
2322
2321
  }
2323
2322
  };
2324
2323
 
2325
- export { PowerlinesContext, VirtualFileSystem, __VFS_REVERT__, addPluginHook, checkDedupe, getHookHandler, isHookExternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook };
2324
+ export { PowerlinesContext, VirtualFileSystem, addPluginHook, checkDedupe, getHookHandler, isHookExternal, isPlugin, isPluginConfig, isPluginConfigObject, isPluginConfigTuple, isPluginHook };
@@ -2,9 +2,9 @@
2
2
 
3
3
  var chunk2NZADVP5_cjs = require('./chunk-2NZADVP5.cjs');
4
4
  var chunk4NHFXDTQ_cjs = require('./chunk-4NHFXDTQ.cjs');
5
- var chunkFSV2WXHS_cjs = require('./chunk-FSV2WXHS.cjs');
5
+ var chunkYMHOAMCU_cjs = require('./chunk-YMHOAMCU.cjs');
6
6
  var chunkB3EE3VHZ_cjs = require('./chunk-B3EE3VHZ.cjs');
7
- var chunkQOS4T645_cjs = require('./chunk-QOS4T645.cjs');
7
+ var chunk3MZQ4MQX_cjs = require('./chunk-3MZQ4MQX.cjs');
8
8
  var chunk7VJ42H2I_cjs = require('./chunk-7VJ42H2I.cjs');
9
9
  var chunkGA3RXX4R_cjs = require('./chunk-GA3RXX4R.cjs');
10
10
  var chunkJA4HSQRN_cjs = require('./chunk-JA4HSQRN.cjs');
@@ -16,8 +16,6 @@ var core = require('@babel/core');
16
16
  var console = require('@storm-software/config-tools/logger/console');
17
17
  var toArray = require('@stryke/convert/to-array');
18
18
  var copyFile = require('@stryke/fs/copy-file');
19
- var exists = require('@stryke/fs/exists');
20
- var helpers = require('@stryke/fs/helpers');
21
19
  var install = require('@stryke/fs/install');
22
20
  var listFiles = require('@stryke/fs/list-files');
23
21
  var packageFns = require('@stryke/fs/package-fns');
@@ -426,7 +424,7 @@ var PowerlinesAPI = class _PowerlinesAPI {
426
424
  * Initialize the Powerlines API
427
425
  */
428
426
  static async from(workspaceRoot, config) {
429
- const api = new _PowerlinesAPI(await chunkFSV2WXHS_cjs.PowerlinesAPIContext.from(workspaceRoot, config));
427
+ const api = new _PowerlinesAPI(await chunkYMHOAMCU_cjs.PowerlinesAPIContext.from(workspaceRoot, config));
430
428
  api.#context.$$internal.api = api;
431
429
  for (const plugin of api.context.config.plugins ?? []) {
432
430
  await api.#addPlugin(plugin);
@@ -472,16 +470,23 @@ ${context.entry.map((entry) => `- ${entry.input.file || entry.file}${entry.outpu
472
470
  ${console.formatLogMessage(context.config)}`);
473
471
  await chunk7VJ42H2I_cjs.writeMetaFile(context);
474
472
  context.persistedMeta = context.meta;
475
- if (!exists.existsSync(context.cachePath)) {
476
- await helpers.createDirectory(context.cachePath);
473
+ if (!context.fs.existsSync(context.cachePath)) {
474
+ await context.fs.mkdir(context.cachePath, {
475
+ mode: "fs"
476
+ });
477
477
  }
478
- if (!exists.existsSync(context.dataPath)) {
479
- await helpers.createDirectory(context.dataPath);
478
+ if (!context.fs.existsSync(context.dataPath)) {
479
+ await context.fs.mkdir(context.dataPath, {
480
+ mode: "fs"
481
+ });
480
482
  }
481
483
  await this.callPreHook(context, "prepare");
482
484
  await this.callNormalHook(context, "prepare");
483
485
  if (context.config.output.dts !== false) {
484
486
  context.log(types.LogLevelLabel.TRACE, `Preparing the TypeScript definitions for the Powerlines project.`);
487
+ if (context.fs.existsSync(context.dtsPath)) {
488
+ await context.fs.unlink(context.dtsPath);
489
+ }
485
490
  context.log(types.LogLevelLabel.TRACE, "Transforming built-ins runtime modules files.");
486
491
  const builtinFilePaths = await Promise.all((await context.getBuiltins()).map(async (file) => {
487
492
  const result2 = await core.transformAsync(file.code.toString(), {
@@ -532,7 +537,7 @@ ${console.formatLogMessage(context.config)}`);
532
537
  );
533
538
  context.log(types.LogLevelLabel.TRACE, "Parsing TypeScript configuration for the Powerlines project.");
534
539
  let generatedTypes = await emitTypes(context, files);
535
- context.log(types.LogLevelLabel.TRACE, `Generating TypeScript declaration file in ${context.config.output.dts}.`);
540
+ context.log(types.LogLevelLabel.TRACE, `Generating TypeScript declaration file ${context.dtsPath}.`);
536
541
  const directives = [];
537
542
  let result = await this.callPreHook(context, "generateTypes", generatedTypes);
538
543
  if (result) {
@@ -567,7 +572,7 @@ ${console.formatLogMessage(context.config)}`);
567
572
  generatedTypes = result;
568
573
  }
569
574
  }
570
- await context.fs.writeFile(context.config.output.dts, `${directives ? `${directives.map((directive) => `/// <reference types="${directive}" />`).join("\n")}
575
+ await context.fs.writeFile(context.dtsPath, `${directives ? `${directives.map((directive) => `/// <reference types="${directive}" />`).join("\n")}
571
576
 
572
577
  ` : ""}${chunk4NHFXDTQ_cjs.getFileHeader(context, {
573
578
  directive: null,
@@ -757,7 +762,6 @@ ${formatTypes(generatedTypes)}
757
762
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines finalize execution started");
758
763
  await this.#executeEnvironments(async (context) => {
759
764
  await this.callHook(context, "finalize");
760
- context.fs[chunkQOS4T645_cjs.__VFS_REVERT__]();
761
765
  await context.fs.dispose();
762
766
  });
763
767
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines finalize execution completed");
@@ -922,11 +926,11 @@ ${formatTypes(generatedTypes)}
922
926
  if (isPromise.isPromiseLike(config)) {
923
927
  awaited = await Promise.resolve(config);
924
928
  }
925
- if (!chunkQOS4T645_cjs.isPluginConfig(awaited)) {
929
+ if (!chunk3MZQ4MQX_cjs.isPluginConfig(awaited)) {
926
930
  throw new Error(`Invalid plugin specified in the configuration - ${JSON.stringify(awaited)}. Please ensure the value is a plugin name, an object with the \`plugin\` and \`props\` properties, or an instance of \`Plugin\`.`);
927
931
  }
928
932
  let plugin;
929
- if (chunkQOS4T645_cjs.isPlugin(awaited)) {
933
+ if (chunk3MZQ4MQX_cjs.isPlugin(awaited)) {
930
934
  plugin = awaited;
931
935
  } else if (isFunction.isFunction(awaited)) {
932
936
  plugin = await Promise.resolve(awaited());
@@ -937,10 +941,10 @@ ${formatTypes(generatedTypes)}
937
941
  } else {
938
942
  plugin = resolved;
939
943
  }
940
- } else if (chunkQOS4T645_cjs.isPluginConfigTuple(awaited) || chunkQOS4T645_cjs.isPluginConfigObject(awaited)) {
944
+ } else if (chunk3MZQ4MQX_cjs.isPluginConfigTuple(awaited) || chunk3MZQ4MQX_cjs.isPluginConfigObject(awaited)) {
941
945
  let pluginConfig;
942
946
  let pluginOptions;
943
- if (chunkQOS4T645_cjs.isPluginConfigTuple(awaited)) {
947
+ if (chunk3MZQ4MQX_cjs.isPluginConfigTuple(awaited)) {
944
948
  pluginConfig = awaited[0];
945
949
  pluginOptions = awaited?.length === 2 ? awaited[1] : void 0;
946
950
  } else {
@@ -956,17 +960,17 @@ ${formatTypes(generatedTypes)}
956
960
  }
957
961
  } else if (isFunction.isFunction(pluginConfig)) {
958
962
  plugin = await Promise.resolve(pluginConfig(pluginOptions));
959
- } else if (chunkQOS4T645_cjs.isPlugin(pluginConfig)) {
963
+ } else if (chunk3MZQ4MQX_cjs.isPlugin(pluginConfig)) {
960
964
  plugin = pluginConfig;
961
965
  }
962
966
  }
963
967
  if (!plugin) {
964
968
  throw new Error(`The plugin configuration ${JSON.stringify(awaited)} is invalid. This configuration must point to a valid Powerlines plugin module.`);
965
969
  }
966
- if (!chunkQOS4T645_cjs.isPlugin(plugin)) {
970
+ if (!chunk3MZQ4MQX_cjs.isPlugin(plugin)) {
967
971
  throw new Error(`The plugin option ${JSON.stringify(plugin)} does not export a valid module. This configuration must point to a valid Powerlines plugin module.`);
968
972
  }
969
- if (chunkQOS4T645_cjs.checkDedupe(plugin, this.context.plugins)) {
973
+ if (chunk3MZQ4MQX_cjs.checkDedupe(plugin, this.context.plugins)) {
970
974
  this.context.log(types.LogLevelLabel.TRACE, `Duplicate ${chalk2__default.default.bold.cyanBright(plugin.name)} plugin dependency detected - Skipping initialization.`);
971
975
  return null;
972
976
  }
@@ -1,5 +1,5 @@
1
1
  import { createPluginContext } from './chunk-KFJCWNVG.js';
2
- import { PowerlinesContext, isPlugin, isPluginHook, isHookExternal, addPluginHook, getHookHandler } from './chunk-JFHYBGFE.js';
2
+ import { PowerlinesContext, isPlugin, isPluginHook, isHookExternal, addPluginHook, getHookHandler } from './chunk-5JAFU45Z.js';
3
3
  import { __name } from './chunk-SHUYVCID.js';
4
4
  import { resolvePackage } from '@stryke/fs/resolve';
5
5
  import { isFunction } from '@stryke/type-checks/is-function';
@@ -1,8 +1,8 @@
1
1
  import { writeFile } from './chunk-TANQDHYY.js';
2
2
  import { getFileHeader } from './chunk-GANVMM73.js';
3
- import { PowerlinesAPIContext } from './chunk-HQ7626MD.js';
3
+ import { PowerlinesAPIContext } from './chunk-UGVHYKKN.js';
4
4
  import { callHook } from './chunk-KFJCWNVG.js';
5
- import { __VFS_REVERT__, isPluginConfig, isPlugin, isPluginConfigTuple, isPluginConfigObject, checkDedupe } from './chunk-JFHYBGFE.js';
5
+ import { isPluginConfig, isPlugin, isPluginConfigTuple, isPluginConfigObject, checkDedupe } from './chunk-5JAFU45Z.js';
6
6
  import { writeMetaFile } from './chunk-FQLZZYYO.js';
7
7
  import { getParsedTypeScriptConfig, getTsconfigFilePath, isIncludeMatchFound } from './chunk-ZGMEHSNN.js';
8
8
  import { createLog } from './chunk-ENRLU4UR.js';
@@ -14,8 +14,6 @@ import { transformAsync } from '@babel/core';
14
14
  import { formatLogMessage } from '@storm-software/config-tools/logger/console';
15
15
  import { toArray } from '@stryke/convert/to-array';
16
16
  import { copyFiles } from '@stryke/fs/copy-file';
17
- import { existsSync } from '@stryke/fs/exists';
18
- import { createDirectory } from '@stryke/fs/helpers';
19
17
  import { install } from '@stryke/fs/install';
20
18
  import { listFiles } from '@stryke/fs/list-files';
21
19
  import { isPackageExists, isPackageListed, doesPackageMatch, getPackageListing } from '@stryke/fs/package-fns';
@@ -445,16 +443,23 @@ ${context.entry.map((entry) => `- ${entry.input.file || entry.file}${entry.outpu
445
443
  ${formatLogMessage(context.config)}`);
446
444
  await writeMetaFile(context);
447
445
  context.persistedMeta = context.meta;
448
- if (!existsSync(context.cachePath)) {
449
- await createDirectory(context.cachePath);
446
+ if (!context.fs.existsSync(context.cachePath)) {
447
+ await context.fs.mkdir(context.cachePath, {
448
+ mode: "fs"
449
+ });
450
450
  }
451
- if (!existsSync(context.dataPath)) {
452
- await createDirectory(context.dataPath);
451
+ if (!context.fs.existsSync(context.dataPath)) {
452
+ await context.fs.mkdir(context.dataPath, {
453
+ mode: "fs"
454
+ });
453
455
  }
454
456
  await this.callPreHook(context, "prepare");
455
457
  await this.callNormalHook(context, "prepare");
456
458
  if (context.config.output.dts !== false) {
457
459
  context.log(LogLevelLabel.TRACE, `Preparing the TypeScript definitions for the Powerlines project.`);
460
+ if (context.fs.existsSync(context.dtsPath)) {
461
+ await context.fs.unlink(context.dtsPath);
462
+ }
458
463
  context.log(LogLevelLabel.TRACE, "Transforming built-ins runtime modules files.");
459
464
  const builtinFilePaths = await Promise.all((await context.getBuiltins()).map(async (file) => {
460
465
  const result2 = await transformAsync(file.code.toString(), {
@@ -505,7 +510,7 @@ ${formatLogMessage(context.config)}`);
505
510
  );
506
511
  context.log(LogLevelLabel.TRACE, "Parsing TypeScript configuration for the Powerlines project.");
507
512
  let generatedTypes = await emitTypes(context, files);
508
- context.log(LogLevelLabel.TRACE, `Generating TypeScript declaration file in ${context.config.output.dts}.`);
513
+ context.log(LogLevelLabel.TRACE, `Generating TypeScript declaration file ${context.dtsPath}.`);
509
514
  const directives = [];
510
515
  let result = await this.callPreHook(context, "generateTypes", generatedTypes);
511
516
  if (result) {
@@ -540,7 +545,7 @@ ${formatLogMessage(context.config)}`);
540
545
  generatedTypes = result;
541
546
  }
542
547
  }
543
- await context.fs.writeFile(context.config.output.dts, `${directives ? `${directives.map((directive) => `/// <reference types="${directive}" />`).join("\n")}
548
+ await context.fs.writeFile(context.dtsPath, `${directives ? `${directives.map((directive) => `/// <reference types="${directive}" />`).join("\n")}
544
549
 
545
550
  ` : ""}${getFileHeader(context, {
546
551
  directive: null,
@@ -730,7 +735,6 @@ ${formatTypes(generatedTypes)}
730
735
  this.context.log(LogLevelLabel.TRACE, "Powerlines finalize execution started");
731
736
  await this.#executeEnvironments(async (context) => {
732
737
  await this.callHook(context, "finalize");
733
- context.fs[__VFS_REVERT__]();
734
738
  await context.fs.dispose();
735
739
  });
736
740
  this.context.log(LogLevelLabel.TRACE, "Powerlines finalize execution completed");
@@ -1,5 +1,5 @@
1
- import { PowerlinesEnvironmentContext } from './chunk-B6MVU5AR.js';
2
- import { PowerlinesContext } from './chunk-JFHYBGFE.js';
1
+ import { PowerlinesEnvironmentContext } from './chunk-SYF7QG2J.js';
2
+ import { PowerlinesContext } from './chunk-5JAFU45Z.js';
3
3
  import { loadWorkspaceConfig } from './chunk-XBM7FHNK.js';
4
4
  import { __name } from './chunk-SHUYVCID.js';
5
5
  import { LogLevelLabel } from '@storm-software/config-tools/types';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkB3EE3VHZ_cjs = require('./chunk-B3EE3VHZ.cjs');
4
- var chunkQOS4T645_cjs = require('./chunk-QOS4T645.cjs');
4
+ var chunk3MZQ4MQX_cjs = require('./chunk-3MZQ4MQX.cjs');
5
5
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
6
6
  var resolve = require('@stryke/fs/resolve');
7
7
  var isFunction = require('@stryke/type-checks/is-function');
@@ -17,7 +17,7 @@ var PLUGIN_NON_HOOK_FIELDS = [
17
17
  ];
18
18
 
19
19
  // src/lib/contexts/environment-context.ts
20
- var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends chunkQOS4T645_cjs.PowerlinesContext {
20
+ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends chunk3MZQ4MQX_cjs.PowerlinesContext {
21
21
  static {
22
22
  chunkUSNT2KNT_cjs.__name(this, "PowerlinesEnvironmentContext");
23
23
  }
@@ -65,7 +65,7 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
65
65
  if (!result || isObject.isObject(result) && Object.keys(result).length === 0) {
66
66
  return;
67
67
  }
68
- resolvedPlugin = chunkQOS4T645_cjs.isPlugin(result) ? result : plugin;
68
+ resolvedPlugin = chunk3MZQ4MQX_cjs.isPlugin(result) ? result : plugin;
69
69
  }
70
70
  const context = chunkB3EE3VHZ_cjs.createPluginContext(resolvedPlugin, this);
71
71
  this.plugins.push({
@@ -75,28 +75,28 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
75
75
  this.#hooks = Object.keys(resolvedPlugin).filter((key) => !PLUGIN_NON_HOOK_FIELDS.includes(key)).reduce((ret, key) => {
76
76
  const hook = key;
77
77
  const pluginHook = resolvedPlugin[hook];
78
- if (!chunkQOS4T645_cjs.isPluginHook(pluginHook)) {
78
+ if (!chunk3MZQ4MQX_cjs.isPluginHook(pluginHook)) {
79
79
  return ret;
80
80
  }
81
- if (!chunkQOS4T645_cjs.isHookExternal(hook)) {
81
+ if (!chunk3MZQ4MQX_cjs.isHookExternal(hook)) {
82
82
  ret[hook] ??= {};
83
83
  if (resolvedPlugin.enforce) {
84
84
  ret[hook][`${resolvedPlugin.enforce}Enforced`] ??= [];
85
- chunkQOS4T645_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook][`${resolvedPlugin.enforce}Enforced`]);
85
+ chunk3MZQ4MQX_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook][`${resolvedPlugin.enforce}Enforced`]);
86
86
  return ret;
87
87
  }
88
88
  if (isFunction.isFunction(pluginHook) || !pluginHook.order) {
89
89
  ret[hook].normal ??= [];
90
- chunkQOS4T645_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook].normal);
90
+ chunk3MZQ4MQX_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook].normal);
91
91
  return ret;
92
92
  }
93
93
  ret[hook][`${pluginHook.order}Ordered`] ??= [];
94
- chunkQOS4T645_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook][`${pluginHook.order}Ordered`]);
94
+ chunk3MZQ4MQX_cjs.addPluginHook(context, resolvedPlugin, pluginHook, ret[hook][`${pluginHook.order}Ordered`]);
95
95
  } else {
96
96
  ret[hook] ??= [];
97
97
  ret[hook].push({
98
98
  plugin: resolvedPlugin,
99
- hook: chunkQOS4T645_cjs.getHookHandler(pluginHook).bind(context)
99
+ hook: chunk3MZQ4MQX_cjs.getHookHandler(pluginHook).bind(context)
100
100
  });
101
101
  }
102
102
  return ret;
@@ -108,7 +108,7 @@ var PowerlinesEnvironmentContext = class _PowerlinesEnvironmentContext extends c
108
108
  selectHooks(hook, options) {
109
109
  const handlers = [];
110
110
  if (this.hooks[hook]) {
111
- if (!chunkQOS4T645_cjs.isHookExternal(hook)) {
111
+ if (!chunk3MZQ4MQX_cjs.isHookExternal(hook)) {
112
112
  const hooks = this.hooks[hook];
113
113
  if (options?.order) {
114
114
  if (options?.order === "pre") {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkZTI2BIQ4_cjs = require('./chunk-ZTI2BIQ4.cjs');
4
- var chunkQOS4T645_cjs = require('./chunk-QOS4T645.cjs');
3
+ var chunkXLYMVIVD_cjs = require('./chunk-XLYMVIVD.cjs');
4
+ var chunk3MZQ4MQX_cjs = require('./chunk-3MZQ4MQX.cjs');
5
5
  var chunkK3NBD5LL_cjs = require('./chunk-K3NBD5LL.cjs');
6
6
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
7
7
  var types = require('@storm-software/config-tools/types');
@@ -64,7 +64,7 @@ function createDefaultEnvironment(userConfig) {
64
64
  chunkUSNT2KNT_cjs.__name(createDefaultEnvironment, "createDefaultEnvironment");
65
65
 
66
66
  // src/lib/contexts/api-context.ts
67
- var PowerlinesAPIContext = class _PowerlinesAPIContext extends chunkQOS4T645_cjs.PowerlinesContext {
67
+ var PowerlinesAPIContext = class _PowerlinesAPIContext extends chunk3MZQ4MQX_cjs.PowerlinesContext {
68
68
  static {
69
69
  chunkUSNT2KNT_cjs.__name(this, "PowerlinesAPIContext");
70
70
  }
@@ -127,7 +127,7 @@ var PowerlinesAPIContext = class _PowerlinesAPIContext extends chunkQOS4T645_cjs
127
127
  if (this.environments[environment.name]) {
128
128
  context = this.environments[environment.name];
129
129
  } else {
130
- context = await chunkZTI2BIQ4_cjs.PowerlinesEnvironmentContext.fromConfig(this.workspaceConfig, this.config);
130
+ context = await chunkXLYMVIVD_cjs.PowerlinesEnvironmentContext.fromConfig(this.workspaceConfig, this.config);
131
131
  }
132
132
  if (isSetObject.isSetObject(this.config.inlineConfig)) {
133
133
  await context.withInlineConfig(this.config.inlineConfig);
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var chunkFSV2WXHS_cjs = require('../chunk-FSV2WXHS.cjs');
4
- require('../chunk-ZTI2BIQ4.cjs');
3
+ var chunkYMHOAMCU_cjs = require('../chunk-YMHOAMCU.cjs');
4
+ require('../chunk-XLYMVIVD.cjs');
5
5
  require('../chunk-B3EE3VHZ.cjs');
6
- require('../chunk-QOS4T645.cjs');
6
+ require('../chunk-3MZQ4MQX.cjs');
7
7
  require('../chunk-7VJ42H2I.cjs');
8
8
  require('../chunk-GA3RXX4R.cjs');
9
9
  require('../chunk-SAS5EPBD.cjs');
@@ -16,5 +16,5 @@ require('../chunk-USNT2KNT.cjs');
16
16
 
17
17
  Object.defineProperty(exports, "PowerlinesAPIContext", {
18
18
  enumerable: true,
19
- get: function () { return chunkFSV2WXHS_cjs.PowerlinesAPIContext; }
19
+ get: function () { return chunkYMHOAMCU_cjs.PowerlinesAPIContext; }
20
20
  });
@@ -1,7 +1,7 @@
1
- export { PowerlinesAPIContext } from '../chunk-HQ7626MD.js';
2
- import '../chunk-B6MVU5AR.js';
1
+ export { PowerlinesAPIContext } from '../chunk-UGVHYKKN.js';
2
+ import '../chunk-SYF7QG2J.js';
3
3
  import '../chunk-KFJCWNVG.js';
4
- import '../chunk-JFHYBGFE.js';
4
+ import '../chunk-5JAFU45Z.js';
5
5
  import '../chunk-FQLZZYYO.js';
6
6
  import '../chunk-ZGMEHSNN.js';
7
7
  import '../chunk-YQ3ODCHV.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQOS4T645_cjs = require('../chunk-QOS4T645.cjs');
3
+ var chunk3MZQ4MQX_cjs = require('../chunk-3MZQ4MQX.cjs');
4
4
  require('../chunk-7VJ42H2I.cjs');
5
5
  require('../chunk-GA3RXX4R.cjs');
6
6
  require('../chunk-SAS5EPBD.cjs');
@@ -13,5 +13,5 @@ require('../chunk-USNT2KNT.cjs');
13
13
 
14
14
  Object.defineProperty(exports, "PowerlinesContext", {
15
15
  enumerable: true,
16
- get: function () { return chunkQOS4T645_cjs.PowerlinesContext; }
16
+ get: function () { return chunk3MZQ4MQX_cjs.PowerlinesContext; }
17
17
  });
@@ -1,4 +1,4 @@
1
- export { PowerlinesContext } from '../chunk-JFHYBGFE.js';
1
+ export { PowerlinesContext } from '../chunk-5JAFU45Z.js';
2
2
  import '../chunk-FQLZZYYO.js';
3
3
  import '../chunk-ZGMEHSNN.js';
4
4
  import '../chunk-YQ3ODCHV.js';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var chunkZTI2BIQ4_cjs = require('../chunk-ZTI2BIQ4.cjs');
3
+ var chunkXLYMVIVD_cjs = require('../chunk-XLYMVIVD.cjs');
4
4
  require('../chunk-B3EE3VHZ.cjs');
5
- require('../chunk-QOS4T645.cjs');
5
+ require('../chunk-3MZQ4MQX.cjs');
6
6
  require('../chunk-7VJ42H2I.cjs');
7
7
  require('../chunk-GA3RXX4R.cjs');
8
8
  require('../chunk-SAS5EPBD.cjs');
@@ -15,5 +15,5 @@ require('../chunk-USNT2KNT.cjs');
15
15
 
16
16
  Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
17
17
  enumerable: true,
18
- get: function () { return chunkZTI2BIQ4_cjs.PowerlinesEnvironmentContext; }
18
+ get: function () { return chunkXLYMVIVD_cjs.PowerlinesEnvironmentContext; }
19
19
  });
@@ -1,6 +1,6 @@
1
- export { PowerlinesEnvironmentContext } from '../chunk-B6MVU5AR.js';
1
+ export { PowerlinesEnvironmentContext } from '../chunk-SYF7QG2J.js';
2
2
  import '../chunk-KFJCWNVG.js';
3
- import '../chunk-JFHYBGFE.js';
3
+ import '../chunk-5JAFU45Z.js';
4
4
  import '../chunk-FQLZZYYO.js';
5
5
  import '../chunk-ZGMEHSNN.js';
6
6
  import '../chunk-YQ3ODCHV.js';
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  require('../chunk-35FGUJFD.cjs');
4
- var chunkFSV2WXHS_cjs = require('../chunk-FSV2WXHS.cjs');
5
- var chunkZTI2BIQ4_cjs = require('../chunk-ZTI2BIQ4.cjs');
4
+ var chunkYMHOAMCU_cjs = require('../chunk-YMHOAMCU.cjs');
5
+ var chunkXLYMVIVD_cjs = require('../chunk-XLYMVIVD.cjs');
6
6
  var chunkB3EE3VHZ_cjs = require('../chunk-B3EE3VHZ.cjs');
7
- var chunkQOS4T645_cjs = require('../chunk-QOS4T645.cjs');
7
+ var chunk3MZQ4MQX_cjs = require('../chunk-3MZQ4MQX.cjs');
8
8
  require('../chunk-7VJ42H2I.cjs');
9
9
  require('../chunk-GA3RXX4R.cjs');
10
10
  require('../chunk-SAS5EPBD.cjs');
@@ -17,11 +17,11 @@ require('../chunk-USNT2KNT.cjs');
17
17
 
18
18
  Object.defineProperty(exports, "PowerlinesAPIContext", {
19
19
  enumerable: true,
20
- get: function () { return chunkFSV2WXHS_cjs.PowerlinesAPIContext; }
20
+ get: function () { return chunkYMHOAMCU_cjs.PowerlinesAPIContext; }
21
21
  });
22
22
  Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
23
23
  enumerable: true,
24
- get: function () { return chunkZTI2BIQ4_cjs.PowerlinesEnvironmentContext; }
24
+ get: function () { return chunkXLYMVIVD_cjs.PowerlinesEnvironmentContext; }
25
25
  });
26
26
  Object.defineProperty(exports, "createPluginContext", {
27
27
  enumerable: true,
@@ -29,5 +29,5 @@ Object.defineProperty(exports, "createPluginContext", {
29
29
  });
30
30
  Object.defineProperty(exports, "PowerlinesContext", {
31
31
  enumerable: true,
32
- get: function () { return chunkQOS4T645_cjs.PowerlinesContext; }
32
+ get: function () { return chunk3MZQ4MQX_cjs.PowerlinesContext; }
33
33
  });
@@ -1,8 +1,8 @@
1
1
  import '../chunk-NYNHNTHT.js';
2
- export { PowerlinesAPIContext } from '../chunk-HQ7626MD.js';
3
- export { PowerlinesEnvironmentContext } from '../chunk-B6MVU5AR.js';
2
+ export { PowerlinesAPIContext } from '../chunk-UGVHYKKN.js';
3
+ export { PowerlinesEnvironmentContext } from '../chunk-SYF7QG2J.js';
4
4
  export { createPluginContext } from '../chunk-KFJCWNVG.js';
5
- export { PowerlinesContext } from '../chunk-JFHYBGFE.js';
5
+ export { PowerlinesContext } from '../chunk-5JAFU45Z.js';
6
6
  import '../chunk-FQLZZYYO.js';
7
7
  import '../chunk-ZGMEHSNN.js';
8
8
  import '../chunk-YQ3ODCHV.js';
@@ -5,7 +5,7 @@ var chunkDUZJ7ZF2_cjs = require('./chunk-DUZJ7ZF2.cjs');
5
5
  var chunkJG4IL7XL_cjs = require('./chunk-JG4IL7XL.cjs');
6
6
  var chunkVQ7CXQLT_cjs = require('./chunk-VQ7CXQLT.cjs');
7
7
  require('./chunk-VVSEE3JE.cjs');
8
- var chunkSJCNXDNU_cjs = require('./chunk-SJCNXDNU.cjs');
8
+ var chunkOA7OL7HF_cjs = require('./chunk-OA7OL7HF.cjs');
9
9
  var chunk2NZADVP5_cjs = require('./chunk-2NZADVP5.cjs');
10
10
  var chunkEV357RFB_cjs = require('./chunk-EV357RFB.cjs');
11
11
  var chunkDX2VAXZB_cjs = require('./chunk-DX2VAXZB.cjs');
@@ -16,10 +16,10 @@ require('./chunk-35FGUJFD.cjs');
16
16
  require('./chunk-MVIKYHBX.cjs');
17
17
  var chunkH7A5QVLY_cjs = require('./chunk-H7A5QVLY.cjs');
18
18
  var chunkWUYK74EH_cjs = require('./chunk-WUYK74EH.cjs');
19
- var chunkFSV2WXHS_cjs = require('./chunk-FSV2WXHS.cjs');
20
- var chunkZTI2BIQ4_cjs = require('./chunk-ZTI2BIQ4.cjs');
19
+ var chunkYMHOAMCU_cjs = require('./chunk-YMHOAMCU.cjs');
20
+ var chunkXLYMVIVD_cjs = require('./chunk-XLYMVIVD.cjs');
21
21
  var chunkB3EE3VHZ_cjs = require('./chunk-B3EE3VHZ.cjs');
22
- var chunkQOS4T645_cjs = require('./chunk-QOS4T645.cjs');
22
+ var chunk3MZQ4MQX_cjs = require('./chunk-3MZQ4MQX.cjs');
23
23
  var chunk7VJ42H2I_cjs = require('./chunk-7VJ42H2I.cjs');
24
24
  var chunkGA3RXX4R_cjs = require('./chunk-GA3RXX4R.cjs');
25
25
  var chunkSAS5EPBD_cjs = require('./chunk-SAS5EPBD.cjs');
@@ -50,7 +50,7 @@ Object.defineProperty(exports, "createWorker", {
50
50
  });
51
51
  Object.defineProperty(exports, "createUnpluginFactory", {
52
52
  enumerable: true,
53
- get: function () { return chunkSJCNXDNU_cjs.createUnpluginFactory; }
53
+ get: function () { return chunkOA7OL7HF_cjs.createUnpluginFactory; }
54
54
  });
55
55
  Object.defineProperty(exports, "writeFile", {
56
56
  enumerable: true,
@@ -110,11 +110,11 @@ Object.defineProperty(exports, "loadLibFiles", {
110
110
  });
111
111
  Object.defineProperty(exports, "PowerlinesAPIContext", {
112
112
  enumerable: true,
113
- get: function () { return chunkFSV2WXHS_cjs.PowerlinesAPIContext; }
113
+ get: function () { return chunkYMHOAMCU_cjs.PowerlinesAPIContext; }
114
114
  });
115
115
  Object.defineProperty(exports, "PowerlinesEnvironmentContext", {
116
116
  enumerable: true,
117
- get: function () { return chunkZTI2BIQ4_cjs.PowerlinesEnvironmentContext; }
117
+ get: function () { return chunkXLYMVIVD_cjs.PowerlinesEnvironmentContext; }
118
118
  });
119
119
  Object.defineProperty(exports, "createPluginContext", {
120
120
  enumerable: true,
@@ -122,11 +122,11 @@ Object.defineProperty(exports, "createPluginContext", {
122
122
  });
123
123
  Object.defineProperty(exports, "PowerlinesContext", {
124
124
  enumerable: true,
125
- get: function () { return chunkQOS4T645_cjs.PowerlinesContext; }
125
+ get: function () { return chunk3MZQ4MQX_cjs.PowerlinesContext; }
126
126
  });
127
127
  Object.defineProperty(exports, "VirtualFileSystem", {
128
128
  enumerable: true,
129
- get: function () { return chunkQOS4T645_cjs.VirtualFileSystem; }
129
+ get: function () { return chunk3MZQ4MQX_cjs.VirtualFileSystem; }
130
130
  });
131
131
  Object.defineProperty(exports, "CACHE_HASH_LENGTH", {
132
132
  enumerable: true,
package/dist/lib/index.js CHANGED
@@ -3,7 +3,7 @@ export { resolve } from './chunk-A2NFSQ5K.js';
3
3
  export { generateSourceMap } from './chunk-NST5TNW6.js';
4
4
  export { Worker, createWorker } from './chunk-EQKS6CLU.js';
5
5
  import './chunk-H5JWMXTZ.js';
6
- export { createUnpluginFactory } from './chunk-IRIEW3X6.js';
6
+ export { createUnpluginFactory } from './chunk-T2KQZC5K.js';
7
7
  export { writeFile } from './chunk-TANQDHYY.js';
8
8
  export { createUnplugin } from './chunk-6I5PL7H2.js';
9
9
  export { combineContexts } from './chunk-32Q2PG5D.js';
@@ -14,10 +14,10 @@ import './chunk-NYNHNTHT.js';
14
14
  import './chunk-FFT4PWRM.js';
15
15
  export { isolatedDeclarations } from './chunk-NDYKRNPQ.js';
16
16
  export { SourcesMap, createVirtualCompilerHost, createVirtualProgram, getDefaultCompilerOptions, loadLibFiles } from './chunk-HAXL7QE7.js';
17
- export { PowerlinesAPIContext } from './chunk-HQ7626MD.js';
18
- export { PowerlinesEnvironmentContext } from './chunk-B6MVU5AR.js';
17
+ export { PowerlinesAPIContext } from './chunk-UGVHYKKN.js';
18
+ export { PowerlinesEnvironmentContext } from './chunk-SYF7QG2J.js';
19
19
  export { createPluginContext } from './chunk-KFJCWNVG.js';
20
- export { PowerlinesContext, VirtualFileSystem } from './chunk-JFHYBGFE.js';
20
+ export { PowerlinesContext, VirtualFileSystem } from './chunk-5JAFU45Z.js';
21
21
  export { CACHE_HASH_LENGTH, PROJECT_ROOT_HASH_LENGTH, discoverTemplates, getPersistedMeta, getPrefixedProjectRootHash, writeMetaFile } from './chunk-FQLZZYYO.js';
22
22
  export { findIncludeMatch, findMatch, getParsedTypeScriptConfig, getTsconfigFilePath, isIncludeMatchFound, isMatchFound, tryTsconfigFilePath } from './chunk-ZGMEHSNN.js';
23
23
  export { createProgram } from './chunk-YQ3ODCHV.js';
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkSJCNXDNU_cjs = require('../chunk-SJCNXDNU.cjs');
3
+ var chunkOA7OL7HF_cjs = require('../chunk-OA7OL7HF.cjs');
4
4
  require('../chunk-2NZADVP5.cjs');
5
5
  require('../chunk-4NHFXDTQ.cjs');
6
- require('../chunk-FSV2WXHS.cjs');
7
- require('../chunk-ZTI2BIQ4.cjs');
6
+ require('../chunk-YMHOAMCU.cjs');
7
+ require('../chunk-XLYMVIVD.cjs');
8
8
  require('../chunk-B3EE3VHZ.cjs');
9
- require('../chunk-QOS4T645.cjs');
9
+ require('../chunk-3MZQ4MQX.cjs');
10
10
  require('../chunk-7VJ42H2I.cjs');
11
11
  require('../chunk-GA3RXX4R.cjs');
12
12
  require('../chunk-SAS5EPBD.cjs');
@@ -20,5 +20,5 @@ require('../chunk-USNT2KNT.cjs');
20
20
 
21
21
  Object.defineProperty(exports, "createUnpluginFactory", {
22
22
  enumerable: true,
23
- get: function () { return chunkSJCNXDNU_cjs.createUnpluginFactory; }
23
+ get: function () { return chunkOA7OL7HF_cjs.createUnpluginFactory; }
24
24
  });
@@ -1,10 +1,10 @@
1
- export { createUnpluginFactory } from '../chunk-IRIEW3X6.js';
1
+ export { createUnpluginFactory } from '../chunk-T2KQZC5K.js';
2
2
  import '../chunk-TANQDHYY.js';
3
3
  import '../chunk-GANVMM73.js';
4
- import '../chunk-HQ7626MD.js';
5
- import '../chunk-B6MVU5AR.js';
4
+ import '../chunk-UGVHYKKN.js';
5
+ import '../chunk-SYF7QG2J.js';
6
6
  import '../chunk-KFJCWNVG.js';
7
- import '../chunk-JFHYBGFE.js';
7
+ import '../chunk-5JAFU45Z.js';
8
8
  import '../chunk-FQLZZYYO.js';
9
9
  import '../chunk-ZGMEHSNN.js';
10
10
  import '../chunk-YQ3ODCHV.js';