@storm-software/workspace-tools 1.241.0 → 1.243.0

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 (80) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-EFPBJWHS.js → chunk-6ZRK5I4N.js} +7 -4
  4. package/dist/chunk-7O34DHUG.js +127 -0
  5. package/dist/chunk-7TLYMNLD.mjs +127 -0
  6. package/dist/{chunk-5AQJQ72E.mjs → chunk-C2REXPET.mjs} +54 -49
  7. package/dist/{chunk-JOJ3CZQC.js → chunk-C3YSVZWO.js} +7 -4
  8. package/dist/{chunk-RTFFYOEY.js → chunk-PCPEJBLO.js} +7 -4
  9. package/dist/{chunk-XHH2IY66.js → chunk-RAVLTWJV.js} +54 -49
  10. package/dist/{chunk-LNDWWYO3.mjs → chunk-RLGZCVPW.mjs} +6 -3
  11. package/dist/{chunk-U4K5KWKS.mjs → chunk-T2NTGJ6O.mjs} +6 -3
  12. package/dist/{chunk-3SP4ZXOA.mjs → chunk-UHNTJRTW.mjs} +6 -3
  13. package/dist/executors.js +2 -2
  14. package/dist/executors.mjs +3 -3
  15. package/dist/generator-AFivysTp.d.ts +130 -0
  16. package/dist/generator-BAbOohf7.d.mts +130 -0
  17. package/dist/generator-B_HN13az.d.mts +130 -0
  18. package/dist/generator-CrR9QK6B.d.mts +130 -0
  19. package/dist/generator-DNdirMec.d.ts +130 -0
  20. package/dist/generator-F6EuzmJD.d.ts +130 -0
  21. package/dist/generators.d.mts +3 -3
  22. package/dist/generators.d.ts +3 -3
  23. package/dist/generators.js +6 -6
  24. package/dist/generators.mjs +7 -7
  25. package/dist/index.d.mts +4 -4
  26. package/dist/index.d.ts +4 -4
  27. package/dist/index.js +9 -9
  28. package/dist/index.mjs +11 -11
  29. package/dist/src/base/index.d.mts +22 -206
  30. package/dist/src/base/index.d.ts +22 -206
  31. package/dist/src/base/index.js +3 -3
  32. package/dist/src/base/index.mjs +2 -2
  33. package/dist/src/base/typescript-library-generator.schema.d.ts +8 -200
  34. package/dist/src/base/typescript-library-generator.schema.json +18 -162
  35. package/dist/src/base/typescript-library-generator.schema.md +9 -177
  36. package/dist/src/base/typescript-library-generator.untyped.js +2 -2
  37. package/dist/src/base/typescript-library-generator.untyped.mjs +1 -1
  38. package/dist/src/generators/browser-library/generator.d.mts +1 -1
  39. package/dist/src/generators/browser-library/generator.d.ts +1 -1
  40. package/dist/src/generators/browser-library/generator.js +3 -3
  41. package/dist/src/generators/browser-library/generator.mjs +2 -2
  42. package/dist/src/generators/browser-library/schema.d.ts +7 -199
  43. package/dist/src/generators/browser-library/schema.json +17 -162
  44. package/dist/src/generators/browser-library/schema.md +9 -177
  45. package/dist/src/generators/browser-library/untyped.js +2 -2
  46. package/dist/src/generators/browser-library/untyped.mjs +1 -1
  47. package/dist/src/generators/neutral-library/generator.d.mts +1 -1
  48. package/dist/src/generators/neutral-library/generator.d.ts +1 -1
  49. package/dist/src/generators/neutral-library/generator.js +3 -3
  50. package/dist/src/generators/neutral-library/generator.mjs +2 -2
  51. package/dist/src/generators/neutral-library/schema.d.ts +7 -199
  52. package/dist/src/generators/neutral-library/schema.json +17 -162
  53. package/dist/src/generators/neutral-library/schema.md +9 -177
  54. package/dist/src/generators/neutral-library/untyped.js +2 -2
  55. package/dist/src/generators/neutral-library/untyped.mjs +1 -1
  56. package/dist/src/generators/node-library/files/README.md +8 -3
  57. package/dist/src/generators/node-library/files/src/index.ts.template +1 -1
  58. package/dist/src/generators/node-library/generator.d.mts +1 -1
  59. package/dist/src/generators/node-library/generator.d.ts +1 -1
  60. package/dist/src/generators/node-library/generator.js +3 -3
  61. package/dist/src/generators/node-library/generator.mjs +2 -2
  62. package/dist/src/generators/node-library/schema.d.ts +7 -199
  63. package/dist/src/generators/node-library/schema.json +17 -162
  64. package/dist/src/generators/node-library/schema.md +9 -177
  65. package/dist/src/generators/node-library/untyped.js +2 -2
  66. package/dist/src/generators/node-library/untyped.mjs +1 -1
  67. package/docs/api/base/typescript-library-generator.schema.md +9 -177
  68. package/docs/api/generators/browser-library/schema.md +9 -177
  69. package/docs/api/generators/neutral-library/schema.md +9 -177
  70. package/docs/api/generators/node-library/files/README.md +8 -3
  71. package/docs/api/generators/node-library/schema.md +9 -177
  72. package/package.json +1 -1
  73. package/dist/chunk-RPECQQG4.mjs +0 -288
  74. package/dist/chunk-ZFIZ5Q46.js +0 -288
  75. package/dist/generator-BQRJyq3B.d.mts +0 -322
  76. package/dist/generator-BrNmpinc.d.mts +0 -322
  77. package/dist/generator-CNu7WVP-.d.mts +0 -322
  78. package/dist/generator-CnbxQjWD.d.ts +0 -322
  79. package/dist/generator-GzlgTDGq.d.ts +0 -322
  80. package/dist/generator-pV0dN2TY.d.ts +0 -322
@@ -57,49 +57,17 @@ interface TypeScriptLibraryGeneratorSchema {
57
57
  *
58
58
  * @default "neutral"
59
59
  *
60
- * @enum neutral,node,browser
60
+ * @enum neutral,node,worker,browser
61
61
  */
62
62
  platform?: string,
63
63
 
64
64
  /**
65
- * Dev Dependencies
66
- *
67
- * The dev dependencies to install
68
- *
69
- */
70
- devDependencies?: {
71
- [key: string]: any
72
- },
73
-
74
- /**
75
- * Dependencies
76
- *
77
- * The dependencies to install
78
- *
79
- */
80
- dependencies?: {
81
- [key: string]: any
82
- },
83
-
84
- /**
85
- * Peer Dependencies
86
- *
87
- * The peer dependencies to install
88
- *
89
- */
90
- peerDependencies?: {
91
- [key: string]: any
92
- },
93
-
94
- /**
95
- * Peer Dependencies Meta
65
+ * Import Path
96
66
  *
97
- * The peer dependencies meta
67
+ * The import path for the library
98
68
  *
99
69
  */
100
- peerDependenciesMeta?: {
101
- [key: string]: any
102
- },
70
+ importPath?: string,
103
71
 
104
72
  /**
105
73
  * Tags
@@ -109,48 +77,6 @@ interface TypeScriptLibraryGeneratorSchema {
109
77
  */
110
78
  tags?: string,
111
79
 
112
- /**
113
- * TypeScript Config (tsconfig.json) Options
114
- *
115
- * The TypeScript configuration options
116
- *
117
- */
118
- tsconfigOptions?: {
119
- [key: string]: any
120
- },
121
-
122
- /**
123
- * Skip Format
124
- *
125
- * Skip formatting
126
- *
127
- */
128
- skipFormat?: boolean,
129
-
130
- /**
131
- * Skip TsConfig
132
- *
133
- * Skip TypeScript configuration
134
- *
135
- */
136
- skipTsConfig?: boolean,
137
-
138
- /**
139
- * Skip Package Json
140
- *
141
- * Skip package.json
142
- *
143
- */
144
- skipPackageJson?: boolean,
145
-
146
- /**
147
- * Include Babel Rc
148
- *
149
- * Include Babel configuration
150
- *
151
- */
152
- includeBabelRc?: boolean,
153
-
154
80
  /**
155
81
  * Unit Test Runner
156
82
  *
@@ -161,14 +87,6 @@ interface TypeScriptLibraryGeneratorSchema {
161
87
  */
162
88
  unitTestRunner?: string,
163
89
 
164
- /**
165
- * Linter
166
- *
167
- * The linter to use
168
- *
169
- */
170
- linter?: string,
171
-
172
90
  /**
173
91
  * Test Environment
174
92
  *
@@ -179,27 +97,12 @@ interface TypeScriptLibraryGeneratorSchema {
179
97
  */
180
98
  testEnvironment?: string,
181
99
 
182
- /**
183
- * Import Path
184
- *
185
- * The import path for the library
186
- *
187
- */
188
- importPath?: string,
189
-
190
- /**
191
- * JavaScript
192
- *
193
- * Use JavaScript instead of TypeScript
194
- *
195
- */
196
- js?: boolean,
197
-
198
100
  /**
199
101
  * Pascal Case Files
200
102
  *
201
103
  * Use PascalCase for file names
202
104
  *
105
+ * @default false
203
106
  */
204
107
  pascalCaseFiles?: boolean,
205
108
 
@@ -208,6 +111,7 @@ interface TypeScriptLibraryGeneratorSchema {
208
111
  *
209
112
  * Enable strict mode
210
113
  *
114
+ * @default true
211
115
  */
212
116
  strict?: boolean,
213
117
 
@@ -216,6 +120,7 @@ interface TypeScriptLibraryGeneratorSchema {
216
120
  *
217
121
  * Make the library publishable
218
122
  *
123
+ * @default false
219
124
  */
220
125
  publishable?: boolean,
221
126
 
@@ -224,114 +129,25 @@ interface TypeScriptLibraryGeneratorSchema {
224
129
  *
225
130
  * Make the library buildable
226
131
  *
132
+ * @default true
227
133
  */
228
134
  buildable?: boolean,
229
-
230
- /**
231
- * Set Parser Options Project
232
- *
233
- * Set parser options project
234
- *
235
- */
236
- setParserOptionsProject?: boolean,
237
-
238
- /**
239
- * Config
240
- *
241
- * The configuration type
242
- *
243
- *
244
- * @enum workspace,project,npm-scripts
245
- */
246
- config?: string,
247
-
248
- /**
249
- * Compiler
250
- *
251
- * The compiler to use
252
- *
253
- */
254
- compiler?: string,
255
-
256
- /**
257
- * Bundler
258
- *
259
- * The bundler to use
260
- *
261
- */
262
- bundler?: string,
263
-
264
- /**
265
- * Skip Type Check
266
- *
267
- * Skip type checking
268
- *
269
- */
270
- skipTypeCheck?: boolean,
271
-
272
- /**
273
- * Minimal
274
- *
275
- * Create a minimal library
276
- *
277
- */
278
- minimal?: boolean,
279
-
280
- /**
281
- * Root Project
282
- *
283
- * Create a root project
284
- *
285
- */
286
- rootProject?: boolean,
287
-
288
- /**
289
- * Simple Name
290
- *
291
- * Use a simple name for the library
292
- *
293
- */
294
- simpleName?: boolean,
295
-
296
- /**
297
- * Add Plugin
298
- *
299
- * Add a plugin to the library
300
- *
301
- */
302
- addPlugin?: boolean,
303
-
304
- /**
305
- * Use Project Json
306
- *
307
- * Use project.json
308
- *
309
- */
310
- useProjectJson?: boolean,
311
-
312
- /**
313
- * Skip Workspaces Warning
314
- *
315
- * Skip workspaces warning
316
- *
317
- */
318
- skipWorkspacesWarning?: boolean,
319
-
320
- /**
321
- * Use Tsc Executor
322
- *
323
- * Use TSC executor
324
- *
325
- */
326
- useTscExecutor?: boolean,
327
135
  }
328
136
 
329
- type TypeScriptLibraryGeneratorNormalizedSchema = TypeScriptLibraryGeneratorSchema & NormalizedLibraryGeneratorOptions;
330
- declare function typeScriptLibraryGeneratorFn(tree: Tree, schema: TypeScriptLibraryGeneratorSchema, config?: StormConfig): Promise<null>;
331
- declare function getOutputPath(options: TypeScriptLibraryGeneratorNormalizedSchema): string;
332
- declare function createProjectTsConfigJson(tree: Tree, options: TypeScriptLibraryGeneratorNormalizedSchema): void;
137
+ type TypeScriptLibraryGeneratorOptions = TypeScriptLibraryGeneratorSchema & {
138
+ devDependencies?: Record<string, string>;
139
+ peerDependencies?: Record<string, string>;
140
+ peerDependenciesMeta?: Record<string, any>;
141
+ tsconfigOptions?: Record<string, any>;
142
+ };
143
+ type TypeScriptLibraryGeneratorNormalizedOptions = TypeScriptLibraryGeneratorOptions & NormalizedLibraryGeneratorOptions & {
144
+ rootProject: boolean;
145
+ };
146
+ declare function typeScriptLibraryGeneratorFn(tree: Tree, options: TypeScriptLibraryGeneratorOptions, config?: StormConfig): Promise<null>;
147
+ declare function getOutputPath(options: TypeScriptLibraryGeneratorNormalizedOptions): string;
148
+ declare function createProjectTsConfigJson(tree: Tree, options: TypeScriptLibraryGeneratorNormalizedOptions): void;
333
149
  type UnitTestRunner = "jest" | "vitest" | "none" | undefined;
334
150
  type TestEnvironment = "jsdom" | "node" | undefined;
335
- declare function normalizeOptions(tree: Tree, options: TypeScriptLibraryGeneratorSchema): Promise<TypeScriptLibraryGeneratorNormalizedSchema>;
151
+ declare function normalizeOptions(tree: Tree, options: TypeScriptLibraryGeneratorOptions, config?: StormConfig): Promise<TypeScriptLibraryGeneratorNormalizedOptions>;
336
152
 
337
- export { type TestEnvironment, type TypeScriptLibraryGeneratorNormalizedSchema, type UnitTestRunner, createProjectTsConfigJson, getOutputPath, normalizeOptions, typeScriptLibraryGeneratorFn };
153
+ export { type TestEnvironment, type TypeScriptLibraryGeneratorNormalizedOptions, type TypeScriptLibraryGeneratorOptions, type UnitTestRunner, createProjectTsConfigJson, getOutputPath, normalizeOptions, typeScriptLibraryGeneratorFn };
@@ -7,13 +7,13 @@ var _chunk6QO3KMZAjs = require('../../chunk-6QO3KMZA.js');
7
7
  var _chunkIWCQL3AQjs = require('../../chunk-IWCQL3AQ.js');
8
8
 
9
9
 
10
- var _chunkZFIZ5Q46js = require('../../chunk-ZFIZ5Q46.js');
10
+ var _chunk7O34DHUGjs = require('../../chunk-7O34DHUG.js');
11
11
 
12
12
 
13
13
 
14
14
 
15
15
 
16
- var _chunkXHH2IY66js = require('../../chunk-XHH2IY66.js');
16
+ var _chunkRAVLTWJVjs = require('../../chunk-RAVLTWJV.js');
17
17
  require('../../chunk-HI4G4OOG.js');
18
18
  require('../../chunk-7YRW5HNX.js');
19
19
 
@@ -45,4 +45,4 @@ require('../../chunk-3GQAWCBQ.js');
45
45
 
46
46
 
47
47
 
48
- exports.baseExecutorSchema = _chunkI734UVDTjs.base_executor_untyped_default; exports.baseGeneratorSchema = _chunk7CJRMBX3js.base_generator_untyped_default; exports.cargoBaseExecutorSchema = _chunk6QO3KMZAjs.cargo_base_executor_untyped_default; exports.createProjectTsConfigJson = _chunkXHH2IY66js.createProjectTsConfigJson; exports.getOutputPath = _chunkXHH2IY66js.getOutputPath; exports.normalizeOptions = _chunkXHH2IY66js.normalizeOptions; exports.typeScriptLibraryGeneratorFn = _chunkXHH2IY66js.typeScriptLibraryGeneratorFn; exports.typescriptBuildExecutorSchema = _chunkIWCQL3AQjs.typescript_build_executor_untyped_default; exports.typescriptLibraryGeneratorSchema = _chunkZFIZ5Q46js.typescript_library_generator_untyped_default; exports.withRunExecutor = _chunkIBHLVELVjs.withRunExecutor; exports.withRunGenerator = _chunkKLHTXAIUjs.withRunGenerator;
48
+ exports.baseExecutorSchema = _chunkI734UVDTjs.base_executor_untyped_default; exports.baseGeneratorSchema = _chunk7CJRMBX3js.base_generator_untyped_default; exports.cargoBaseExecutorSchema = _chunk6QO3KMZAjs.cargo_base_executor_untyped_default; exports.createProjectTsConfigJson = _chunkRAVLTWJVjs.createProjectTsConfigJson; exports.getOutputPath = _chunkRAVLTWJVjs.getOutputPath; exports.normalizeOptions = _chunkRAVLTWJVjs.normalizeOptions; exports.typeScriptLibraryGeneratorFn = _chunkRAVLTWJVjs.typeScriptLibraryGeneratorFn; exports.typescriptBuildExecutorSchema = _chunkIWCQL3AQjs.typescript_build_executor_untyped_default; exports.typescriptLibraryGeneratorSchema = _chunk7O34DHUGjs.typescript_library_generator_untyped_default; exports.withRunExecutor = _chunkIBHLVELVjs.withRunExecutor; exports.withRunGenerator = _chunkKLHTXAIUjs.withRunGenerator;
@@ -7,13 +7,13 @@ import {
7
7
  } from "../../chunk-FZI3TKFY.mjs";
8
8
  import {
9
9
  typescript_library_generator_untyped_default
10
- } from "../../chunk-RPECQQG4.mjs";
10
+ } from "../../chunk-7TLYMNLD.mjs";
11
11
  import {
12
12
  createProjectTsConfigJson,
13
13
  getOutputPath,
14
14
  normalizeOptions,
15
15
  typeScriptLibraryGeneratorFn
16
- } from "../../chunk-5AQJQ72E.mjs";
16
+ } from "../../chunk-C2REXPET.mjs";
17
17
  import "../../chunk-EK75QNMS.mjs";
18
18
  import "../../chunk-66TYTM73.mjs";
19
19
  import {
@@ -43,49 +43,17 @@ export interface TypeScriptLibraryGeneratorSchema {
43
43
  *
44
44
  * @default "neutral"
45
45
  *
46
- * @enum neutral,node,browser
46
+ * @enum neutral,node,worker,browser
47
47
  */
48
48
  platform?: string,
49
49
 
50
50
  /**
51
- * Dev Dependencies
52
- *
53
- * The dev dependencies to install
54
- *
55
- */
56
- devDependencies?: {
57
- [key: string]: any
58
- },
59
-
60
- /**
61
- * Dependencies
62
- *
63
- * The dependencies to install
64
- *
65
- */
66
- dependencies?: {
67
- [key: string]: any
68
- },
69
-
70
- /**
71
- * Peer Dependencies
72
- *
73
- * The peer dependencies to install
74
- *
75
- */
76
- peerDependencies?: {
77
- [key: string]: any
78
- },
79
-
80
- /**
81
- * Peer Dependencies Meta
51
+ * Import Path
82
52
  *
83
- * The peer dependencies meta
53
+ * The import path for the library
84
54
  *
85
55
  */
86
- peerDependenciesMeta?: {
87
- [key: string]: any
88
- },
56
+ importPath?: string,
89
57
 
90
58
  /**
91
59
  * Tags
@@ -95,48 +63,6 @@ export interface TypeScriptLibraryGeneratorSchema {
95
63
  */
96
64
  tags?: string,
97
65
 
98
- /**
99
- * TypeScript Config (tsconfig.json) Options
100
- *
101
- * The TypeScript configuration options
102
- *
103
- */
104
- tsconfigOptions?: {
105
- [key: string]: any
106
- },
107
-
108
- /**
109
- * Skip Format
110
- *
111
- * Skip formatting
112
- *
113
- */
114
- skipFormat?: boolean,
115
-
116
- /**
117
- * Skip TsConfig
118
- *
119
- * Skip TypeScript configuration
120
- *
121
- */
122
- skipTsConfig?: boolean,
123
-
124
- /**
125
- * Skip Package Json
126
- *
127
- * Skip package.json
128
- *
129
- */
130
- skipPackageJson?: boolean,
131
-
132
- /**
133
- * Include Babel Rc
134
- *
135
- * Include Babel configuration
136
- *
137
- */
138
- includeBabelRc?: boolean,
139
-
140
66
  /**
141
67
  * Unit Test Runner
142
68
  *
@@ -147,14 +73,6 @@ export interface TypeScriptLibraryGeneratorSchema {
147
73
  */
148
74
  unitTestRunner?: string,
149
75
 
150
- /**
151
- * Linter
152
- *
153
- * The linter to use
154
- *
155
- */
156
- linter?: string,
157
-
158
76
  /**
159
77
  * Test Environment
160
78
  *
@@ -165,27 +83,12 @@ export interface TypeScriptLibraryGeneratorSchema {
165
83
  */
166
84
  testEnvironment?: string,
167
85
 
168
- /**
169
- * Import Path
170
- *
171
- * The import path for the library
172
- *
173
- */
174
- importPath?: string,
175
-
176
- /**
177
- * JavaScript
178
- *
179
- * Use JavaScript instead of TypeScript
180
- *
181
- */
182
- js?: boolean,
183
-
184
86
  /**
185
87
  * Pascal Case Files
186
88
  *
187
89
  * Use PascalCase for file names
188
90
  *
91
+ * @default false
189
92
  */
190
93
  pascalCaseFiles?: boolean,
191
94
 
@@ -194,6 +97,7 @@ export interface TypeScriptLibraryGeneratorSchema {
194
97
  *
195
98
  * Enable strict mode
196
99
  *
100
+ * @default true
197
101
  */
198
102
  strict?: boolean,
199
103
 
@@ -202,6 +106,7 @@ export interface TypeScriptLibraryGeneratorSchema {
202
106
  *
203
107
  * Make the library publishable
204
108
  *
109
+ * @default false
205
110
  */
206
111
  publishable?: boolean,
207
112
 
@@ -210,105 +115,8 @@ export interface TypeScriptLibraryGeneratorSchema {
210
115
  *
211
116
  * Make the library buildable
212
117
  *
118
+ * @default true
213
119
  */
214
120
  buildable?: boolean,
215
-
216
- /**
217
- * Set Parser Options Project
218
- *
219
- * Set parser options project
220
- *
221
- */
222
- setParserOptionsProject?: boolean,
223
-
224
- /**
225
- * Config
226
- *
227
- * The configuration type
228
- *
229
- *
230
- * @enum workspace,project,npm-scripts
231
- */
232
- config?: string,
233
-
234
- /**
235
- * Compiler
236
- *
237
- * The compiler to use
238
- *
239
- */
240
- compiler?: string,
241
-
242
- /**
243
- * Bundler
244
- *
245
- * The bundler to use
246
- *
247
- */
248
- bundler?: string,
249
-
250
- /**
251
- * Skip Type Check
252
- *
253
- * Skip type checking
254
- *
255
- */
256
- skipTypeCheck?: boolean,
257
-
258
- /**
259
- * Minimal
260
- *
261
- * Create a minimal library
262
- *
263
- */
264
- minimal?: boolean,
265
-
266
- /**
267
- * Root Project
268
- *
269
- * Create a root project
270
- *
271
- */
272
- rootProject?: boolean,
273
-
274
- /**
275
- * Simple Name
276
- *
277
- * Use a simple name for the library
278
- *
279
- */
280
- simpleName?: boolean,
281
-
282
- /**
283
- * Add Plugin
284
- *
285
- * Add a plugin to the library
286
- *
287
- */
288
- addPlugin?: boolean,
289
-
290
- /**
291
- * Use Project Json
292
- *
293
- * Use project.json
294
- *
295
- */
296
- useProjectJson?: boolean,
297
-
298
- /**
299
- * Skip Workspaces Warning
300
- *
301
- * Skip workspaces warning
302
- *
303
- */
304
- skipWorkspacesWarning?: boolean,
305
-
306
- /**
307
- * Use Tsc Executor
308
- *
309
- * Use TSC executor
310
- *
311
- */
312
- useTscExecutor?: boolean,
313
121
  }
314
122