@storm-software/workspace-tools 1.263.2 → 1.264.1

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 (42) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +12 -30
  3. package/dist/{chunk-OAQP7HGX.js → chunk-PD4CDI7L.js} +295 -41
  4. package/dist/{chunk-NZBJ5BJT.mjs → chunk-VYHRGNJQ.mjs} +301 -47
  5. package/dist/executors.d.mts +0 -1
  6. package/dist/executors.d.ts +0 -1
  7. package/dist/executors.js +5 -10
  8. package/dist/executors.mjs +5 -10
  9. package/dist/generators.js +5 -5
  10. package/dist/generators.mjs +6 -6
  11. package/dist/index.d.mts +0 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/index.js +10 -15
  14. package/dist/index.mjs +11 -16
  15. package/dist/src/executors/esbuild/executor.js +2 -3
  16. package/dist/src/executors/esbuild/executor.mjs +1 -2
  17. package/executors.json +0 -5
  18. package/package.json +3 -6
  19. package/dist/chunk-55IQXVOQ.js +0 -308
  20. package/dist/chunk-7W5P2GIE.mjs +0 -308
  21. package/dist/chunk-IFSORSAN.js +0 -304
  22. package/dist/chunk-TLRZHFVN.mjs +0 -304
  23. package/dist/executor-BDvqiAmr.d.ts +0 -144
  24. package/dist/executor-KAQdKP88.d.mts +0 -144
  25. package/dist/src/executors/tsdown/executor.d.mts +0 -4
  26. package/dist/src/executors/tsdown/executor.d.ts +0 -4
  27. package/dist/src/executors/tsdown/executor.js +0 -15
  28. package/dist/src/executors/tsdown/executor.mjs +0 -15
  29. package/dist/src/executors/tsdown/schema.d.ts +0 -135
  30. package/dist/src/executors/tsdown/schema.json +0 -174
  31. package/dist/src/executors/tsdown/schema.md +0 -126
  32. package/dist/src/executors/tsdown/untyped.d.mts +0 -5
  33. package/dist/src/executors/tsdown/untyped.d.ts +0 -5
  34. package/dist/src/executors/tsdown/untyped.js +0 -19
  35. package/dist/src/executors/tsdown/untyped.mjs +0 -19
  36. package/dist/src/plugins/typescript/tsdown.d.mts +0 -7
  37. package/dist/src/plugins/typescript/tsdown.d.ts +0 -7
  38. package/dist/src/plugins/typescript/tsdown.js +0 -159
  39. package/dist/src/plugins/typescript/tsdown.mjs +0 -159
  40. package/docs/api/executors/tsdown/schema.md +0 -126
  41. /package/dist/{chunk-3J53KHVV.js → chunk-7VDOGZYO.js} +0 -0
  42. /package/dist/{chunk-V7YZ3666.mjs → chunk-BLX5SLPC.mjs} +0 -0
@@ -1,22 +1,22 @@
1
1
  import "./chunk-RLIZVCIN.mjs";
2
- import {
3
- neutralLibraryGeneratorFn
4
- } from "./chunk-267XQYEI.mjs";
5
2
  import {
6
3
  nodeLibraryGeneratorFn
7
4
  } from "./chunk-V4QUJRZH.mjs";
8
- import {
9
- presetGeneratorFn
10
- } from "./chunk-H5VTYV4U.mjs";
11
5
  import {
12
6
  releaseVersionGeneratorFn
13
7
  } from "./chunk-MDK5L6VS.mjs";
8
+ import {
9
+ presetGeneratorFn
10
+ } from "./chunk-H5VTYV4U.mjs";
14
11
  import {
15
12
  configSchemaGeneratorFn
16
13
  } from "./chunk-NZAGHP4Q.mjs";
17
14
  import {
18
15
  browserLibraryGeneratorFn
19
16
  } from "./chunk-RMNEVFW4.mjs";
17
+ import {
18
+ neutralLibraryGeneratorFn
19
+ } from "./chunk-267XQYEI.mjs";
20
20
  import {
21
21
  initGenerator
22
22
  } from "./chunk-KTJM6G4K.mjs";
package/dist/index.d.mts CHANGED
@@ -8,7 +8,6 @@ export { C as CleanPackageExecutorSchema } from './schema.d-CRz8jtUC.mjs';
8
8
  export { E as ESBuildExecutorSchema, e as esbuildExecutorFn } from './executor-Bce2bwmv.mjs';
9
9
  export { L as LARGE_BUFFER, N as NpmPublishExecutorSchema } from './executor-DTcKLfcw.mjs';
10
10
  export { S as SizeLimitExecutorSchema, s as sizeLimitExecutorFn } from './executor-D7hQFdok.mjs';
11
- export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-KAQdKP88.mjs';
12
11
  export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-DFZM1IRb.mjs';
13
12
  export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-BLSVtRwG.mjs';
14
13
  export { B as BrowserLibraryGeneratorSchema, b as browserLibraryGeneratorFn } from './generator-CWhc4hwg.mjs';
package/dist/index.d.ts CHANGED
@@ -8,7 +8,6 @@ export { C as CleanPackageExecutorSchema } from './schema.d-CRz8jtUC.js';
8
8
  export { E as ESBuildExecutorSchema, e as esbuildExecutorFn } from './executor-Be5Fd52r.js';
9
9
  export { L as LARGE_BUFFER, N as NpmPublishExecutorSchema } from './executor-DTcKLfcw.js';
10
10
  export { S as SizeLimitExecutorSchema, s as sizeLimitExecutorFn } from './executor-C_TfLA0a.js';
11
- export { T as TSDownExecutorSchema, t as tsdownExecutorFn } from './executor-BDvqiAmr.js';
12
11
  export { T as TypiaExecutorSchema, t as typiaExecutorFn } from './executor-Cn6-xbcu.js';
13
12
  export { U as UnbuildExecutorSchema, u as unbuildExecutorFn } from './executor-rWFext3F.js';
14
13
  export { B as BrowserLibraryGeneratorSchema, b as browserLibraryGeneratorFn } from './generator-CDnWruqm.js';
package/dist/index.js CHANGED
@@ -45,10 +45,7 @@ var _chunkDHGZTMNDjs = require('./chunk-DHGZTMND.js');
45
45
 
46
46
 
47
47
  var _chunkGKL4BY2Yjs = require('./chunk-GKL4BY2Y.js');
48
- require('./chunk-3J53KHVV.js');
49
-
50
-
51
- var _chunkKFJJGDFTjs = require('./chunk-KFJJGDFT.js');
48
+ require('./chunk-7VDOGZYO.js');
52
49
 
53
50
 
54
51
  var _chunkGJQKCDGCjs = require('./chunk-GJQKCDGC.js');
@@ -57,10 +54,10 @@ var _chunkGJQKCDGCjs = require('./chunk-GJQKCDGC.js');
57
54
  var _chunkXM4IXZ6Yjs = require('./chunk-XM4IXZ6Y.js');
58
55
 
59
56
 
60
- var _chunk55IQXVOQjs = require('./chunk-55IQXVOQ.js');
57
+ var _chunkAXGI5QP4js = require('./chunk-AXGI5QP4.js');
61
58
 
62
59
 
63
- var _chunkAXGI5QP4js = require('./chunk-AXGI5QP4.js');
60
+ var _chunkKFJJGDFTjs = require('./chunk-KFJJGDFT.js');
64
61
 
65
62
 
66
63
  var _chunkOVWVVBMFjs = require('./chunk-OVWVVBMF.js');
@@ -69,8 +66,7 @@ var _chunkOVWVVBMFjs = require('./chunk-OVWVVBMF.js');
69
66
  var _chunkGGGO542Mjs = require('./chunk-GGGO542M.js');
70
67
 
71
68
 
72
- var _chunkOAQP7HGXjs = require('./chunk-OAQP7HGX.js');
73
- require('./chunk-IFSORSAN.js');
69
+ var _chunkPD4CDI7Ljs = require('./chunk-PD4CDI7L.js');
74
70
 
75
71
 
76
72
  var _chunkJJ4G5NGFjs = require('./chunk-JJ4G5NGF.js');
@@ -100,16 +96,13 @@ var _chunkULBTYC2Bjs = require('./chunk-ULBTYC2B.js');
100
96
  require('./chunk-INERRJ6Q.js');
101
97
 
102
98
 
103
- var _chunkN7NXGPZAjs = require('./chunk-N7NXGPZA.js');
104
-
105
-
106
99
  var _chunkK2LABESFjs = require('./chunk-K2LABESF.js');
107
100
 
108
101
 
109
- var _chunkQ27N3MQOjs = require('./chunk-Q27N3MQO.js');
102
+ var _chunkD5NZC2JNjs = require('./chunk-D5NZC2JN.js');
110
103
 
111
104
 
112
- var _chunkD5NZC2JNjs = require('./chunk-D5NZC2JN.js');
105
+ var _chunkQ27N3MQOjs = require('./chunk-Q27N3MQO.js');
113
106
 
114
107
 
115
108
  var _chunkXGU4526Mjs = require('./chunk-XGU4526M.js');
@@ -118,6 +111,9 @@ var _chunkXGU4526Mjs = require('./chunk-XGU4526M.js');
118
111
  var _chunkIC2TARGZjs = require('./chunk-IC2TARGZ.js');
119
112
 
120
113
 
114
+ var _chunkN7NXGPZAjs = require('./chunk-N7NXGPZA.js');
115
+
116
+
121
117
  var _chunk3IZ3O4OKjs = require('./chunk-3IZ3O4OK.js');
122
118
 
123
119
 
@@ -286,5 +282,4 @@ require('./chunk-3GQAWCBQ.js');
286
282
 
287
283
 
288
284
 
289
-
290
- exports.INVALID_CARGO_ARGS = _chunkULBTYC2Bjs.INVALID_CARGO_ARGS; exports.LARGE_BUFFER = _chunkGJQKCDGCjs.LARGE_BUFFER; exports.LOCK_FILES = _chunkPK2SUBWIjs.LOCK_FILES; exports.NPM_LOCK_FILE = _chunkPK2SUBWIjs.NPM_LOCK_FILE; exports.NPM_LOCK_PATH = _chunkPK2SUBWIjs.NPM_LOCK_PATH; exports.PNPM_LOCK_FILE = _chunkPK2SUBWIjs.PNPM_LOCK_FILE; exports.PNPM_LOCK_PATH = _chunkPK2SUBWIjs.PNPM_LOCK_PATH; exports.PackageManagerTypes = _chunk7AXFMX2Tjs.PackageManagerTypes; exports.ProjectTagConstants = _chunk7YRW5HNXjs.ProjectTagConstants; exports.ProjectTagDistStyleValue = _chunk4NOLUAQNjs.ProjectTagDistStyleValue; exports.ProjectTagLanguageValue = _chunk4NOLUAQNjs.ProjectTagLanguageValue; exports.ProjectTagPlatformValue = _chunk4NOLUAQNjs.ProjectTagPlatformValue; exports.ProjectTagRegistryValue = _chunk4NOLUAQNjs.ProjectTagRegistryValue; exports.ProjectTagTypeValue = _chunk4NOLUAQNjs.ProjectTagTypeValue; exports.ProjectTagVariant = _chunk4NOLUAQNjs.ProjectTagVariant; exports.YARN_LOCK_FILE = _chunkPK2SUBWIjs.YARN_LOCK_FILE; exports.YARN_LOCK_PATH = _chunkPK2SUBWIjs.YARN_LOCK_PATH; exports.addPluginProjectTag = _chunk7YRW5HNXjs.addPluginProjectTag; exports.addProjectTag = _chunk7YRW5HNXjs.addProjectTag; exports.applyWorkspaceExecutorTokens = _chunkAC5SI4YZjs.applyWorkspaceExecutorTokens; exports.baseExecutorSchema = _chunkI734UVDTjs.base_executor_untyped_default; exports.baseGeneratorSchema = _chunk7CJRMBX3js.base_generator_untyped_default; exports.browserLibraryGeneratorFn = _chunkIC2TARGZjs.browserLibraryGeneratorFn; exports.buildCargoCommand = _chunkULBTYC2Bjs.buildCargoCommand; exports.cargoBaseExecutorSchema = _chunk6QO3KMZAjs.cargo_base_executor_untyped_default; exports.cargoBuildExecutor = _chunkJJ4G5NGFjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkU6DCH53Ijs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkGBXELUHEjs.cargoClippyExecutor; exports.cargoCommand = _chunkULBTYC2Bjs.cargoCommand; exports.cargoCommandSync = _chunkULBTYC2Bjs.cargoCommandSync; exports.cargoDocExecutor = _chunkFIRVS3UNjs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkOVWVVBMFjs.cargoFormatExecutor; exports.cargoMetadata = _chunkULBTYC2Bjs.cargoMetadata; exports.cargoRunCommand = _chunkULBTYC2Bjs.cargoRunCommand; exports.childProcess = _chunkULBTYC2Bjs.childProcess; exports.configSchemaGeneratorFn = _chunkXGU4526Mjs.configSchemaGeneratorFn; exports.createCliOptions = _chunkDHGZTMNDjs.createCliOptions; exports.createProjectTsConfigJson = _chunkRBU35LQWjs.createProjectTsConfigJson; exports.esbuildExecutorFn = _chunkOAQP7HGXjs.esbuildExecutorFn; exports.eslintVersion = _chunkHI4G4OOGjs.eslintVersion; exports.formatProjectTag = _chunk7YRW5HNXjs.formatProjectTag; exports.getLockFileDependencies = _chunkPK2SUBWIjs.getLockFileDependencies; exports.getLockFileName = _chunkPK2SUBWIjs.getLockFileName; exports.getLockFileNodes = _chunkPK2SUBWIjs.getLockFileNodes; exports.getOutputPath = _chunkRBU35LQWjs.getOutputPath; exports.getPackageInfo = _chunk7AXFMX2Tjs.getPackageInfo; exports.getProjectConfigFromProjectJsonPath = _chunkUF6KFXG5js.getProjectConfigFromProjectJsonPath; exports.getProjectConfigFromProjectRoot = _chunkUF6KFXG5js.getProjectConfigFromProjectRoot; exports.getProjectConfiguration = _chunkGKL4BY2Yjs.getProjectConfiguration; exports.getProjectConfigurations = _chunkGKL4BY2Yjs.getProjectConfigurations; exports.getProjectPlatform = _chunkUF6KFXG5js.getProjectPlatform; exports.getProjectRoot = _chunkUF6KFXG5js.getProjectRoot; exports.getProjectTag = _chunk7YRW5HNXjs.getProjectTag; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.getTypiaTransform = _chunkXITP2BX2js.getTypiaTransform; exports.hasProjectTag = _chunk7YRW5HNXjs.hasProjectTag; exports.initGenerator = _chunk3IZ3O4OKjs.initGenerator; exports.isEqualProjectTag = _chunk7YRW5HNXjs.isEqualProjectTag; exports.isExternal = _chunkULBTYC2Bjs.isExternal; exports.lintStagedVersion = _chunkHI4G4OOGjs.lintStagedVersion; exports.lockFileExists = _chunkPK2SUBWIjs.lockFileExists; exports.modifyCargoNestedTable = _chunkZMFVKBRMjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunkZMFVKBRMjs.modifyCargoTable; exports.neutralLibraryGeneratorFn = _chunkN7NXGPZAjs.neutralLibraryGeneratorFn; exports.nodeLibraryGeneratorFn = _chunkK2LABESFjs.nodeLibraryGeneratorFn; exports.nodeVersion = _chunkHI4G4OOGjs.nodeVersion; exports.normalizeOptions = _chunkRBU35LQWjs.normalizeOptions; exports.nxVersion = _chunkHI4G4OOGjs.nxVersion; exports.parseCargoToml = _chunkZMFVKBRMjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunkZMFVKBRMjs.parseCargoTomlWithTree; exports.pnpmCatalogUpdate = _chunkCUPARBOSjs.pnpmCatalogUpdate; exports.pnpmVersion = _chunkHI4G4OOGjs.pnpmVersion; exports.presetGeneratorFn = _chunkQ27N3MQOjs.presetGeneratorFn; exports.prettierPackageJsonVersion = _chunkHI4G4OOGjs.prettierPackageJsonVersion; exports.prettierPrismaVersion = _chunkHI4G4OOGjs.prettierPrismaVersion; exports.prettierVersion = _chunkHI4G4OOGjs.prettierVersion; exports.releaseVersionGeneratorFn = _chunkD5NZC2JNjs.releaseVersionGeneratorFn; exports.runProcess = _chunkULBTYC2Bjs.runProcess; exports.semanticReleaseVersion = _chunkHI4G4OOGjs.semanticReleaseVersion; exports.setDefaultProjectTags = _chunk7YRW5HNXjs.setDefaultProjectTags; exports.sizeLimitExecutorFn = _chunkXM4IXZ6Yjs.sizeLimitExecutorFn; exports.stringifyCargoToml = _chunkZMFVKBRMjs.stringifyCargoToml; exports.swcCliVersion = _chunkHI4G4OOGjs.swcCliVersion; exports.swcCoreVersion = _chunkHI4G4OOGjs.swcCoreVersion; exports.swcHelpersVersion = _chunkHI4G4OOGjs.swcHelpersVersion; exports.swcNodeVersion = _chunkHI4G4OOGjs.swcNodeVersion; exports.tsLibVersion = _chunkHI4G4OOGjs.tsLibVersion; exports.tsdownExecutorFn = _chunk55IQXVOQjs.tsdownExecutorFn; exports.tsupVersion = _chunkHI4G4OOGjs.tsupVersion; exports.typeScriptLibraryGeneratorFn = _chunkRBU35LQWjs.typeScriptLibraryGeneratorFn; exports.typesNodeVersion = _chunkHI4G4OOGjs.typesNodeVersion; exports.typescriptBuildExecutorSchema = _chunkIWCQL3AQjs.typescript_build_executor_untyped_default; exports.typescriptLibraryGeneratorSchema = _chunk7O34DHUGjs.typescript_library_generator_untyped_default; exports.typescriptVersion = _chunkHI4G4OOGjs.typescriptVersion; exports.typiaExecutorFn = _chunkAXGI5QP4js.typiaExecutorFn; exports.unbuildExecutorFn = _chunkKFJJGDFTjs.unbuildExecutorFn; exports.verdaccioVersion = _chunkHI4G4OOGjs.verdaccioVersion; exports.withRunExecutor = _chunkFGMOZZ77js.withRunExecutor; exports.withRunGenerator = _chunkLSL5N332js.withRunGenerator;
285
+ exports.INVALID_CARGO_ARGS = _chunkULBTYC2Bjs.INVALID_CARGO_ARGS; exports.LARGE_BUFFER = _chunkGJQKCDGCjs.LARGE_BUFFER; exports.LOCK_FILES = _chunkPK2SUBWIjs.LOCK_FILES; exports.NPM_LOCK_FILE = _chunkPK2SUBWIjs.NPM_LOCK_FILE; exports.NPM_LOCK_PATH = _chunkPK2SUBWIjs.NPM_LOCK_PATH; exports.PNPM_LOCK_FILE = _chunkPK2SUBWIjs.PNPM_LOCK_FILE; exports.PNPM_LOCK_PATH = _chunkPK2SUBWIjs.PNPM_LOCK_PATH; exports.PackageManagerTypes = _chunk7AXFMX2Tjs.PackageManagerTypes; exports.ProjectTagConstants = _chunk7YRW5HNXjs.ProjectTagConstants; exports.ProjectTagDistStyleValue = _chunk4NOLUAQNjs.ProjectTagDistStyleValue; exports.ProjectTagLanguageValue = _chunk4NOLUAQNjs.ProjectTagLanguageValue; exports.ProjectTagPlatformValue = _chunk4NOLUAQNjs.ProjectTagPlatformValue; exports.ProjectTagRegistryValue = _chunk4NOLUAQNjs.ProjectTagRegistryValue; exports.ProjectTagTypeValue = _chunk4NOLUAQNjs.ProjectTagTypeValue; exports.ProjectTagVariant = _chunk4NOLUAQNjs.ProjectTagVariant; exports.YARN_LOCK_FILE = _chunkPK2SUBWIjs.YARN_LOCK_FILE; exports.YARN_LOCK_PATH = _chunkPK2SUBWIjs.YARN_LOCK_PATH; exports.addPluginProjectTag = _chunk7YRW5HNXjs.addPluginProjectTag; exports.addProjectTag = _chunk7YRW5HNXjs.addProjectTag; exports.applyWorkspaceExecutorTokens = _chunkAC5SI4YZjs.applyWorkspaceExecutorTokens; exports.baseExecutorSchema = _chunkI734UVDTjs.base_executor_untyped_default; exports.baseGeneratorSchema = _chunk7CJRMBX3js.base_generator_untyped_default; exports.browserLibraryGeneratorFn = _chunkIC2TARGZjs.browserLibraryGeneratorFn; exports.buildCargoCommand = _chunkULBTYC2Bjs.buildCargoCommand; exports.cargoBaseExecutorSchema = _chunk6QO3KMZAjs.cargo_base_executor_untyped_default; exports.cargoBuildExecutor = _chunkJJ4G5NGFjs.cargoBuildExecutor; exports.cargoCheckExecutor = _chunkU6DCH53Ijs.cargoCheckExecutor; exports.cargoClippyExecutor = _chunkGBXELUHEjs.cargoClippyExecutor; exports.cargoCommand = _chunkULBTYC2Bjs.cargoCommand; exports.cargoCommandSync = _chunkULBTYC2Bjs.cargoCommandSync; exports.cargoDocExecutor = _chunkFIRVS3UNjs.cargoDocExecutor; exports.cargoFormatExecutor = _chunkOVWVVBMFjs.cargoFormatExecutor; exports.cargoMetadata = _chunkULBTYC2Bjs.cargoMetadata; exports.cargoRunCommand = _chunkULBTYC2Bjs.cargoRunCommand; exports.childProcess = _chunkULBTYC2Bjs.childProcess; exports.configSchemaGeneratorFn = _chunkXGU4526Mjs.configSchemaGeneratorFn; exports.createCliOptions = _chunkDHGZTMNDjs.createCliOptions; exports.createProjectTsConfigJson = _chunkRBU35LQWjs.createProjectTsConfigJson; exports.esbuildExecutorFn = _chunkPD4CDI7Ljs.esbuildExecutorFn; exports.eslintVersion = _chunkHI4G4OOGjs.eslintVersion; exports.formatProjectTag = _chunk7YRW5HNXjs.formatProjectTag; exports.getLockFileDependencies = _chunkPK2SUBWIjs.getLockFileDependencies; exports.getLockFileName = _chunkPK2SUBWIjs.getLockFileName; exports.getLockFileNodes = _chunkPK2SUBWIjs.getLockFileNodes; exports.getOutputPath = _chunkRBU35LQWjs.getOutputPath; exports.getPackageInfo = _chunk7AXFMX2Tjs.getPackageInfo; exports.getProjectConfigFromProjectJsonPath = _chunkUF6KFXG5js.getProjectConfigFromProjectJsonPath; exports.getProjectConfigFromProjectRoot = _chunkUF6KFXG5js.getProjectConfigFromProjectRoot; exports.getProjectConfiguration = _chunkGKL4BY2Yjs.getProjectConfiguration; exports.getProjectConfigurations = _chunkGKL4BY2Yjs.getProjectConfigurations; exports.getProjectPlatform = _chunkUF6KFXG5js.getProjectPlatform; exports.getProjectRoot = _chunkUF6KFXG5js.getProjectRoot; exports.getProjectTag = _chunk7YRW5HNXjs.getProjectTag; exports.getRegistryVersion = _chunkGGGO542Mjs.getRegistryVersion; exports.getTypiaTransform = _chunkXITP2BX2js.getTypiaTransform; exports.hasProjectTag = _chunk7YRW5HNXjs.hasProjectTag; exports.initGenerator = _chunk3IZ3O4OKjs.initGenerator; exports.isEqualProjectTag = _chunk7YRW5HNXjs.isEqualProjectTag; exports.isExternal = _chunkULBTYC2Bjs.isExternal; exports.lintStagedVersion = _chunkHI4G4OOGjs.lintStagedVersion; exports.lockFileExists = _chunkPK2SUBWIjs.lockFileExists; exports.modifyCargoNestedTable = _chunkZMFVKBRMjs.modifyCargoNestedTable; exports.modifyCargoTable = _chunkZMFVKBRMjs.modifyCargoTable; exports.neutralLibraryGeneratorFn = _chunkN7NXGPZAjs.neutralLibraryGeneratorFn; exports.nodeLibraryGeneratorFn = _chunkK2LABESFjs.nodeLibraryGeneratorFn; exports.nodeVersion = _chunkHI4G4OOGjs.nodeVersion; exports.normalizeOptions = _chunkRBU35LQWjs.normalizeOptions; exports.nxVersion = _chunkHI4G4OOGjs.nxVersion; exports.parseCargoToml = _chunkZMFVKBRMjs.parseCargoToml; exports.parseCargoTomlWithTree = _chunkZMFVKBRMjs.parseCargoTomlWithTree; exports.pnpmCatalogUpdate = _chunkCUPARBOSjs.pnpmCatalogUpdate; exports.pnpmVersion = _chunkHI4G4OOGjs.pnpmVersion; exports.presetGeneratorFn = _chunkQ27N3MQOjs.presetGeneratorFn; exports.prettierPackageJsonVersion = _chunkHI4G4OOGjs.prettierPackageJsonVersion; exports.prettierPrismaVersion = _chunkHI4G4OOGjs.prettierPrismaVersion; exports.prettierVersion = _chunkHI4G4OOGjs.prettierVersion; exports.releaseVersionGeneratorFn = _chunkD5NZC2JNjs.releaseVersionGeneratorFn; exports.runProcess = _chunkULBTYC2Bjs.runProcess; exports.semanticReleaseVersion = _chunkHI4G4OOGjs.semanticReleaseVersion; exports.setDefaultProjectTags = _chunk7YRW5HNXjs.setDefaultProjectTags; exports.sizeLimitExecutorFn = _chunkXM4IXZ6Yjs.sizeLimitExecutorFn; exports.stringifyCargoToml = _chunkZMFVKBRMjs.stringifyCargoToml; exports.swcCliVersion = _chunkHI4G4OOGjs.swcCliVersion; exports.swcCoreVersion = _chunkHI4G4OOGjs.swcCoreVersion; exports.swcHelpersVersion = _chunkHI4G4OOGjs.swcHelpersVersion; exports.swcNodeVersion = _chunkHI4G4OOGjs.swcNodeVersion; exports.tsLibVersion = _chunkHI4G4OOGjs.tsLibVersion; exports.tsupVersion = _chunkHI4G4OOGjs.tsupVersion; exports.typeScriptLibraryGeneratorFn = _chunkRBU35LQWjs.typeScriptLibraryGeneratorFn; exports.typesNodeVersion = _chunkHI4G4OOGjs.typesNodeVersion; exports.typescriptBuildExecutorSchema = _chunkIWCQL3AQjs.typescript_build_executor_untyped_default; exports.typescriptLibraryGeneratorSchema = _chunk7O34DHUGjs.typescript_library_generator_untyped_default; exports.typescriptVersion = _chunkHI4G4OOGjs.typescriptVersion; exports.typiaExecutorFn = _chunkAXGI5QP4js.typiaExecutorFn; exports.unbuildExecutorFn = _chunkKFJJGDFTjs.unbuildExecutorFn; exports.verdaccioVersion = _chunkHI4G4OOGjs.verdaccioVersion; exports.withRunExecutor = _chunkFGMOZZ77js.withRunExecutor; exports.withRunGenerator = _chunkLSL5N332js.withRunGenerator;
package/dist/index.mjs CHANGED
@@ -45,22 +45,19 @@ import {
45
45
  getProjectConfiguration,
46
46
  getProjectConfigurations
47
47
  } from "./chunk-YBDZ7EWU.mjs";
48
- import "./chunk-V7YZ3666.mjs";
49
- import {
50
- unbuildExecutorFn
51
- } from "./chunk-G6VTRIV6.mjs";
48
+ import "./chunk-BLX5SLPC.mjs";
52
49
  import {
53
50
  LARGE_BUFFER
54
51
  } from "./chunk-BMNXBEWE.mjs";
55
52
  import {
56
53
  sizeLimitExecutorFn
57
54
  } from "./chunk-3RLLSZI3.mjs";
58
- import {
59
- tsdownExecutorFn
60
- } from "./chunk-7W5P2GIE.mjs";
61
55
  import {
62
56
  typiaExecutorFn
63
57
  } from "./chunk-FIJJTQKT.mjs";
58
+ import {
59
+ unbuildExecutorFn
60
+ } from "./chunk-G6VTRIV6.mjs";
64
61
  import {
65
62
  cargoFormatExecutor
66
63
  } from "./chunk-GKFEPODO.mjs";
@@ -69,8 +66,7 @@ import {
69
66
  } from "./chunk-3PWCELL5.mjs";
70
67
  import {
71
68
  esbuildExecutorFn
72
- } from "./chunk-NZBJ5BJT.mjs";
73
- import "./chunk-TLRZHFVN.mjs";
69
+ } from "./chunk-VYHRGNJQ.mjs";
74
70
  import {
75
71
  cargoBuildExecutor
76
72
  } from "./chunk-XB6ATVWM.mjs";
@@ -98,24 +94,24 @@ import {
98
94
  runProcess
99
95
  } from "./chunk-JIAGNEII.mjs";
100
96
  import "./chunk-RLIZVCIN.mjs";
101
- import {
102
- neutralLibraryGeneratorFn
103
- } from "./chunk-267XQYEI.mjs";
104
97
  import {
105
98
  nodeLibraryGeneratorFn
106
99
  } from "./chunk-V4QUJRZH.mjs";
107
- import {
108
- presetGeneratorFn
109
- } from "./chunk-H5VTYV4U.mjs";
110
100
  import {
111
101
  releaseVersionGeneratorFn
112
102
  } from "./chunk-MDK5L6VS.mjs";
103
+ import {
104
+ presetGeneratorFn
105
+ } from "./chunk-H5VTYV4U.mjs";
113
106
  import {
114
107
  configSchemaGeneratorFn
115
108
  } from "./chunk-NZAGHP4Q.mjs";
116
109
  import {
117
110
  browserLibraryGeneratorFn
118
111
  } from "./chunk-RMNEVFW4.mjs";
112
+ import {
113
+ neutralLibraryGeneratorFn
114
+ } from "./chunk-267XQYEI.mjs";
119
115
  import {
120
116
  initGenerator
121
117
  } from "./chunk-KTJM6G4K.mjs";
@@ -275,7 +271,6 @@ export {
275
271
  swcHelpersVersion,
276
272
  swcNodeVersion,
277
273
  tsLibVersion,
278
- tsdownExecutorFn,
279
274
  tsupVersion,
280
275
  typeScriptLibraryGeneratorFn,
281
276
  typesNodeVersion,
@@ -1,8 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOAQP7HGXjs = require('../../../chunk-OAQP7HGX.js');
5
- require('../../../chunk-IFSORSAN.js');
4
+ var _chunkPD4CDI7Ljs = require('../../../chunk-PD4CDI7L.js');
6
5
  require('../../../chunk-FGMOZZ77.js');
7
6
  require('../../../chunk-UALZJZUK.js');
8
7
  require('../../../chunk-NG6GE2YZ.js');
@@ -12,4 +11,4 @@ require('../../../chunk-3GQAWCBQ.js');
12
11
 
13
12
 
14
13
 
15
- exports.default = _chunkOAQP7HGXjs.executor_default; exports.esbuildExecutorFn = _chunkOAQP7HGXjs.esbuildExecutorFn;
14
+ exports.default = _chunkPD4CDI7Ljs.executor_default; exports.esbuildExecutorFn = _chunkPD4CDI7Ljs.esbuildExecutorFn;
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  esbuildExecutorFn,
3
3
  executor_default
4
- } from "../../../chunk-NZBJ5BJT.mjs";
5
- import "../../../chunk-TLRZHFVN.mjs";
4
+ } from "../../../chunk-VYHRGNJQ.mjs";
6
5
  import "../../../chunk-5DWBECCN.mjs";
7
6
  import "../../../chunk-AWKIWCLR.mjs";
8
7
  import "../../../chunk-IXZ3PGBP.mjs";
package/executors.json CHANGED
@@ -5,11 +5,6 @@
5
5
  "schema": "./dist/src/executors/typia/schema.json",
6
6
  "description": "Run the `typia` generator to create runtime type validators"
7
7
  },
8
- "tsdown": {
9
- "implementation": "./dist/src/executors/tsdown/executor",
10
- "schema": "./dist/src/executors/tsdown/schema.json",
11
- "description": "Run the `tsdown` build process on a selected project"
12
- },
13
8
  "esbuild": {
14
9
  "implementation": "./dist/src/executors/esbuild/executor",
15
10
  "schema": "./dist/src/executors/esbuild/schema.json",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.263.2",
3
+ "version": "1.264.1",
4
4
  "description": "Tools for managing a Storm workspace, including various Nx generators and executors for common development tasks.",
5
5
  "repository": {
6
6
  "type": "github",
@@ -178,7 +178,6 @@
178
178
  "./plugins/rust": "./dist/src/plugins/rust/index.js",
179
179
  "./plugins/typescript": "./dist/src/plugins/typescript/index.js",
180
180
  "./plugins/typescript/tsup": "./dist/src/plugins/typescript/tsup.js",
181
- "./plugins/typescript/tsdown": "./dist/src/plugins/typescript/tsdown.js",
182
181
  "./plugins/typescript/untyped": "./dist/src/plugins/typescript/untyped-schema.js",
183
182
  "./plugins/typescript/untyped-schema": "./dist/src/plugins/typescript/untyped-schema.js"
184
183
  },
@@ -194,17 +193,15 @@
194
193
  "peerDependencies": {
195
194
  "@storm-software/esbuild": "workspace:*",
196
195
  "@storm-software/prettier": "workspace:*",
197
- "@storm-software/tsdown": "workspace:*",
198
196
  "@storm-software/unbuild": "workspace:*",
199
197
  "markdownlint-cli2": "^0.17.2",
200
198
  "nx": "^20.3.1",
201
199
  "prettier": "^3.5.1"
202
200
  },
203
201
  "peerDependenciesMeta": {
204
- "@storm-software/esbuild": { "optional": true },
202
+ "@storm-software/esbuild": { "optional": false },
205
203
  "@storm-software/prettier": { "optional": false },
206
- "@storm-software/tsdown": { "optional": true },
207
- "@storm-software/unbuild": { "optional": true },
204
+ "@storm-software/unbuild": { "optional": false },
208
205
  "markdownlint-cli2": { "optional": false },
209
206
  "nx": { "optional": false },
210
207
  "prettier": { "optional": false }
@@ -1,308 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
- var _chunkIFSORSANjs = require('./chunk-IFSORSAN.js');
10
-
11
-
12
- var _chunkFGMOZZ77js = require('./chunk-FGMOZZ77.js');
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
- var _chunkNG6GE2YZjs = require('./chunk-NG6GE2YZ.js');
23
-
24
-
25
- var _chunkJTAXCQX6js = require('./chunk-JTAXCQX6.js');
26
-
27
-
28
- var _chunk3GQAWCBQjs = require('./chunk-3GQAWCBQ.js');
29
-
30
- // ../tsdown/src/build.ts
31
- var _devkit = require('@nx/devkit');
32
- var _defu = require('defu'); var _defu2 = _interopRequireDefault(_defu);
33
- var _fs = require('fs');
34
- var _promises = require('fs/promises'); var _promises2 = _interopRequireDefault(_promises);
35
- var _findworkspaceroot = require('nx/src/utils/find-workspace-root');
36
- var _tsdown = require('tsdown');
37
-
38
- // ../tsdown/src/clean.ts
39
-
40
- async function cleanDirectories(name = "TSDown", directory, config) {
41
- await _promises.rm.call(void 0, directory, {
42
- recursive: true,
43
- force: true
44
- });
45
- }
46
- _chunk3GQAWCBQjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
47
-
48
- // ../tsdown/src/config.ts
49
- var DEFAULT_BUILD_OPTIONS = {
50
- platform: "node",
51
- target: "node22",
52
- format: [
53
- "esm",
54
- "cjs"
55
- ],
56
- tsconfig: "tsconfig.json",
57
- mode: "production",
58
- globalName: "globalThis",
59
- unused: {
60
- level: "error"
61
- },
62
- injectShims: true,
63
- watch: false,
64
- bundle: true,
65
- treeshake: true,
66
- clean: true,
67
- debug: false
68
- };
69
-
70
- // ../tsdown/src/build.ts
71
- var resolveOptions = /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (userOptions) => {
72
- const projectRoot = userOptions.projectRoot;
73
- const workspaceRoot = _findworkspaceroot.findWorkspaceRoot.call(void 0, projectRoot);
74
- if (!workspaceRoot) {
75
- throw new Error("Cannot find Nx workspace root");
76
- }
77
- const config = await _chunkNG6GE2YZjs.getConfig.call(void 0, workspaceRoot.dir);
78
- _chunkNG6GE2YZjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
79
- const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, "Build options resolution");
80
- const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
81
- exitOnError: true
82
- });
83
- const projectJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, projectRoot, "project.json");
84
- if (!_fs.existsSync.call(void 0, projectJsonPath)) {
85
- throw new Error("Cannot find project.json configuration");
86
- }
87
- const projectJsonFile = await _promises2.default.readFile(projectJsonPath, "utf8");
88
- const projectJson = JSON.parse(projectJsonFile);
89
- const projectName = projectJson.name;
90
- const projectConfigurations = _devkit.readProjectsConfigurationFromProjectGraph.call(void 0, projectGraph);
91
- if (!_optionalChain([projectConfigurations, 'optionalAccess', _ => _.projects, 'optionalAccess', _2 => _2[projectName]])) {
92
- throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
93
- }
94
- const options = _defu2.default.call(void 0, userOptions, DEFAULT_BUILD_OPTIONS);
95
- options.name ??= `${projectName}-${options.format}`;
96
- options.target ??= _chunkIFSORSANjs.DEFAULT_TARGET;
97
- const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
98
- if (!_fs.existsSync.call(void 0, packageJsonPath)) {
99
- throw new Error("Cannot find package.json configuration");
100
- }
101
- const env = _chunkIFSORSANjs.getEnv.call(void 0, "tsdown", options);
102
- const result = {
103
- ...options,
104
- config,
105
- ...userOptions,
106
- tsconfig: _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
107
- format: options.format || "cjs",
108
- entryPoints: await _chunkIFSORSANjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, userOptions.entry || [
109
- "./src/index.ts"
110
- ], userOptions.emitOnAll),
111
- outdir: userOptions.outputPath || _chunkJTAXCQX6js.joinPaths.call(void 0, "dist", projectRoot),
112
- plugins: [],
113
- name: userOptions.name || projectName,
114
- projectConfigurations,
115
- projectName,
116
- projectGraph,
117
- sourceRoot: userOptions.sourceRoot || projectJson.sourceRoot || _chunkJTAXCQX6js.joinPaths.call(void 0, projectRoot, "src"),
118
- minify: userOptions.minify || !userOptions.debug,
119
- verbose: userOptions.verbose || _chunkNG6GE2YZjs.isVerbose.call(void 0, ) || userOptions.debug === true,
120
- includeSrc: userOptions.includeSrc === true,
121
- metafile: userOptions.metafile !== false,
122
- generatePackageJson: userOptions.generatePackageJson !== false,
123
- clean: userOptions.clean !== false,
124
- emitOnAll: userOptions.emitOnAll === true,
125
- dts: userOptions.emitTypes === true ? {
126
- transformer: "oxc"
127
- } : userOptions.emitTypes,
128
- bundleDts: userOptions.emitTypes,
129
- assets: _nullishCoalesce(userOptions.assets, () => ( [])),
130
- shims: userOptions.injectShims !== true,
131
- bundle: userOptions.bundle !== false,
132
- watch: userOptions.watch === true,
133
- define: {
134
- STORM_FORMAT: JSON.stringify(options.format || "cjs"),
135
- ...options.format === "cjs" && options.injectShims ? {
136
- "import.meta.url": "importMetaUrl"
137
- } : {},
138
- ...Object.keys(env || {}).reduce((res, key) => {
139
- const value = JSON.stringify(env[key]);
140
- return {
141
- ...res,
142
- [`process.env.${key}`]: value,
143
- [`import.meta.env.${key}`]: value
144
- };
145
- }, {}),
146
- ...options.define
147
- }
148
- };
149
- stopwatch();
150
- return result;
151
- }, "resolveOptions");
152
- async function generatePackageJson(options) {
153
- if (options.generatePackageJson !== false && _fs.existsSync.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "package.json"))) {
154
- _chunkNG6GE2YZjs.writeDebug.call(void 0, " \u270D\uFE0F Writing package.json file", options.config);
155
- const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, "Write package.json file");
156
- const packageJsonPath = _chunkJTAXCQX6js.joinPaths.call(void 0, options.projectRoot, "project.json");
157
- if (!_fs.existsSync.call(void 0, packageJsonPath)) {
158
- throw new Error("Cannot find package.json configuration");
159
- }
160
- const packageJsonFile = await _promises2.default.readFile(_chunkJTAXCQX6js.joinPaths.call(void 0, options.config.workspaceRoot, options.projectRoot, "package.json"), "utf8");
161
- if (!packageJsonFile) {
162
- throw new Error("Cannot find package.json configuration file");
163
- }
164
- let packageJson = JSON.parse(packageJsonFile);
165
- packageJson = await _chunkIFSORSANjs.addPackageDependencies.call(void 0, options.config.workspaceRoot, options.projectRoot, options.projectName, packageJson);
166
- packageJson = await _chunkIFSORSANjs.addWorkspacePackageJsonFields.call(void 0, options.config, options.projectRoot, options.sourceRoot, options.projectName, false, packageJson);
167
- packageJson.exports ??= {};
168
- packageJson.exports["./package.json"] ??= "./package.json";
169
- packageJson.exports["."] ??= _chunkIFSORSANjs.addPackageJsonExport.call(void 0, "index", packageJson.type, options.sourceRoot);
170
- let entryPoints = [
171
- {
172
- in: "./src/index.ts",
173
- out: "./src/index.ts"
174
- }
175
- ];
176
- if (options.entryPoints) {
177
- if (Array.isArray(options.entryPoints)) {
178
- entryPoints = options.entryPoints.map((entryPoint) => typeof entryPoint === "string" ? {
179
- in: entryPoint,
180
- out: entryPoint
181
- } : entryPoint);
182
- }
183
- for (const entryPoint of entryPoints) {
184
- const split = entryPoint.out.split(".");
185
- split.pop();
186
- const entry = split.join(".").replaceAll("\\", "/");
187
- packageJson.exports[`./${entry}`] ??= _chunkIFSORSANjs.addPackageJsonExport.call(void 0, entry, packageJson.type, options.sourceRoot);
188
- }
189
- }
190
- packageJson.main = packageJson.type === "commonjs" ? "./dist/index.js" : "./dist/index.cjs";
191
- packageJson.module = packageJson.type === "module" ? "./dist/index.js" : "./dist/index.mjs";
192
- packageJson.types = "./dist/index.d.ts";
193
- packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
194
- if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
195
- ret[key.replace("/index", "")] = packageJson.exports[key];
196
- }
197
- return ret;
198
- }, packageJson.exports);
199
- await _devkit.writeJsonFile.call(void 0, _chunkJTAXCQX6js.joinPaths.call(void 0, options.outdir, "package.json"), packageJson);
200
- stopwatch();
201
- }
202
- return options;
203
- }
204
- _chunk3GQAWCBQjs.__name.call(void 0, generatePackageJson, "generatePackageJson");
205
- async function executeTSDown(options) {
206
- _chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u{1F680} Running ${options.name} build`, options.config);
207
- const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, `${options.name} build`);
208
- await _tsdown.build.call(void 0, {
209
- ...options,
210
- entry: options.entryPoints,
211
- outDir: options.outdir,
212
- config: false
213
- });
214
- stopwatch();
215
- return options;
216
- }
217
- _chunk3GQAWCBQjs.__name.call(void 0, executeTSDown, "executeTSDown");
218
- async function copyBuildAssets(options) {
219
- _chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${options.outdir}`, options.config);
220
- const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, `${options.name} asset copy`);
221
- await _chunkIFSORSANjs.copyAssets.call(void 0, options.config, _nullishCoalesce(options.assets, () => ( [])), options.outdir, options.projectRoot, options.sourceRoot, true, false);
222
- stopwatch();
223
- return options;
224
- }
225
- _chunk3GQAWCBQjs.__name.call(void 0, copyBuildAssets, "copyBuildAssets");
226
- async function reportResults(options) {
227
- _chunkNG6GE2YZjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${options.name} build completed successfully`, options.config);
228
- }
229
- _chunk3GQAWCBQjs.__name.call(void 0, reportResults, "reportResults");
230
- async function cleanOutputPath(options) {
231
- if (options.clean !== false && options.outdir) {
232
- _chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${options.name} output path: ${options.outdir}`, options.config);
233
- const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, `${options.name} output clean`);
234
- await cleanDirectories(options.name, options.outdir, options.config);
235
- stopwatch();
236
- }
237
- return options;
238
- }
239
- _chunk3GQAWCBQjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
240
- async function build(options) {
241
- _chunkNG6GE2YZjs.writeDebug.call(void 0, ` \u26A1 Executing Storm TSDown pipeline`);
242
- const stopwatch = _chunkNG6GE2YZjs.getStopwatch.call(void 0, "TSDown pipeline");
243
- try {
244
- const opts = Array.isArray(options) ? options : [
245
- options
246
- ];
247
- if (opts.length === 0) {
248
- throw new Error("No build options were provided");
249
- }
250
- const resolved = await Promise.all(opts.map(async (opt) => await resolveOptions(opt)));
251
- if (resolved.length > 0) {
252
- await cleanOutputPath(resolved[0]);
253
- await generatePackageJson(resolved[0]);
254
- await Promise.all(resolved.map(async (opt) => {
255
- await executeTSDown(opt);
256
- await copyBuildAssets(opt);
257
- await reportResults(opt);
258
- }));
259
- } else {
260
- _chunkNG6GE2YZjs.writeWarning.call(void 0, " \u{1F6A7} No options were passed to TSBuild. Please check the parameters passed to the `build` function.");
261
- }
262
- _chunkNG6GE2YZjs.writeSuccess.call(void 0, " \u{1F3C1} TSDown pipeline build completed successfully");
263
- } catch (error) {
264
- _chunkNG6GE2YZjs.writeFatal.call(void 0, " \u274C Fatal errors occurred during the build that could not be recovered from. The build process has been terminated.");
265
- throw error;
266
- } finally {
267
- stopwatch();
268
- }
269
- }
270
- _chunk3GQAWCBQjs.__name.call(void 0, build, "build");
271
-
272
- // src/executors/tsdown/executor.ts
273
- async function tsdownExecutorFn(options, context, config) {
274
- _chunkNG6GE2YZjs.writeInfo.call(void 0, "\u{1F4E6} Running Storm TSDown build executor on the workspace", config);
275
- if (!_optionalChain([context, 'access', _3 => _3.projectsConfigurations, 'optionalAccess', _4 => _4.projects]) || !context.projectName || !context.projectsConfigurations.projects[context.projectName] || !_optionalChain([context, 'access', _5 => _5.projectsConfigurations, 'access', _6 => _6.projects, 'access', _7 => _7[context.projectName], 'optionalAccess', _8 => _8.root])) {
276
- throw new Error("The Build process failed because the context is not valid. Please run this command from a workspace.");
277
- }
278
- await build({
279
- ...options,
280
- projectRoot: _optionalChain([context, 'access', _9 => _9.projectsConfigurations, 'access', _10 => _10.projects, 'optionalAccess', _11 => _11[context.projectName], 'access', _12 => _12.root]),
281
- projectName: context.projectName,
282
- sourceRoot: _optionalChain([context, 'access', _13 => _13.projectsConfigurations, 'access', _14 => _14.projects, 'optionalAccess', _15 => _15[context.projectName], 'optionalAccess', _16 => _16.sourceRoot]),
283
- format: options.format,
284
- platform: options.platform
285
- });
286
- return {
287
- success: true
288
- };
289
- }
290
- _chunk3GQAWCBQjs.__name.call(void 0, tsdownExecutorFn, "tsdownExecutorFn");
291
- var executor_default = _chunkFGMOZZ77js.withRunExecutor.call(void 0, "Storm TSDown build executor", tsdownExecutorFn, {
292
- skipReadingConfig: false,
293
- hooks: {
294
- applyDefaultOptions: /* @__PURE__ */ _chunk3GQAWCBQjs.__name.call(void 0, async (options, config) => {
295
- options.entry ??= [
296
- "src/index.ts"
297
- ];
298
- options.outputPath ??= "dist/{projectRoot}";
299
- options.tsconfig ??= "{projectRoot}/tsconfig.json";
300
- return options;
301
- }, "applyDefaultOptions")
302
- }
303
- });
304
-
305
-
306
-
307
-
308
- exports.tsdownExecutorFn = tsdownExecutorFn; exports.executor_default = executor_default;