@nu-art/build-and-install 0.400.2 → 0.400.4

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 (98) hide show
  1. package/build-and-install-v3.js +1 -2
  2. package/build-and-install.js +0 -1
  3. package/core/consts.js +0 -1
  4. package/core/exceptions/PhaseAggregatedException.js +0 -1
  5. package/core/package/consts.js +0 -1
  6. package/core/params/params.d.ts +3 -2
  7. package/core/params/params.js +18 -9
  8. package/core/types/configs/firebasejson.js +0 -1
  9. package/core/types/configs/firebaserc.js +0 -1
  10. package/core/types/configs/index.js +0 -1
  11. package/core/types/configs/package-json.js +0 -1
  12. package/core/types/core.js +0 -1
  13. package/core/types/index.js +0 -1
  14. package/core/types/package/index.js +0 -1
  15. package/core/types/package/package.js +0 -1
  16. package/core/types/package/runtime-package.js +0 -1
  17. package/core/types/project-config.js +0 -1
  18. package/defaults/consts.js +0 -1
  19. package/old/PhaseRunnerDispatcher.js +0 -1
  20. package/old/runner-dispatchers.js +0 -1
  21. package/package.json +3 -3
  22. package/v3/PhaseManager.js +0 -1
  23. package/v3/RunningStatusHandler.js +0 -1
  24. package/v3/UnitsDependencyMapper/UnitsDependencyMapper.js +1 -2
  25. package/v3/UnitsMapper/UnitsMapper.js +0 -1
  26. package/v3/UnitsMapper/resolvers/UnitMapper_Base.js +0 -1
  27. package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseFunction.js +0 -1
  28. package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseHosting.js +0 -1
  29. package/v3/UnitsMapper/resolvers/UnitMapper_Node.js +1 -2
  30. package/v3/UnitsMapper/resolvers/UnitMapper_NodeLib.js +0 -1
  31. package/v3/UnitsMapper/resolvers/UnitMapper_NodeProject.js +0 -1
  32. package/v3/UnitsMapper/resolvers/index.js +0 -1
  33. package/v3/UnitsMapper/types.js +0 -1
  34. package/v3/core/FilesCache.js +0 -1
  35. package/v3/core/Unit_HelpPrinter.d.ts +1 -1
  36. package/v3/core/Unit_HelpPrinter.js +0 -1
  37. package/v3/core/types.js +0 -1
  38. package/v3/phase/consts.d.ts +3 -3
  39. package/v3/phase/consts.js +8 -9
  40. package/v3/phase/index.js +0 -1
  41. package/v3/phase/types.js +0 -1
  42. package/v3/units/BaseUnit.js +0 -1
  43. package/v3/units/ProjectUnit.js +0 -1
  44. package/v3/units/Unit_NodeProject.js +1 -2
  45. package/v3/units/Unit_PackageJson.js +1 -2
  46. package/v3/units/Unit_TypescriptLib.d.ts +3 -3
  47. package/v3/units/Unit_TypescriptLib.js +146 -22
  48. package/v3/units/firebase/Unit_FirebaseFunctionsApp.js +1 -2
  49. package/v3/units/firebase/Unit_FirebaseHostingApp.js +0 -1
  50. package/v3/units/index.js +0 -1
  51. package/build-and-install-v3.js.map +0 -1
  52. package/build-and-install.js.map +0 -1
  53. package/core/consts.js.map +0 -1
  54. package/core/exceptions/PhaseAggregatedException.js.map +0 -1
  55. package/core/package/consts.js.map +0 -1
  56. package/core/params/params.js.map +0 -1
  57. package/core/types/configs/firebasejson.js.map +0 -1
  58. package/core/types/configs/firebaserc.js.map +0 -1
  59. package/core/types/configs/index.js.map +0 -1
  60. package/core/types/configs/package-json.js.map +0 -1
  61. package/core/types/core.js.map +0 -1
  62. package/core/types/index.js.map +0 -1
  63. package/core/types/package/index.js.map +0 -1
  64. package/core/types/package/package.js.map +0 -1
  65. package/core/types/package/runtime-package.js.map +0 -1
  66. package/core/types/project-config.js.map +0 -1
  67. package/defaults/consts.js.map +0 -1
  68. package/old/PhaseRunnerDispatcher.js.map +0 -1
  69. package/old/runner-dispatchers.js.map +0 -1
  70. package/v3/PhaseManager.js.map +0 -1
  71. package/v3/RunningStatusHandler.js.map +0 -1
  72. package/v3/UnitsDependencyMapper/UnitsDependencyMapper.js.map +0 -1
  73. package/v3/UnitsMapper/UnitsMapper.js.map +0 -1
  74. package/v3/UnitsMapper/resolvers/UnitMapper_Base.js.map +0 -1
  75. package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseFunction.js.map +0 -1
  76. package/v3/UnitsMapper/resolvers/UnitMapper_FirebaseHosting.js.map +0 -1
  77. package/v3/UnitsMapper/resolvers/UnitMapper_Node.js.map +0 -1
  78. package/v3/UnitsMapper/resolvers/UnitMapper_NodeLib.js.map +0 -1
  79. package/v3/UnitsMapper/resolvers/UnitMapper_NodeProject.js.map +0 -1
  80. package/v3/UnitsMapper/resolvers/index.js.map +0 -1
  81. package/v3/UnitsMapper/types.js.map +0 -1
  82. package/v3/core/FileSystemUtils.d.ts +0 -34
  83. package/v3/core/FileSystemUtils.js +0 -152
  84. package/v3/core/FileSystemUtils.js.map +0 -1
  85. package/v3/core/FilesCache.js.map +0 -1
  86. package/v3/core/Unit_HelpPrinter.js.map +0 -1
  87. package/v3/core/types.js.map +0 -1
  88. package/v3/phase/consts.js.map +0 -1
  89. package/v3/phase/index.js.map +0 -1
  90. package/v3/phase/types.js.map +0 -1
  91. package/v3/units/BaseUnit.js.map +0 -1
  92. package/v3/units/ProjectUnit.js.map +0 -1
  93. package/v3/units/Unit_NodeProject.js.map +0 -1
  94. package/v3/units/Unit_PackageJson.js.map +0 -1
  95. package/v3/units/Unit_TypescriptLib.js.map +0 -1
  96. package/v3/units/firebase/Unit_FirebaseFunctionsApp.js.map +0 -1
  97. package/v3/units/firebase/Unit_FirebaseHostingApp.js.map +0 -1
  98. package/v3/units/index.js.map +0 -1
@@ -9,10 +9,10 @@ import { PhaseManager } from './v3/PhaseManager.js';
9
9
  import { Unit_NodeProject } from './v3/units/index.js';
10
10
  import { resolve } from 'path';
11
11
  import { CONST_BaiConfig, CONST_NodeModules } from './core/consts.js';
12
- import { FileSystemUtils } from './v3/core/FileSystemUtils.js';
13
12
  import { UnitMapper_FirebaseFunction, UnitMapper_FirebaseHosting, UnitMapper_NodeLib, UnitMapper_NodeProject } from './v3/UnitsMapper/resolvers/index.js';
14
13
  import { CLIParamsResolver } from '@nu-art/commando/cli-params/CLIParamsResolver';
15
14
  import { RunningStatusHandler } from './v3/RunningStatusHandler.js';
15
+ import { FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
16
16
  export const DefaultPhases = [
17
17
  ...phases_Build,
18
18
  ...phases_Launch,
@@ -129,4 +129,3 @@ export class BuildAndInstall extends Logger {
129
129
  this.logInfo('---------------------------------- Process Completed successfully ----------------------------------');
130
130
  }
131
131
  }
132
- //# sourceMappingURL=build-and-install-v3.js.map
@@ -15,4 +15,3 @@ import { BuildAndInstall } from './build-and-install-v3.js';
15
15
  // return process.exit(1);
16
16
  // });
17
17
  // });
18
- //# sourceMappingURL=build-and-install.js.map
package/core/consts.js CHANGED
@@ -9,4 +9,3 @@ export const CONST_TS_CONFIG = 'tsconfig.json';
9
9
  export const CONST_PNPM_WORKSPACE = 'pnpm-workspace.yaml';
10
10
  export const CONST_PNPM_LOCK = 'pnpm-lock.yaml';
11
11
  export const MemKey_Packages = new MemKey('bai-packages', true);
12
- //# sourceMappingURL=consts.js.map
@@ -6,4 +6,3 @@ export class PhaseAggregatedException extends CustomException {
6
6
  this.cause = errors;
7
7
  }
8
8
  }
9
- //# sourceMappingURL=PhaseAggregatedException.js.map
@@ -38,4 +38,3 @@ export const Default_FirebaseProjectConfig = {
38
38
  },
39
39
  hosting: Default_HostingConfig
40
40
  };
41
- //# sourceMappingURL=consts.js.map
@@ -32,8 +32,9 @@ export declare const BaiParam_Verbose: BaseCliParam<'verbose', boolean>;
32
32
  export declare const BaiParam_QuickDeploy: BaseCliParam<'quickDeploy', boolean>;
33
33
  type PromoteType = 'patch' | 'minor' | 'major';
34
34
  export declare const BaiParam_Publish: BaseCliParam<'publish', PromoteType>;
35
- export declare const BaiParam_PublishDryRun: BaseCliParam<'publishDryRun', boolean>;
36
35
  export declare const BaiParam_UsePackage: BaseCliParam<'usePackage', string[]>;
37
- export declare const AllBaiParams: (BaseCliParam<"allUnits", boolean> | BaseCliParam<"dependencyTree", boolean> | BaseCliParam<"checkCyclicImports", boolean> | BaseCliParam<"continue", boolean> | BaseCliParam<"environment", string> | BaseCliParam<"setup", boolean> | BaseCliParam<"install", boolean> | BaseCliParam<"clean", boolean> | BaseCliParam<"purge", boolean> | BaseCliParam<"generate", boolean> | BaseCliParam<"generateDocs", boolean> | BaseCliParam<"noBuild", boolean> | BaseCliParam<"prepare", boolean> | BaseCliParam<"dryRun", boolean> | BaseCliParam<"lint", boolean> | BaseCliParam<"watch", boolean> | BaseCliParam<"watchBuildTree", boolean> | BaseCliParam<"test", boolean> | BaseCliParam<"testType", string[]> | BaseCliParam<"testFiles", string[]> | BaseCliParam<"testCases", string[]> | BaseCliParam<"testDebugPort", number> | BaseCliParam<"launch", boolean> | BaseCliParam<"debugBackend", boolean> | BaseCliParam<"deploy", string> | BaseCliParam<"debug", boolean> | BaseCliParam<"debugLifecycle", boolean> | BaseCliParam<"verbose", boolean> | BaseCliParam<"publish", PromoteType> | BaseCliParam<"publishDryRun", boolean> | BaseCliParam<"usePackage", string[]>)[];
36
+ export declare const BaiParam_ToESM: BaseCliParam<'toESM', boolean>;
37
+ export declare const BaiParam_Simulate: BaseCliParam<'simulation', boolean>;
38
+ export declare const AllBaiParams: (BaseCliParam<"allUnits", boolean> | BaseCliParam<"dependencyTree", boolean> | BaseCliParam<"checkCyclicImports", boolean> | BaseCliParam<"continue", boolean> | BaseCliParam<"environment", string> | BaseCliParam<"setup", boolean> | BaseCliParam<"install", boolean> | BaseCliParam<"clean", boolean> | BaseCliParam<"purge", boolean> | BaseCliParam<"generate", boolean> | BaseCliParam<"generateDocs", boolean> | BaseCliParam<"noBuild", boolean> | BaseCliParam<"prepare", boolean> | BaseCliParam<"dryRun", boolean> | BaseCliParam<"lint", boolean> | BaseCliParam<"watch", boolean> | BaseCliParam<"watchBuildTree", boolean> | BaseCliParam<"test", boolean> | BaseCliParam<"testType", string[]> | BaseCliParam<"testFiles", string[]> | BaseCliParam<"testCases", string[]> | BaseCliParam<"testDebugPort", number> | BaseCliParam<"launch", boolean> | BaseCliParam<"debugBackend", boolean> | BaseCliParam<"deploy", string> | BaseCliParam<"debug", boolean> | BaseCliParam<"debugLifecycle", boolean> | BaseCliParam<"verbose", boolean> | BaseCliParam<"publish", PromoteType> | BaseCliParam<"usePackage", string[]> | BaseCliParam<"toESM", boolean> | BaseCliParam<"simulation", boolean>)[];
38
39
  export type BaiParams = CliParams<typeof AllBaiParams>;
39
40
  export {};
@@ -226,13 +226,6 @@ export const BaiParam_Publish = {
226
226
  description: 'Will publish to NPM any package that is not marked as private in its __package.json \nenum options: patch | minor | major \nDefault Param: patch',
227
227
  process: (part) => part ?? 'patch'
228
228
  };
229
- export const BaiParam_PublishDryRun = {
230
- keys: ['--publish-dry-run'],
231
- keyName: 'publishDryRun',
232
- type: 'boolean',
233
- group: 'Other',
234
- description: 'Will pack and prepare a package for publish, but will NOT publish to NPM any package',
235
- };
236
229
  export const BaiParam_UsePackage = {
237
230
  keys: ['-up', '--use-packages'],
238
231
  keyName: 'usePackage',
@@ -246,6 +239,22 @@ export const BaiParam_UsePackage = {
246
239
  },
247
240
  dependencies: [{ param: BaiParam_AllUnits, value: true }]
248
241
  };
242
+ export const BaiParam_ToESM = {
243
+ keys: ['-tesm', '--to-esm'],
244
+ keyName: 'toESM',
245
+ type: 'boolean',
246
+ group: 'Other',
247
+ description: 'Will migrate existing CJS code to ESM',
248
+ dependencies: [{ param: BaiParam_AllUnits, value: true }]
249
+ };
250
+ export const BaiParam_Simulate = {
251
+ keys: ['--simulate', '-sim'],
252
+ keyName: 'simulation',
253
+ type: 'boolean',
254
+ group: 'Other',
255
+ description: 'In combination with other params, will not perform the outbound operation, but instead simulate it',
256
+ dependencies: [{ param: BaiParam_AllUnits, value: true }]
257
+ };
249
258
  export const AllBaiParams = [
250
259
  BaiParam_AllUnits,
251
260
  BaiParam_DependencyTree,
@@ -274,9 +283,9 @@ export const AllBaiParams = [
274
283
  BaiParam_DebugBackend,
275
284
  BaiParam_Debug,
276
285
  BaiParam_Verbose,
277
- BaiParam_PublishDryRun,
278
286
  BaiParam_Publish,
279
287
  BaiParam_UsePackage,
288
+ BaiParam_ToESM,
289
+ BaiParam_Simulate,
280
290
  BaiParam_DebugLifecycle
281
291
  ];
282
- //# sourceMappingURL=params.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=firebasejson.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=firebaserc.js.map
@@ -1,4 +1,3 @@
1
1
  export * from './firebasejson.js';
2
2
  export * from './firebaserc.js';
3
3
  export * from './package-json.js';
4
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=package-json.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=core.js.map
@@ -2,4 +2,3 @@ export * from './core.js';
2
2
  export * from './configs/index.js';
3
3
  export * from './package/index.js';
4
4
  export * from './project-config.js';
5
- //# sourceMappingURL=index.js.map
@@ -1,3 +1,2 @@
1
1
  export * from './package.js';
2
2
  export * from './runtime-package.js';
3
- //# sourceMappingURL=index.js.map
@@ -12,4 +12,3 @@ export const PackageTypes = [PackageType_InfraLib,
12
12
  PackageType_Sourceless,
13
13
  PackageType_Python];
14
14
  export const PackageTypesWithOutput = [PackageType_InfraLib, PackageType_ProjectLib, PackageType_FirebaseHostingApp, PackageType_FirebaseFunctionsApp];
15
- //# sourceMappingURL=package.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=runtime-package.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=project-config.js.map
@@ -34,4 +34,3 @@ export const Default_OutputFiles = {
34
34
  outputLogs: `${Default_OutputPath}/logs`,
35
35
  runningStatus: `${Default_OutputPath}/running-status.json`
36
36
  };
37
- //# sourceMappingURL=consts.js.map
@@ -30,4 +30,3 @@ export class PhaseRunnerDispatcher {
30
30
  export const dispatcher_PhaseChange = new PhaseRunnerDispatcher('__onPhaseChange');
31
31
  export const dispatcher_UnitStatusChange = new PhaseRunnerDispatcher('__onUnitStatusChange');
32
32
  export const dispatcher_UnitChange = new PhaseRunnerDispatcher('__onUnitsChange');
33
- //# sourceMappingURL=PhaseRunnerDispatcher.js.map
@@ -1,4 +1,3 @@
1
1
  import { PhaseRunnerDispatcher } from './PhaseRunnerDispatcher.js';
2
2
  export const dispatcher_WatchReady = new PhaseRunnerDispatcher('__onWatchReady');
3
3
  export const dispatcher_UnitWatchCompile = new PhaseRunnerDispatcher('__onUnitWatchCompiled');
4
- //# sourceMappingURL=runner-dispatchers.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nu-art/build-and-install",
3
- "version": "0.400.2",
3
+ "version": "0.400.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "dependencies": {
33
33
  "chokidar": "^3.6.0",
34
- "@nu-art/ts-common": "0.400.2",
35
- "@nu-art/commando": "0.400.2"
34
+ "@nu-art/ts-common": "0.400.4",
35
+ "@nu-art/commando": "0.400.4"
36
36
  },
37
37
  "unitConfig": {
38
38
  "type": "typescript-lib"
@@ -141,4 +141,3 @@ export class PhaseManager extends Logger {
141
141
  };
142
142
  }
143
143
  }
144
- //# sourceMappingURL=PhaseManager.js.map
@@ -54,4 +54,3 @@ export class RunningStatusHandler extends Logger {
54
54
  }
55
55
  }
56
56
  }
57
- //# sourceMappingURL=RunningStatusHandler.js.map
@@ -1,5 +1,5 @@
1
1
  import { __stringify, _keys, _values, BadImplementationException, DateTimeFormat_yyyyMMDDTHHmmss, deepClone, Logger, reduceObject, sortArray } from '@nu-art/ts-common';
2
- import { FileSystemUtils } from '../core/FileSystemUtils.js';
2
+ import { FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
3
3
  import { resolve } from 'path';
4
4
  /**
5
5
  * Maps unit dependencies and provides tools to analyze and operate on the dependency graph.
@@ -284,4 +284,3 @@ export class UnitsDependencyMapper extends Logger {
284
284
  return _values(this.map).filter(node => node.dependsOn.length === 0).map(node => node.key).sort();
285
285
  }
286
286
  }
287
- //# sourceMappingURL=UnitsDependencyMapper.js.map
@@ -57,4 +57,3 @@ export class UnitsMapper extends Logger {
57
57
  }
58
58
  }
59
59
  }
60
- //# sourceMappingURL=UnitsMapper.js.map
@@ -14,4 +14,3 @@ export class UnitMapper_Base extends Logger {
14
14
  this.baiConfig = config;
15
15
  }
16
16
  }
17
- //# sourceMappingURL=UnitMapper_Base.js.map
@@ -53,4 +53,3 @@ export class UnitMapper_FirebaseFunction_Class extends UnitMapper_Node {
53
53
  }
54
54
  }
55
55
  export const UnitMapper_FirebaseFunction = new UnitMapper_FirebaseFunction_Class();
56
- //# sourceMappingURL=UnitMapper_FirebaseFunction.js.map
@@ -46,4 +46,3 @@ export class UnitMapper_FirebaseHosting_Class extends UnitMapper_Node {
46
46
  }
47
47
  }
48
48
  export const UnitMapper_FirebaseHosting = new UnitMapper_FirebaseHosting_Class();
49
- //# sourceMappingURL=UnitMapper_FirebaseHosting.js.map
@@ -1,7 +1,7 @@
1
1
  import { _keys, deepClone, tsValidate, tsValidateBoolean, tsValidateOptionalAnyString, tsValidateResult } from '@nu-art/ts-common';
2
2
  import { FilesCache } from '../../core/FilesCache.js';
3
3
  import { UnitMapper_Base } from './UnitMapper_Base.js';
4
- import { FileSystemUtils } from '../../core/FileSystemUtils.js';
4
+ import { FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
5
5
  export class UnitMapper_Node extends UnitMapper_Base {
6
6
  static invalidPaths = [];
7
7
  static tsValidator_Node = {
@@ -56,4 +56,3 @@ export class UnitMapper_Node extends UnitMapper_Base {
56
56
  return this.resolveNodeUnit({ path, root, packageJson, baseConfig, customESLintConfig, customTSConfig });
57
57
  }
58
58
  }
59
- //# sourceMappingURL=UnitMapper_Node.js.map
@@ -26,4 +26,3 @@ export class UnitMapper_NodeLib_Class extends UnitMapper_Node {
26
26
  }
27
27
  }
28
28
  export const UnitMapper_NodeLib = new UnitMapper_NodeLib_Class();
29
- //# sourceMappingURL=UnitMapper_NodeLib.js.map
@@ -20,4 +20,3 @@ export class UnitMapper_NodeProject_Class extends UnitMapper_Node {
20
20
  }
21
21
  }
22
22
  export const UnitMapper_NodeProject = new UnitMapper_NodeProject_Class();
23
- //# sourceMappingURL=UnitMapper_NodeProject.js.map
@@ -2,4 +2,3 @@ export * from './UnitMapper_NodeLib.js';
2
2
  export * from './UnitMapper_NodeProject.js';
3
3
  export * from './UnitMapper_FirebaseFunction.js';
4
4
  export * from './UnitMapper_FirebaseHosting.js';
5
- //# sourceMappingURL=index.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
@@ -31,4 +31,3 @@ export const FilesCache = {
31
31
  }
32
32
  }
33
33
  };
34
- //# sourceMappingURL=FilesCache.js.map
@@ -3,7 +3,7 @@ import { UnitPhaseImplementor } from './types.js';
3
3
  import { Phase } from '../phase/index.js';
4
4
  import { ProjectUnit } from '../units/index.js';
5
5
  export declare const BaiParam_Help: BaseCliParam<'help', boolean>;
6
- declare const AllBaiParams_Help: (BaseCliParam<"allUnits", boolean> | BaseCliParam<"dependencyTree", boolean> | BaseCliParam<"checkCyclicImports", boolean> | BaseCliParam<"continue", boolean> | BaseCliParam<"environment", string> | BaseCliParam<"setup", boolean> | BaseCliParam<"install", boolean> | BaseCliParam<"clean", boolean> | BaseCliParam<"purge", boolean> | BaseCliParam<"generate", boolean> | BaseCliParam<"generateDocs", boolean> | BaseCliParam<"noBuild", boolean> | BaseCliParam<"prepare", boolean> | BaseCliParam<"dryRun", boolean> | BaseCliParam<"lint", boolean> | BaseCliParam<"watch", boolean> | BaseCliParam<"watchBuildTree", boolean> | BaseCliParam<"test", boolean> | BaseCliParam<"testType", string[]> | BaseCliParam<"testFiles", string[]> | BaseCliParam<"testCases", string[]> | BaseCliParam<"testDebugPort", number> | BaseCliParam<"launch", boolean> | BaseCliParam<"debugBackend", boolean> | BaseCliParam<"deploy", string> | BaseCliParam<"debug", boolean> | BaseCliParam<"debugLifecycle", boolean> | BaseCliParam<"verbose", boolean> | BaseCliParam<"publish", "patch" | "minor" | "major"> | BaseCliParam<"publishDryRun", boolean> | BaseCliParam<"usePackage", string[]> | BaseCliParam<"help", boolean>)[];
6
+ declare const AllBaiParams_Help: (BaseCliParam<"allUnits", boolean> | BaseCliParam<"dependencyTree", boolean> | BaseCliParam<"checkCyclicImports", boolean> | BaseCliParam<"continue", boolean> | BaseCliParam<"environment", string> | BaseCliParam<"setup", boolean> | BaseCliParam<"install", boolean> | BaseCliParam<"clean", boolean> | BaseCliParam<"purge", boolean> | BaseCliParam<"generate", boolean> | BaseCliParam<"generateDocs", boolean> | BaseCliParam<"noBuild", boolean> | BaseCliParam<"prepare", boolean> | BaseCliParam<"dryRun", boolean> | BaseCliParam<"lint", boolean> | BaseCliParam<"watch", boolean> | BaseCliParam<"watchBuildTree", boolean> | BaseCliParam<"test", boolean> | BaseCliParam<"testType", string[]> | BaseCliParam<"testFiles", string[]> | BaseCliParam<"testCases", string[]> | BaseCliParam<"testDebugPort", number> | BaseCliParam<"launch", boolean> | BaseCliParam<"debugBackend", boolean> | BaseCliParam<"deploy", string> | BaseCliParam<"debug", boolean> | BaseCliParam<"debugLifecycle", boolean> | BaseCliParam<"verbose", boolean> | BaseCliParam<"publish", "patch" | "minor" | "major"> | BaseCliParam<"usePackage", string[]> | BaseCliParam<"toESM", boolean> | BaseCliParam<"simulation", boolean> | BaseCliParam<"help", boolean>)[];
7
7
  export type Help_BaiParams = CliParams<typeof AllBaiParams_Help>;
8
8
  export type Phase_Help = typeof phase_Help;
9
9
  export declare const phaseKey_Help = "help";
@@ -45,4 +45,3 @@ class _Unit_HelpPrinter extends ProjectUnit {
45
45
  }
46
46
  }
47
47
  export const Unit_HelpPrinter = new _Unit_HelpPrinter();
48
- //# sourceMappingURL=Unit_HelpPrinter.js.map
package/v3/core/types.js CHANGED
@@ -3,4 +3,3 @@ export const WatchEvent_Update = 'update';
3
3
  export const WatchEvent_RemoveDir = 'remove_dir';
4
4
  export const WatchEvent_RemoveFile = 'remove_file';
5
5
  export const WatchEvent_Ready = 'ready';
6
- //# sourceMappingURL=types.js.map
@@ -5,6 +5,9 @@ export declare const phase_PrintDependencyTree: Phase<'printDependencyTree'>;
5
5
  export type Phase_CheckCyclicImports = typeof phase_CheckCyclicImports;
6
6
  export declare const phaseKey_CheckCyclicImports = "check-cyclic-imports";
7
7
  export declare const phase_CheckCyclicImports: Phase<'checkCyclicImports'>;
8
+ export type Phase_ToESM = typeof phase_ToESM;
9
+ export declare const phaseKey_ToESM = "convertToESM";
10
+ export declare const phase_ToESM: Phase<'convertToESM'>;
8
11
  export type Phase_Purge = typeof phase_Purge;
9
12
  export declare const phaseKey_Purge = "purge";
10
13
  export declare const phase_Purge: Phase<'purge'>;
@@ -37,9 +40,6 @@ export type Phase_Launch = typeof phase_Launch;
37
40
  export declare const phaseKey_Launch = "launch";
38
41
  export declare const phase_Launch: Phase<'launch'>;
39
42
  export declare const phases_Launch: Phase<string>[][];
40
- export type Phase_PublishDryRun = typeof phase_PublishDryRun;
41
- export declare const phaseKey_PublishDryRun = "publishDryRun";
42
- export declare const phase_PublishDryRun: Phase<'publishDryRun'>;
43
43
  export type Phase_Publish = typeof phase_Publish;
44
44
  export declare const phaseKey_Publish = "publish";
45
45
  export declare const phase_Publish: Phase<'publish'>;
@@ -14,6 +14,13 @@ export const phase_CheckCyclicImports = {
14
14
  filter: (baiParams) => baiParams.checkCyclicImports,
15
15
  terminateAfterPhase: true,
16
16
  };
17
+ export const phaseKey_ToESM = 'convertToESM';
18
+ export const phase_ToESM = {
19
+ key: phaseKey_ToESM,
20
+ name: 'ToESM',
21
+ method: 'convertToESM',
22
+ filter: (baiParams) => !baiParams.noBuild,
23
+ };
17
24
  export const phaseKey_Purge = 'purge';
18
25
  export const phase_Purge = {
19
26
  key: phaseKey_Purge,
@@ -95,13 +102,6 @@ export const phase_Launch = {
95
102
  export const phases_Launch = [[
96
103
  phase_Launch,
97
104
  ]];
98
- export const phaseKey_PublishDryRun = 'publishDryRun';
99
- export const phase_PublishDryRun = {
100
- key: phaseKey_PublishDryRun,
101
- name: 'PublishDryRun',
102
- method: 'publishDryRun',
103
- filter: (baiParams) => baiParams.publishDryRun,
104
- };
105
105
  export const phaseKey_Publish = 'publish';
106
106
  export const phase_Publish = {
107
107
  key: phaseKey_Publish,
@@ -123,5 +123,4 @@ export const phase_Deploy = {
123
123
  method: 'deploy',
124
124
  filter: (baiParams) => !!baiParams.deploy,
125
125
  };
126
- export const phases_Deploy = [[phase_PublishDryRun, phase_Publish, phase_Deploy], [phase_PostPublish]];
127
- //# sourceMappingURL=consts.js.map
126
+ export const phases_Deploy = [[phase_Publish, phase_Deploy], [phase_PostPublish]];
package/v3/phase/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './types.js';
2
2
  export * from './consts.js';
3
- //# sourceMappingURL=index.js.map
package/v3/phase/types.js CHANGED
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=types.js.map
@@ -117,4 +117,3 @@ export class BaseUnit extends Logger {
117
117
  return this.logger.buffers[0];
118
118
  }
119
119
  }
120
- //# sourceMappingURL=BaseUnit.js.map
@@ -9,4 +9,3 @@ export class ProjectUnit extends BaseUnit {
9
9
  this.addToClassStack(ProjectUnit);
10
10
  }
11
11
  }
12
- //# sourceMappingURL=ProjectUnit.js.map
@@ -6,13 +6,13 @@ import { Commando_PNPM } from '@nu-art/commando/shell/plugins/pnpm';
6
6
  import { PNPM } from '@nu-art/commando/shell/services/pnpm';
7
7
  import { Unit_PackageJson } from './Unit_PackageJson.js';
8
8
  import { resolve } from 'path';
9
- import { FileSystemUtils } from '../core/FileSystemUtils.js';
10
9
  import { PhaseManager } from '../PhaseManager.js';
11
10
  import { phase_CompileWatch } from '../phase/index.js';
12
11
  import { UnitsDependencyMapper } from '../UnitsDependencyMapper/UnitsDependencyMapper.js';
13
12
  import { CommandoException } from '@nu-art/commando/shell/core/CliError';
14
13
  import { CONST_PNPM_LOCK, CONST_PNPM_WORKSPACE } from '../../core/consts.js';
15
14
  import { RunningStatusHandler } from '../RunningStatusHandler.js';
15
+ import { FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
16
16
  export class Unit_NodeProject extends Unit_PackageJson {
17
17
  watcher;
18
18
  innerUnits = [];
@@ -241,4 +241,3 @@ export class Unit_NodeProject extends Unit_PackageJson {
241
241
  async postPublish() {
242
242
  }
243
243
  }
244
- //# sourceMappingURL=Unit_NodeProject.js.map
@@ -2,8 +2,8 @@ import { CONST_NodeModules, CONST_PackageJSON } from '../../core/consts.js';
2
2
  import { __stringify } from '@nu-art/ts-common';
3
3
  import { ProjectUnit } from './ProjectUnit.js';
4
4
  import { resolve } from 'path';
5
- import { DEFAULT_OLD_TEMPLATE_PATTERN, FileSystemUtils } from '../core/FileSystemUtils.js';
6
5
  import { Commando_NVM } from '@nu-art/commando/shell/plugins/nvm';
6
+ import { DEFAULT_OLD_TEMPLATE_PATTERN, FileSystemUtils } from '@nu-art/ts-common/utils/FileSystemUtils';
7
7
  export class Unit_PackageJson extends ProjectUnit {
8
8
  constructor(config) {
9
9
  super(config);
@@ -48,4 +48,3 @@ export class Unit_PackageJson extends ProjectUnit {
48
48
  .execute();
49
49
  }
50
50
  }
51
- //# sourceMappingURL=Unit_PackageJson.js.map
@@ -1,14 +1,14 @@
1
1
  import { TypedMap } from '@nu-art/ts-common';
2
2
  import { UnitPhaseImplementor } from '../core/types.js';
3
3
  import { Unit_PackageJson, Unit_PackageJson_Config } from './Unit_PackageJson.js';
4
- import { Phase_CheckCyclicImports, Phase_Compile, Phase_Lint, Phase_PreCompile, Phase_PrintDependencyTree, Phase_Publish, Phase_PublishDryRun, Phase_Test } from '../phase/index.js';
4
+ import { Phase_CheckCyclicImports, Phase_Compile, Phase_Lint, Phase_PreCompile, Phase_PrintDependencyTree, Phase_Publish, Phase_Test, Phase_ToESM } from '../phase/index.js';
5
5
  export type Unit_TypescriptLib_Config = Unit_PackageJson_Config & {
6
6
  customESLintConfig: boolean;
7
7
  customTSConfig: boolean;
8
8
  hasSelfHotReload: boolean;
9
9
  output: string;
10
10
  };
11
- export declare class Unit_TypescriptLib<C extends Unit_TypescriptLib_Config = Unit_TypescriptLib_Config> extends Unit_PackageJson<C> implements UnitPhaseImplementor<[Phase_PreCompile, Phase_Compile, Phase_PrintDependencyTree, Phase_CheckCyclicImports, Phase_Lint, Phase_Test, Phase_Publish, Phase_PublishDryRun]> {
11
+ export declare class Unit_TypescriptLib<C extends Unit_TypescriptLib_Config = Unit_TypescriptLib_Config> extends Unit_PackageJson<C> implements UnitPhaseImplementor<[Phase_PreCompile, Phase_Compile, Phase_PrintDependencyTree, Phase_CheckCyclicImports, Phase_Lint, Phase_Test, Phase_Publish, Phase_ToESM]> {
12
12
  private TestTypeWorkspaceSetup;
13
13
  runTests(): Promise<void>;
14
14
  constructor(config: Unit_TypescriptLib<C>['config']);
@@ -40,6 +40,6 @@ export declare class Unit_TypescriptLib<C extends Unit_TypescriptLib_Config = Un
40
40
  private resolveESLintConfig;
41
41
  protected deriveTSConfigPaths(): TypedMap<string[]>;
42
42
  protected resolveTSConfig(srcFolder: string, sourceFolderType: string): Promise<void>;
43
- publishDryRun(): Promise<void>;
44
43
  publish(): Promise<void>;
44
+ convertToESM(): Promise<void>;
45
45
  }