@storm-software/workspace-tools 1.63.6 → 1.65.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.
- package/CHANGELOG.md +33 -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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
## 1.65.0 (2024-03-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🚀 Features
|
|
5
|
+
|
|
6
|
+
- **build-tools:** Update parameters passed to `tsBuild` process ([5a976c3e](https://github.com/storm-software/storm-ops/commit/5a976c3e))
|
|
7
|
+
|
|
8
|
+
- **build-tools:** Added `buildWithOptions` function to support Nx executors ([4616cf46](https://github.com/storm-software/storm-ops/commit/4616cf46))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Patrick Sullivan
|
|
14
|
+
|
|
15
|
+
## 1.64.0 (2024-03-05)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### 🚀 Features
|
|
19
|
+
|
|
20
|
+
- **build-tools:** Split out Build CLI and supporting code to separate package ([9376ed39](https://github.com/storm-software/storm-ops/commit/9376ed39))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### 🩹 Fixes
|
|
24
|
+
|
|
25
|
+
- **workspace-tools:** Resolve issue with biome linting errors ([1e6d03df](https://github.com/storm-software/storm-ops/commit/1e6d03df))
|
|
26
|
+
|
|
27
|
+
- **workspace-tools:** Update `release-version` generator to get initial version from disk ([759f9ccc](https://github.com/storm-software/storm-ops/commit/759f9ccc))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### ❤️ Thank You
|
|
31
|
+
|
|
32
|
+
- Patrick Sullivan
|
|
33
|
+
|
|
1
34
|
## 1.63.6 (2024-03-05)
|
|
2
35
|
|
|
3
36
|
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
16
16
|
|
|
17
17
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
18
18
|
|
|
19
|
-
[](https://prettier.io/)
|
|
20
20
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
21
21
|
|
|
22
22
|
> [!IMPORTANT]
|
package/index.js
CHANGED
|
@@ -417219,13 +417219,13 @@ async function normalizeOptions2(tree, options8) {
|
|
|
417219
417219
|
}
|
|
417220
417220
|
|
|
417221
417221
|
// packages/workspace-tools/src/executors/tsup-neutral/executor.ts
|
|
417222
|
-
var
|
|
417222
|
+
var import_build_tools3 = require("@storm-software/build-tools");
|
|
417223
417223
|
|
|
417224
417224
|
// packages/workspace-tools/src/executors/tsup/executor.ts
|
|
417225
417225
|
var import_build_tools = require("@storm-software/build-tools");
|
|
417226
|
+
var import_build_tools2 = require("@storm-software/build-tools");
|
|
417226
417227
|
async function tsupExecutorFn(options8, context, config) {
|
|
417227
|
-
const { writeDebug, writeInfo, writeSuccess
|
|
417228
|
-
const { tsBuild } = await import("@storm-software/build-tools");
|
|
417228
|
+
const { writeDebug, writeInfo, writeSuccess } = await import("@storm-software/config-tools");
|
|
417229
417229
|
writeInfo(config, "\u{1F4E6} Running Storm build executor on the workspace");
|
|
417230
417230
|
writeDebug(
|
|
417231
417231
|
config,
|
|
@@ -417240,10 +417240,12 @@ ${Object.keys(options8).map(
|
|
|
417240
417240
|
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
417241
417241
|
);
|
|
417242
417242
|
}
|
|
417243
|
-
|
|
417244
|
-
|
|
417245
|
-
|
|
417246
|
-
|
|
417243
|
+
await (0, import_build_tools2.buildWithOptions)(config, {
|
|
417244
|
+
...options8,
|
|
417245
|
+
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
417246
|
+
projectName: context.projectName,
|
|
417247
|
+
sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot
|
|
417248
|
+
});
|
|
417247
417249
|
writeSuccess(config, "\u26A1 The Build process has completed successfully");
|
|
417248
417250
|
return {
|
|
417249
417251
|
success: true
|
|
@@ -417276,10 +417278,8 @@ var tsupNeutralBuildExecutorFn = (options8, context, config) => {
|
|
|
417276
417278
|
{
|
|
417277
417279
|
...options8,
|
|
417278
417280
|
platform: "neutral",
|
|
417279
|
-
banner: (0,
|
|
417280
|
-
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
417281
|
-
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
417282
|
-
).join(" ") : "TypeScript (Neutral Platform)"
|
|
417281
|
+
banner: (0, import_build_tools3.getFileBanner)(
|
|
417282
|
+
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)"
|
|
417283
417283
|
),
|
|
417284
417284
|
define: {
|
|
417285
417285
|
...options8.define,
|
|
@@ -417288,7 +417288,7 @@ var tsupNeutralBuildExecutorFn = (options8, context, config) => {
|
|
|
417288
417288
|
env: {
|
|
417289
417289
|
...process.env
|
|
417290
417290
|
},
|
|
417291
|
-
getConfig:
|
|
417291
|
+
getConfig: import_build_tools3.neutralConfig
|
|
417292
417292
|
},
|
|
417293
417293
|
context,
|
|
417294
417294
|
config
|
|
@@ -417296,12 +417296,12 @@ var tsupNeutralBuildExecutorFn = (options8, context, config) => {
|
|
|
417296
417296
|
};
|
|
417297
417297
|
var applyDefaultOptions2 = (options8) => {
|
|
417298
417298
|
return {
|
|
417299
|
-
...(0,
|
|
417299
|
+
...(0, import_build_tools3.applyDefaultOptions)({
|
|
417300
417300
|
plugins: [],
|
|
417301
417301
|
...options8,
|
|
417302
|
-
platform: "neutral"
|
|
417303
|
-
|
|
417304
|
-
|
|
417302
|
+
platform: "neutral",
|
|
417303
|
+
getConfig: import_build_tools3.neutralConfig
|
|
417304
|
+
})
|
|
417305
417305
|
};
|
|
417306
417306
|
};
|
|
417307
417307
|
var executor_default2 = withRunExecutor(
|
|
@@ -417316,16 +417316,14 @@ var executor_default2 = withRunExecutor(
|
|
|
417316
417316
|
);
|
|
417317
417317
|
|
|
417318
417318
|
// packages/workspace-tools/src/executors/tsup-node/executor.ts
|
|
417319
|
-
var
|
|
417319
|
+
var import_build_tools4 = require("@storm-software/build-tools");
|
|
417320
417320
|
var tsupNodeBuildExecutorFn = (options8, context, config) => {
|
|
417321
417321
|
return tsupExecutorFn(
|
|
417322
417322
|
{
|
|
417323
417323
|
...options8,
|
|
417324
417324
|
platform: "node",
|
|
417325
|
-
banner: (0,
|
|
417326
|
-
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
417327
|
-
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
417328
|
-
).join(" ") : "TypeScript (NodeJs Platform)"
|
|
417325
|
+
banner: (0, import_build_tools4.getFileBanner)(
|
|
417326
|
+
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)"
|
|
417329
417327
|
),
|
|
417330
417328
|
define: {
|
|
417331
417329
|
...options8.define
|
|
@@ -417333,7 +417331,7 @@ var tsupNodeBuildExecutorFn = (options8, context, config) => {
|
|
|
417333
417331
|
env: {
|
|
417334
417332
|
...process.env
|
|
417335
417333
|
},
|
|
417336
|
-
getConfig:
|
|
417334
|
+
getConfig: import_build_tools4.nodeConfig
|
|
417337
417335
|
},
|
|
417338
417336
|
context,
|
|
417339
417337
|
config
|
|
@@ -417341,13 +417339,13 @@ var tsupNodeBuildExecutorFn = (options8, context, config) => {
|
|
|
417341
417339
|
};
|
|
417342
417340
|
var applyDefaultOptions3 = (options8) => {
|
|
417343
417341
|
return {
|
|
417344
|
-
...(0,
|
|
417342
|
+
...(0, import_build_tools4.applyDefaultOptions)({
|
|
417345
417343
|
plugins: [],
|
|
417346
417344
|
...options8,
|
|
417347
|
-
platform: "node"
|
|
417345
|
+
platform: "node",
|
|
417346
|
+
getConfig: import_build_tools4.nodeConfig
|
|
417348
417347
|
}),
|
|
417349
|
-
transports: ["pino-pretty", "pino-loki"]
|
|
417350
|
-
getConfig: import_build_tools3.nodeConfig
|
|
417348
|
+
transports: ["pino-pretty", "pino-loki"]
|
|
417351
417349
|
};
|
|
417352
417350
|
};
|
|
417353
417351
|
var executor_default3 = withRunExecutor(
|
|
@@ -417362,13 +417360,13 @@ var executor_default3 = withRunExecutor(
|
|
|
417362
417360
|
);
|
|
417363
417361
|
|
|
417364
417362
|
// packages/workspace-tools/src/executors/tsup-browser/executor.ts
|
|
417365
|
-
var
|
|
417363
|
+
var import_build_tools5 = require("@storm-software/build-tools");
|
|
417366
417364
|
var tsupBrowserBuildExecutorFn = (options8, context, config) => {
|
|
417367
417365
|
return tsupExecutorFn(
|
|
417368
417366
|
{
|
|
417369
417367
|
...options8,
|
|
417370
417368
|
platform: "browser",
|
|
417371
|
-
banner: (0,
|
|
417369
|
+
banner: (0, import_build_tools5.getFileBanner)(
|
|
417372
417370
|
context.projectName ? context.projectName.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
|
|
417373
417371
|
(s) => s ? s.toUpperCase()[0] + s.toLowerCase().slice(1) : ""
|
|
417374
417372
|
).join(" ") : "TypeScript (Browser Platforms)"
|
|
@@ -417379,7 +417377,7 @@ var tsupBrowserBuildExecutorFn = (options8, context, config) => {
|
|
|
417379
417377
|
env: {
|
|
417380
417378
|
...process.env
|
|
417381
417379
|
},
|
|
417382
|
-
getConfig:
|
|
417380
|
+
getConfig: import_build_tools5.browserConfig
|
|
417383
417381
|
},
|
|
417384
417382
|
context,
|
|
417385
417383
|
config
|
|
@@ -417387,12 +417385,12 @@ var tsupBrowserBuildExecutorFn = (options8, context, config) => {
|
|
|
417387
417385
|
};
|
|
417388
417386
|
var applyDefaultOptions4 = (options8) => {
|
|
417389
417387
|
return {
|
|
417390
|
-
...(0,
|
|
417388
|
+
...(0, import_build_tools5.applyDefaultOptions)({
|
|
417391
417389
|
plugins: [],
|
|
417392
417390
|
...options8,
|
|
417393
417391
|
platform: "browser"
|
|
417394
417392
|
}),
|
|
417395
|
-
getConfig:
|
|
417393
|
+
getConfig: import_build_tools5.browserConfig
|
|
417396
417394
|
};
|
|
417397
417395
|
};
|
|
417398
417396
|
var executor_default4 = withRunExecutor(
|