@storm-software/workspace-tools 1.64.0 → 1.65.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.
- package/CHANGELOG.md +26 -0
- package/README.md +1 -1
- package/index.js +29 -31
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +8 -6
- package/src/executors/tsup-browser/executor.js +13 -11
- package/src/executors/tsup-neutral/executor.js +16 -16
- package/src/executors/tsup-node/executor.js +16 -16
- package/src/generators/browser-library/generator.js +5 -11
package/package.json
CHANGED
|
@@ -210,9 +210,9 @@ var _isFunction = (value) => {
|
|
|
210
210
|
|
|
211
211
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
212
212
|
var import_build_tools = require("@storm-software/build-tools");
|
|
213
|
+
var import_build_tools2 = require("@storm-software/build-tools");
|
|
213
214
|
async function tsupExecutorFn(options, context, config) {
|
|
214
|
-
const { writeDebug, writeInfo, writeSuccess
|
|
215
|
-
const { tsBuild } = await import("@storm-software/build-tools");
|
|
215
|
+
const { writeDebug, writeInfo, writeSuccess } = await import("@storm-software/config-tools");
|
|
216
216
|
writeInfo(config, "\u{1F4E6} Running Storm build executor on the workspace");
|
|
217
217
|
writeDebug(
|
|
218
218
|
config,
|
|
@@ -227,10 +227,12 @@ ${Object.keys(options).map(
|
|
|
227
227
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
230
|
+
await (0, import_build_tools2.buildWithOptions)(config, {
|
|
231
|
+
...options,
|
|
232
|
+
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
233
|
+
projectName: context.projectName,
|
|
234
|
+
sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot
|
|
235
|
+
});
|
|
234
236
|
writeSuccess(config, "\u26A1 The Build process has completed successfully");
|
|
235
237
|
return {
|
|
236
238
|
success: true
|
|
@@ -210,9 +210,9 @@ var _isFunction = (value) => {
|
|
|
210
210
|
|
|
211
211
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
212
212
|
var import_build_tools = require("@storm-software/build-tools");
|
|
213
|
+
var import_build_tools2 = require("@storm-software/build-tools");
|
|
213
214
|
async function tsupExecutorFn(options, context, config) {
|
|
214
|
-
const { writeDebug, writeInfo, writeSuccess
|
|
215
|
-
const { tsBuild } = await import("@storm-software/build-tools");
|
|
215
|
+
const { writeDebug, writeInfo, writeSuccess } = await import("@storm-software/config-tools");
|
|
216
216
|
writeInfo(config, "\u{1F4E6} Running Storm build executor on the workspace");
|
|
217
217
|
writeDebug(
|
|
218
218
|
config,
|
|
@@ -227,10 +227,12 @@ ${Object.keys(options).map(
|
|
|
227
227
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
230
|
+
await (0, import_build_tools2.buildWithOptions)(config, {
|
|
231
|
+
...options,
|
|
232
|
+
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
233
|
+
projectName: context.projectName,
|
|
234
|
+
sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot
|
|
235
|
+
});
|
|
234
236
|
writeSuccess(config, "\u26A1 The Build process has completed successfully");
|
|
235
237
|
return {
|
|
236
238
|
success: true
|
|
@@ -258,13 +260,13 @@ var _isFunction2 = (value) => {
|
|
|
258
260
|
};
|
|
259
261
|
|
|
260
262
|
// packages/workspace-tools/src/executors/tsup-browser/executor.ts
|
|
261
|
-
var
|
|
263
|
+
var import_build_tools3 = require("@storm-software/build-tools");
|
|
262
264
|
var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
263
265
|
return tsupExecutorFn(
|
|
264
266
|
{
|
|
265
267
|
...options,
|
|
266
268
|
platform: "browser",
|
|
267
|
-
banner: (0,
|
|
269
|
+
banner: (0, import_build_tools3.getFileBanner)(
|
|
268
270
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
269
271
|
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
270
272
|
).join(" ") : "TypeScript (Browser Platforms)"
|
|
@@ -275,7 +277,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
|
275
277
|
env: {
|
|
276
278
|
...process.env
|
|
277
279
|
},
|
|
278
|
-
getConfig:
|
|
280
|
+
getConfig: import_build_tools3.browserConfig
|
|
279
281
|
},
|
|
280
282
|
context,
|
|
281
283
|
config
|
|
@@ -283,12 +285,12 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
|
283
285
|
};
|
|
284
286
|
var applyDefaultOptions2 = (options) => {
|
|
285
287
|
return {
|
|
286
|
-
...(0,
|
|
288
|
+
...(0, import_build_tools3.applyDefaultOptions)({
|
|
287
289
|
plugins: [],
|
|
288
290
|
...options,
|
|
289
291
|
platform: "browser"
|
|
290
292
|
}),
|
|
291
|
-
getConfig:
|
|
293
|
+
getConfig: import_build_tools3.browserConfig
|
|
292
294
|
};
|
|
293
295
|
};
|
|
294
296
|
var executor_default2 = withRunExecutor(
|
|
@@ -209,13 +209,13 @@ var _isFunction = (value) => {
|
|
|
209
209
|
};
|
|
210
210
|
|
|
211
211
|
// packages/workspace-tools/src/executors/tsup-neutral/executor.ts
|
|
212
|
-
var
|
|
212
|
+
var import_build_tools3 = require("@storm-software/build-tools");
|
|
213
213
|
|
|
214
214
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
215
215
|
var import_build_tools = require("@storm-software/build-tools");
|
|
216
|
+
var import_build_tools2 = require("@storm-software/build-tools");
|
|
216
217
|
async function tsupExecutorFn(options, context, config) {
|
|
217
|
-
const { writeDebug, writeInfo, writeSuccess
|
|
218
|
-
const { tsBuild } = await import("@storm-software/build-tools");
|
|
218
|
+
const { writeDebug, writeInfo, writeSuccess } = await import("@storm-software/config-tools");
|
|
219
219
|
writeInfo(config, "\u{1F4E6} Running Storm build executor on the workspace");
|
|
220
220
|
writeDebug(
|
|
221
221
|
config,
|
|
@@ -230,10 +230,12 @@ ${Object.keys(options).map(
|
|
|
230
230
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
231
231
|
);
|
|
232
232
|
}
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
await (0, import_build_tools2.buildWithOptions)(config, {
|
|
234
|
+
...options,
|
|
235
|
+
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
236
|
+
projectName: context.projectName,
|
|
237
|
+
sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot
|
|
238
|
+
});
|
|
237
239
|
writeSuccess(config, "\u26A1 The Build process has completed successfully");
|
|
238
240
|
return {
|
|
239
241
|
success: true
|
|
@@ -266,10 +268,8 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
266
268
|
{
|
|
267
269
|
...options,
|
|
268
270
|
platform: "neutral",
|
|
269
|
-
banner: (0,
|
|
270
|
-
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
271
|
-
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
272
|
-
).join(" ") : "TypeScript (Neutral Platform)"
|
|
271
|
+
banner: (0, import_build_tools3.getFileBanner)(
|
|
272
|
+
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (Neutral Platform)"
|
|
273
273
|
),
|
|
274
274
|
define: {
|
|
275
275
|
...options.define,
|
|
@@ -278,7 +278,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
278
278
|
env: {
|
|
279
279
|
...process.env
|
|
280
280
|
},
|
|
281
|
-
getConfig:
|
|
281
|
+
getConfig: import_build_tools3.neutralConfig
|
|
282
282
|
},
|
|
283
283
|
context,
|
|
284
284
|
config
|
|
@@ -286,12 +286,12 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
286
286
|
};
|
|
287
287
|
var applyDefaultOptions2 = (options) => {
|
|
288
288
|
return {
|
|
289
|
-
...(0,
|
|
289
|
+
...(0, import_build_tools3.applyDefaultOptions)({
|
|
290
290
|
plugins: [],
|
|
291
291
|
...options,
|
|
292
|
-
platform: "neutral"
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
platform: "neutral",
|
|
293
|
+
getConfig: import_build_tools3.neutralConfig
|
|
294
|
+
})
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
297
|
var executor_default2 = withRunExecutor(
|
|
@@ -210,9 +210,9 @@ var _isFunction = (value) => {
|
|
|
210
210
|
|
|
211
211
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
212
212
|
var import_build_tools = require("@storm-software/build-tools");
|
|
213
|
+
var import_build_tools2 = require("@storm-software/build-tools");
|
|
213
214
|
async function tsupExecutorFn(options, context, config) {
|
|
214
|
-
const { writeDebug, writeInfo, writeSuccess
|
|
215
|
-
const { tsBuild } = await import("@storm-software/build-tools");
|
|
215
|
+
const { writeDebug, writeInfo, writeSuccess } = await import("@storm-software/config-tools");
|
|
216
216
|
writeInfo(config, "\u{1F4E6} Running Storm build executor on the workspace");
|
|
217
217
|
writeDebug(
|
|
218
218
|
config,
|
|
@@ -227,10 +227,12 @@ ${Object.keys(options).map(
|
|
|
227
227
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
228
228
|
);
|
|
229
229
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
230
|
+
await (0, import_build_tools2.buildWithOptions)(config, {
|
|
231
|
+
...options,
|
|
232
|
+
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
233
|
+
projectName: context.projectName,
|
|
234
|
+
sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot
|
|
235
|
+
});
|
|
234
236
|
writeSuccess(config, "\u26A1 The Build process has completed successfully");
|
|
235
237
|
return {
|
|
236
238
|
success: true
|
|
@@ -258,16 +260,14 @@ var _isFunction2 = (value) => {
|
|
|
258
260
|
};
|
|
259
261
|
|
|
260
262
|
// packages/workspace-tools/src/executors/tsup-node/executor.ts
|
|
261
|
-
var
|
|
263
|
+
var import_build_tools3 = require("@storm-software/build-tools");
|
|
262
264
|
var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
263
265
|
return tsupExecutorFn(
|
|
264
266
|
{
|
|
265
267
|
...options,
|
|
266
268
|
platform: "node",
|
|
267
|
-
banner: (0,
|
|
268
|
-
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
269
|
-
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
270
|
-
).join(" ") : "TypeScript (NodeJs Platform)"
|
|
269
|
+
banner: (0, import_build_tools3.getFileBanner)(
|
|
270
|
+
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map((s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : "").join(" ") : "TypeScript (NodeJs Platform)"
|
|
271
271
|
),
|
|
272
272
|
define: {
|
|
273
273
|
...options.define
|
|
@@ -275,7 +275,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
|
275
275
|
env: {
|
|
276
276
|
...process.env
|
|
277
277
|
},
|
|
278
|
-
getConfig:
|
|
278
|
+
getConfig: import_build_tools3.nodeConfig
|
|
279
279
|
},
|
|
280
280
|
context,
|
|
281
281
|
config
|
|
@@ -283,13 +283,13 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
|
283
283
|
};
|
|
284
284
|
var applyDefaultOptions2 = (options) => {
|
|
285
285
|
return {
|
|
286
|
-
...(0,
|
|
286
|
+
...(0, import_build_tools3.applyDefaultOptions)({
|
|
287
287
|
plugins: [],
|
|
288
288
|
...options,
|
|
289
|
-
platform: "node"
|
|
289
|
+
platform: "node",
|
|
290
|
+
getConfig: import_build_tools3.nodeConfig
|
|
290
291
|
}),
|
|
291
|
-
transports: ["pino-pretty", "pino-loki"]
|
|
292
|
-
getConfig: import_build_tools2.nodeConfig
|
|
292
|
+
transports: ["pino-pretty", "pino-loki"]
|
|
293
293
|
};
|
|
294
294
|
};
|
|
295
295
|
var executor_default2 = withRunExecutor(
|
|
@@ -391679,24 +391679,22 @@ async function browserLibraryGeneratorFn(tree, schema2) {
|
|
|
391679
391679
|
"@types/react-dom": "^18.2.17"
|
|
391680
391680
|
},
|
|
391681
391681
|
peerDependencies: {
|
|
391682
|
-
|
|
391682
|
+
react: "^18.2.0",
|
|
391683
391683
|
"react-dom": "^18.2.0",
|
|
391684
391684
|
"react-native": "*"
|
|
391685
391685
|
},
|
|
391686
391686
|
peerDependenciesMeta: {
|
|
391687
391687
|
"react-dom": {
|
|
391688
|
-
|
|
391688
|
+
optional: true
|
|
391689
391689
|
},
|
|
391690
391690
|
"react-native": {
|
|
391691
|
-
|
|
391691
|
+
optional: true
|
|
391692
391692
|
}
|
|
391693
391693
|
},
|
|
391694
391694
|
buildExecutor: "@storm-software/workspace-tools:tsup-browser"
|
|
391695
391695
|
};
|
|
391696
391696
|
const options8 = await normalizeOptions2(tree, tsLibraryGeneratorOptions);
|
|
391697
|
-
const { className, name, propertyName } = (0, import_devkit2.names)(
|
|
391698
|
-
options8.projectNames.projectFileName
|
|
391699
|
-
);
|
|
391697
|
+
const { className, name, propertyName } = (0, import_devkit2.names)(options8.projectNames.projectFileName);
|
|
391700
391698
|
(0, import_devkit2.generateFiles)(tree, filesDir, options8.projectRoot, {
|
|
391701
391699
|
...schema2,
|
|
391702
391700
|
dot: ".",
|
|
@@ -391715,11 +391713,7 @@ async function browserLibraryGeneratorFn(tree, schema2) {
|
|
|
391715
391713
|
tsConfigOptions: {
|
|
391716
391714
|
compilerOptions: {
|
|
391717
391715
|
jsx: "react",
|
|
391718
|
-
types: [
|
|
391719
|
-
"node",
|
|
391720
|
-
"@nx/react/typings/cssmodule.d.ts",
|
|
391721
|
-
"@nx/react/typings/image.d.ts"
|
|
391722
|
-
]
|
|
391716
|
+
types: ["node", "@nx/react/typings/cssmodule.d.ts", "@nx/react/typings/image.d.ts"]
|
|
391723
391717
|
}
|
|
391724
391718
|
}
|
|
391725
391719
|
});
|