@storm-software/workspace-tools 1.69.0 → 1.70.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 +12 -0
- package/README.md +40 -1
- package/executors.json +5 -0
- package/index.js +181 -60
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/base/index.js +110 -48
- package/src/executors/rolldown/executor.js +110 -48
- package/src/executors/tsup/executor.js +110 -48
- package/src/executors/tsup-browser/executor.js +110 -48
- package/src/executors/tsup-neutral/executor.js +110 -48
- package/src/executors/tsup-node/executor.js +110 -48
- package/src/executors/typia/executor.js +110 -48
- package/src/executors/unbuild/executor.js +219078 -0
- package/src/executors/unbuild/schema.d.ts +3 -0
- package/src/executors/unbuild/schema.json +122 -0
- package/src/generators/browser-library/generator.js +110 -48
- package/src/generators/config-schema/generator.js +110 -48
- package/src/generators/neutral-library/generator.js +110 -48
- package/src/generators/node-library/generator.js +110 -48
- package/src/generators/preset/generator.js +110 -48
- package/src/generators/release-version/generator.js +110 -48
- package/src/utils/index.js +110 -48
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.70.0 (2024-04-09)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🚀 Features
|
|
5
|
+
|
|
6
|
+
- **build-tools:** Added `unbuild` to the build tools ([b62cd15b](https://github.com/storm-software/storm-ops/commit/b62cd15b))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.69.0 (2024-04-09)
|
|
2
14
|
|
|
3
15
|
|
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.com" target="_blank">stormsoftware.com</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]
|
|
@@ -317,6 +317,45 @@ The following executor options are available:
|
|
|
317
317
|
|
|
318
318
|
|
|
319
319
|
|
|
320
|
+
## Unbuild Builder
|
|
321
|
+
|
|
322
|
+
An executor used by Storm Software to run the Unbuild build process
|
|
323
|
+
|
|
324
|
+
### Example
|
|
325
|
+
|
|
326
|
+
This executor can be used by executing the following in a command line utility:
|
|
327
|
+
|
|
328
|
+
```cmd
|
|
329
|
+
nx run my-project:unbuild
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
**Please note:** _The unbuild executor should be included in the desired projects's `project.json` file.All required options must be included in the `options` property of the json._
|
|
333
|
+
|
|
334
|
+
### Options
|
|
335
|
+
|
|
336
|
+
The following executor options are available:
|
|
337
|
+
|
|
338
|
+
| Option | Type | Description | Default |
|
|
339
|
+
| --------- | ------ | ------------- | --------- |
|
|
340
|
+
| entry | `string` | The path to the entry file, relative to project. | "{sourceRoot}/index.ts" |
|
|
341
|
+
| outputPath | `string` | The output path of the generated files. | "dist/{projectRoot}" |
|
|
342
|
+
| **tsConfig \*** | `string` | The path to the \`tsconfig.json\` file. | "{projectRoot}/tsconfig.json" |
|
|
343
|
+
| additionalEntryPoints | `string[]` | List of additional entry points. | `[]` |
|
|
344
|
+
| watch | `boolean` | Enable re-building when files change. | |
|
|
345
|
+
| assets | `array` | List of static assets. | `[]` |
|
|
346
|
+
| clean | `boolean` | Remove previous output before build. | `true` |
|
|
347
|
+
| includeSrc | `boolean` | Should the source files be added to the distribution folder in an \`src\` directory. | |
|
|
348
|
+
| debug | `boolean` | Should output be unminified with source mappings. | |
|
|
349
|
+
| **banner \*** | `string` | A short heading added to the top of each typescript file added in the output folder's \`src\` directory. | "This code was developed by Storm Software (<https://stormsoftware.com>) and is licensed under the Apache License 2.0." |
|
|
350
|
+
| minify | `boolean` | Should the build process minify the output files? | |
|
|
351
|
+
| verbose | `boolean` | Should write extra log outputs with details from the executor. | |
|
|
352
|
+
| plugins | `object[]` | List of Rollup plugins to use during processing | `[]` |
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
**Please note:** _Option names followed by \* above are required, and must be provided to run the executor._
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
320
359
|
<!-- markdownlint-restore -->
|
|
321
360
|
<!-- prettier-ignore-end -->
|
|
322
361
|
|
package/executors.json
CHANGED
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"implementation": "./src/executors/rolldown/executor",
|
|
41
41
|
"schema": "./src/executors/rolldown/schema.json",
|
|
42
42
|
"description": "An executor used by Storm Software to run the Rolldown build process"
|
|
43
|
+
},
|
|
44
|
+
"unbuild": {
|
|
45
|
+
"implementation": "./src/executors/unbuild/executor",
|
|
46
|
+
"schema": "./src/executors/unbuild/schema.json",
|
|
47
|
+
"description": "Run an unbuild build process on a selected project"
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
}
|
package/index.js
CHANGED
|
@@ -2950,6 +2950,55 @@ var require_lib2 = __commonJS({
|
|
|
2950
2950
|
}
|
|
2951
2951
|
});
|
|
2952
2952
|
|
|
2953
|
+
// node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js
|
|
2954
|
+
var require_picocolors = __commonJS({
|
|
2955
|
+
"node_modules/.pnpm/picocolors@1.0.0/node_modules/picocolors/picocolors.js"(exports2, module2) {
|
|
2956
|
+
var tty = require("tty");
|
|
2957
|
+
var isColorSupported = !("NO_COLOR" in process.env || process.argv.includes("--no-color")) && ("FORCE_COLOR" in process.env || process.argv.includes("--color") || process.platform === "win32" || tty.isatty(1) && process.env.TERM !== "dumb" || "CI" in process.env);
|
|
2958
|
+
var formatter = (open, close, replace = open) => (input) => {
|
|
2959
|
+
let string = "" + input;
|
|
2960
|
+
let index = string.indexOf(close, open.length);
|
|
2961
|
+
return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
|
|
2962
|
+
};
|
|
2963
|
+
var replaceClose = (string, close, replace, index) => {
|
|
2964
|
+
let start = string.substring(0, index) + replace;
|
|
2965
|
+
let end = string.substring(index + close.length);
|
|
2966
|
+
let nextIndex = end.indexOf(close);
|
|
2967
|
+
return ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end;
|
|
2968
|
+
};
|
|
2969
|
+
var createColors = (enabled = isColorSupported) => ({
|
|
2970
|
+
isColorSupported: enabled,
|
|
2971
|
+
reset: enabled ? (s) => `\x1B[0m${s}\x1B[0m` : String,
|
|
2972
|
+
bold: enabled ? formatter("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m") : String,
|
|
2973
|
+
dim: enabled ? formatter("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m") : String,
|
|
2974
|
+
italic: enabled ? formatter("\x1B[3m", "\x1B[23m") : String,
|
|
2975
|
+
underline: enabled ? formatter("\x1B[4m", "\x1B[24m") : String,
|
|
2976
|
+
inverse: enabled ? formatter("\x1B[7m", "\x1B[27m") : String,
|
|
2977
|
+
hidden: enabled ? formatter("\x1B[8m", "\x1B[28m") : String,
|
|
2978
|
+
strikethrough: enabled ? formatter("\x1B[9m", "\x1B[29m") : String,
|
|
2979
|
+
black: enabled ? formatter("\x1B[30m", "\x1B[39m") : String,
|
|
2980
|
+
red: enabled ? formatter("\x1B[31m", "\x1B[39m") : String,
|
|
2981
|
+
green: enabled ? formatter("\x1B[32m", "\x1B[39m") : String,
|
|
2982
|
+
yellow: enabled ? formatter("\x1B[33m", "\x1B[39m") : String,
|
|
2983
|
+
blue: enabled ? formatter("\x1B[34m", "\x1B[39m") : String,
|
|
2984
|
+
magenta: enabled ? formatter("\x1B[35m", "\x1B[39m") : String,
|
|
2985
|
+
cyan: enabled ? formatter("\x1B[36m", "\x1B[39m") : String,
|
|
2986
|
+
white: enabled ? formatter("\x1B[37m", "\x1B[39m") : String,
|
|
2987
|
+
gray: enabled ? formatter("\x1B[90m", "\x1B[39m") : String,
|
|
2988
|
+
bgBlack: enabled ? formatter("\x1B[40m", "\x1B[49m") : String,
|
|
2989
|
+
bgRed: enabled ? formatter("\x1B[41m", "\x1B[49m") : String,
|
|
2990
|
+
bgGreen: enabled ? formatter("\x1B[42m", "\x1B[49m") : String,
|
|
2991
|
+
bgYellow: enabled ? formatter("\x1B[43m", "\x1B[49m") : String,
|
|
2992
|
+
bgBlue: enabled ? formatter("\x1B[44m", "\x1B[49m") : String,
|
|
2993
|
+
bgMagenta: enabled ? formatter("\x1B[45m", "\x1B[49m") : String,
|
|
2994
|
+
bgCyan: enabled ? formatter("\x1B[46m", "\x1B[49m") : String,
|
|
2995
|
+
bgWhite: enabled ? formatter("\x1B[47m", "\x1B[49m") : String
|
|
2996
|
+
});
|
|
2997
|
+
module2.exports = createColors();
|
|
2998
|
+
module2.exports.createColors = createColors;
|
|
2999
|
+
}
|
|
3000
|
+
});
|
|
3001
|
+
|
|
2953
3002
|
// node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
|
|
2954
3003
|
var require_color_name = __commonJS({
|
|
2955
3004
|
"node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports2, module2) {
|
|
@@ -4497,9 +4546,9 @@ var require_source = __commonJS({
|
|
|
4497
4546
|
}
|
|
4498
4547
|
});
|
|
4499
4548
|
|
|
4500
|
-
// node_modules/.pnpm/@babel+highlight@7.
|
|
4549
|
+
// node_modules/.pnpm/@babel+highlight@7.24.2/node_modules/@babel/highlight/lib/index.js
|
|
4501
4550
|
var require_lib3 = __commonJS({
|
|
4502
|
-
"node_modules/.pnpm/@babel+highlight@7.
|
|
4551
|
+
"node_modules/.pnpm/@babel+highlight@7.24.2/node_modules/@babel/highlight/lib/index.js"(exports2) {
|
|
4503
4552
|
"use strict";
|
|
4504
4553
|
Object.defineProperty(exports2, "__esModule", {
|
|
4505
4554
|
value: true
|
|
@@ -4508,7 +4557,7 @@ var require_lib3 = __commonJS({
|
|
|
4508
4557
|
exports2.shouldHighlight = shouldHighlight;
|
|
4509
4558
|
var _jsTokens = require_js_tokens();
|
|
4510
4559
|
var _helperValidatorIdentifier = require_lib2();
|
|
4511
|
-
var
|
|
4560
|
+
var _picocolors = _interopRequireWildcard(require_picocolors(), true);
|
|
4512
4561
|
function _getRequireWildcardCache(e) {
|
|
4513
4562
|
if ("function" != typeof WeakMap)
|
|
4514
4563
|
return null;
|
|
@@ -4533,18 +4582,20 @@ var require_lib3 = __commonJS({
|
|
|
4533
4582
|
}
|
|
4534
4583
|
return n.default = e, t && t.set(e, n), n;
|
|
4535
4584
|
}
|
|
4585
|
+
var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
|
|
4586
|
+
var compose = (f, g) => (v) => f(g(v));
|
|
4536
4587
|
var sometimesKeywords = /* @__PURE__ */ new Set(["as", "async", "from", "get", "of", "set"]);
|
|
4537
|
-
function getDefs(
|
|
4588
|
+
function getDefs(colors2) {
|
|
4538
4589
|
return {
|
|
4539
|
-
keyword:
|
|
4540
|
-
capitalized:
|
|
4541
|
-
jsxIdentifier:
|
|
4542
|
-
punctuator:
|
|
4543
|
-
number:
|
|
4544
|
-
string:
|
|
4545
|
-
regex:
|
|
4546
|
-
comment:
|
|
4547
|
-
invalid:
|
|
4590
|
+
keyword: colors2.cyan,
|
|
4591
|
+
capitalized: colors2.yellow,
|
|
4592
|
+
jsxIdentifier: colors2.yellow,
|
|
4593
|
+
punctuator: colors2.yellow,
|
|
4594
|
+
number: colors2.magenta,
|
|
4595
|
+
string: colors2.green,
|
|
4596
|
+
regex: colors2.magenta,
|
|
4597
|
+
comment: colors2.gray,
|
|
4598
|
+
invalid: compose(compose(colors2.white, colors2.bgRed), colors2.bold)
|
|
4548
4599
|
};
|
|
4549
4600
|
}
|
|
4550
4601
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -4599,37 +4650,49 @@ var require_lib3 = __commonJS({
|
|
|
4599
4650
|
return highlighted;
|
|
4600
4651
|
}
|
|
4601
4652
|
function shouldHighlight(options) {
|
|
4602
|
-
return
|
|
4653
|
+
return colors.isColorSupported || options.forceColor;
|
|
4603
4654
|
}
|
|
4604
|
-
var
|
|
4605
|
-
function
|
|
4655
|
+
var pcWithForcedColor = void 0;
|
|
4656
|
+
function getColors(forceColor) {
|
|
4606
4657
|
if (forceColor) {
|
|
4607
|
-
var
|
|
4608
|
-
(
|
|
4609
|
-
|
|
4610
|
-
level: 1
|
|
4611
|
-
});
|
|
4612
|
-
return chalkWithForcedColor;
|
|
4658
|
+
var _pcWithForcedColor;
|
|
4659
|
+
(_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
|
|
4660
|
+
return pcWithForcedColor;
|
|
4613
4661
|
}
|
|
4614
|
-
return
|
|
4615
|
-
}
|
|
4616
|
-
{
|
|
4617
|
-
exports2.getChalk = (options) => getChalk2(options.forceColor);
|
|
4662
|
+
return colors;
|
|
4618
4663
|
}
|
|
4619
4664
|
function highlight(code, options = {}) {
|
|
4620
4665
|
if (code !== "" && shouldHighlight(options)) {
|
|
4621
|
-
const defs = getDefs(
|
|
4666
|
+
const defs = getDefs(getColors(options.forceColor));
|
|
4622
4667
|
return highlightTokens(defs, code);
|
|
4623
4668
|
} else {
|
|
4624
4669
|
return code;
|
|
4625
4670
|
}
|
|
4626
4671
|
}
|
|
4672
|
+
{
|
|
4673
|
+
let chalk2, chalkWithForcedColor;
|
|
4674
|
+
exports2.getChalk = ({
|
|
4675
|
+
forceColor
|
|
4676
|
+
}) => {
|
|
4677
|
+
var _chalk;
|
|
4678
|
+
(_chalk = chalk2) != null ? _chalk : chalk2 = require_source();
|
|
4679
|
+
if (forceColor) {
|
|
4680
|
+
var _chalkWithForcedColor;
|
|
4681
|
+
(_chalkWithForcedColor = chalkWithForcedColor) != null ? _chalkWithForcedColor : chalkWithForcedColor = new chalk2.constructor({
|
|
4682
|
+
enabled: true,
|
|
4683
|
+
level: 1
|
|
4684
|
+
});
|
|
4685
|
+
return chalkWithForcedColor;
|
|
4686
|
+
}
|
|
4687
|
+
return chalk2;
|
|
4688
|
+
};
|
|
4689
|
+
}
|
|
4627
4690
|
}
|
|
4628
4691
|
});
|
|
4629
4692
|
|
|
4630
|
-
// node_modules/.pnpm/@babel+code-frame@7.
|
|
4693
|
+
// node_modules/.pnpm/@babel+code-frame@7.24.2/node_modules/@babel/code-frame/lib/index.js
|
|
4631
4694
|
var require_lib4 = __commonJS({
|
|
4632
|
-
"node_modules/.pnpm/@babel+code-frame@7.
|
|
4695
|
+
"node_modules/.pnpm/@babel+code-frame@7.24.2/node_modules/@babel/code-frame/lib/index.js"(exports2) {
|
|
4633
4696
|
"use strict";
|
|
4634
4697
|
Object.defineProperty(exports2, "__esModule", {
|
|
4635
4698
|
value: true
|
|
@@ -4637,7 +4700,7 @@ var require_lib4 = __commonJS({
|
|
|
4637
4700
|
exports2.codeFrameColumns = codeFrameColumns;
|
|
4638
4701
|
exports2.default = _default;
|
|
4639
4702
|
var _highlight = require_lib3();
|
|
4640
|
-
var
|
|
4703
|
+
var _picocolors = _interopRequireWildcard(require_picocolors(), true);
|
|
4641
4704
|
function _getRequireWildcardCache(e) {
|
|
4642
4705
|
if ("function" != typeof WeakMap)
|
|
4643
4706
|
return null;
|
|
@@ -4662,24 +4725,23 @@ var require_lib4 = __commonJS({
|
|
|
4662
4725
|
}
|
|
4663
4726
|
return n.default = e, t && t.set(e, n), n;
|
|
4664
4727
|
}
|
|
4665
|
-
var
|
|
4666
|
-
|
|
4728
|
+
var colors = typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, _picocolors.createColors)(false) : _picocolors.default;
|
|
4729
|
+
var compose = (f, g) => (v) => f(g(v));
|
|
4730
|
+
var pcWithForcedColor = void 0;
|
|
4731
|
+
function getColors(forceColor) {
|
|
4667
4732
|
if (forceColor) {
|
|
4668
|
-
var
|
|
4669
|
-
(
|
|
4670
|
-
|
|
4671
|
-
level: 1
|
|
4672
|
-
});
|
|
4673
|
-
return chalkWithForcedColor;
|
|
4733
|
+
var _pcWithForcedColor;
|
|
4734
|
+
(_pcWithForcedColor = pcWithForcedColor) != null ? _pcWithForcedColor : pcWithForcedColor = (0, _picocolors.createColors)(true);
|
|
4735
|
+
return pcWithForcedColor;
|
|
4674
4736
|
}
|
|
4675
|
-
return
|
|
4737
|
+
return colors;
|
|
4676
4738
|
}
|
|
4677
4739
|
var deprecationWarningShown = false;
|
|
4678
|
-
function getDefs(
|
|
4740
|
+
function getDefs(colors2) {
|
|
4679
4741
|
return {
|
|
4680
|
-
gutter:
|
|
4681
|
-
marker:
|
|
4682
|
-
message:
|
|
4742
|
+
gutter: colors2.gray,
|
|
4743
|
+
marker: compose(colors2.red, colors2.bold),
|
|
4744
|
+
message: compose(colors2.red, colors2.bold)
|
|
4683
4745
|
};
|
|
4684
4746
|
}
|
|
4685
4747
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -4741,10 +4803,10 @@ var require_lib4 = __commonJS({
|
|
|
4741
4803
|
}
|
|
4742
4804
|
function codeFrameColumns(rawLines, loc, opts = {}) {
|
|
4743
4805
|
const highlighted = (opts.highlightCode || opts.forceColor) && (0, _highlight.shouldHighlight)(opts);
|
|
4744
|
-
const
|
|
4745
|
-
const defs = getDefs(
|
|
4746
|
-
const maybeHighlight = (
|
|
4747
|
-
return highlighted ?
|
|
4806
|
+
const colors2 = getColors(opts.forceColor);
|
|
4807
|
+
const defs = getDefs(colors2);
|
|
4808
|
+
const maybeHighlight = (fmt, string) => {
|
|
4809
|
+
return highlighted ? fmt(string) : string;
|
|
4748
4810
|
};
|
|
4749
4811
|
const lines = rawLines.split(NEWLINE);
|
|
4750
4812
|
const {
|
|
@@ -4781,7 +4843,7 @@ var require_lib4 = __commonJS({
|
|
|
4781
4843
|
${frame}`;
|
|
4782
4844
|
}
|
|
4783
4845
|
if (highlighted) {
|
|
4784
|
-
return
|
|
4846
|
+
return colors2.reset(frame);
|
|
4785
4847
|
} else {
|
|
4786
4848
|
return frame;
|
|
4787
4849
|
}
|
|
@@ -260708,6 +260770,7 @@ __export(workspace_tools_exports, {
|
|
|
260708
260770
|
typesNodeVersion: () => typesNodeVersion,
|
|
260709
260771
|
typescriptVersion: () => typescriptVersion,
|
|
260710
260772
|
typiaExecutorFn: () => typiaExecutorFn,
|
|
260773
|
+
unbuildExecutorFn: () => unbuildExecutorFn,
|
|
260711
260774
|
verdaccioVersion: () => verdaccioVersion,
|
|
260712
260775
|
withRunExecutor: () => withRunExecutor,
|
|
260713
260776
|
withRunGenerator: () => withRunGenerator
|
|
@@ -264499,6 +264562,63 @@ function createCliOptions(obj) {
|
|
|
264499
264562
|
return args;
|
|
264500
264563
|
}
|
|
264501
264564
|
|
|
264565
|
+
// packages/workspace-tools/src/executors/unbuild/executor.ts
|
|
264566
|
+
async function unbuildExecutorFn(options, context, config) {
|
|
264567
|
+
const { writeDebug: writeDebug2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
264568
|
+
const { unbuild } = await import("@storm-software/build-tools");
|
|
264569
|
+
writeInfo2(config, "\u{1F4E6} Running Storm Unbuild executor on the workspace");
|
|
264570
|
+
writeDebug2(
|
|
264571
|
+
config,
|
|
264572
|
+
`\u2699\uFE0F Executor options:
|
|
264573
|
+
${Object.keys(options).map(
|
|
264574
|
+
(key) => `${key}: ${!options[key] || _isPrimitive(options[key]) ? options[key] : _isFunction2(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
264575
|
+
).join("\n")}
|
|
264576
|
+
`
|
|
264577
|
+
);
|
|
264578
|
+
if (!context.projectsConfigurations?.projects || !context.projectName || !context.projectsConfigurations.projects[context.projectName]) {
|
|
264579
|
+
throw new Error(
|
|
264580
|
+
"The Build process failed because the context is not valid. Please run this command from a workspace."
|
|
264581
|
+
);
|
|
264582
|
+
}
|
|
264583
|
+
await unbuild(config, {
|
|
264584
|
+
...options,
|
|
264585
|
+
projectRoot: context.projectsConfigurations.projects?.[context.projectName]?.root,
|
|
264586
|
+
projectName: context.projectName,
|
|
264587
|
+
sourceRoot: context.projectsConfigurations.projects?.[context.projectName]?.sourceRoot
|
|
264588
|
+
});
|
|
264589
|
+
writeSuccess2(config, "\u26A1 The Unbuild process has completed successfully");
|
|
264590
|
+
return {
|
|
264591
|
+
success: true
|
|
264592
|
+
};
|
|
264593
|
+
}
|
|
264594
|
+
var executor_default = withRunExecutor(
|
|
264595
|
+
"TypeScript Unbuild processing",
|
|
264596
|
+
unbuildExecutorFn,
|
|
264597
|
+
{
|
|
264598
|
+
skipReadingConfig: false,
|
|
264599
|
+
hooks: {
|
|
264600
|
+
applyDefaultOptions: async (options, config) => {
|
|
264601
|
+
const { applyDefaultUnbuildOptions } = await import("@storm-software/build-tools");
|
|
264602
|
+
return applyDefaultUnbuildOptions(options, config);
|
|
264603
|
+
}
|
|
264604
|
+
}
|
|
264605
|
+
}
|
|
264606
|
+
);
|
|
264607
|
+
var _isPrimitive = (value) => {
|
|
264608
|
+
try {
|
|
264609
|
+
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
264610
|
+
} catch (e) {
|
|
264611
|
+
return false;
|
|
264612
|
+
}
|
|
264613
|
+
};
|
|
264614
|
+
var _isFunction2 = (value) => {
|
|
264615
|
+
try {
|
|
264616
|
+
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
264617
|
+
} catch (e) {
|
|
264618
|
+
return false;
|
|
264619
|
+
}
|
|
264620
|
+
};
|
|
264621
|
+
|
|
264502
264622
|
// packages/workspace-tools/src/executors/rolldown/executor.ts
|
|
264503
264623
|
async function rolldownExecutorFn(options, context, config) {
|
|
264504
264624
|
const { writeDebug: writeDebug2, writeInfo: writeInfo2, writeSuccess: writeSuccess2 } = await Promise.resolve().then(() => (init_src2(), src_exports));
|
|
@@ -264508,7 +264628,7 @@ async function rolldownExecutorFn(options, context, config) {
|
|
|
264508
264628
|
config,
|
|
264509
264629
|
`\u2699\uFE0F Executor options:
|
|
264510
264630
|
${Object.keys(options).map(
|
|
264511
|
-
(key) => `${key}: ${!options[key] ||
|
|
264631
|
+
(key) => `${key}: ${!options[key] || _isPrimitive2(options[key]) ? options[key] : _isFunction3(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
264512
264632
|
).join("\n")}
|
|
264513
264633
|
`
|
|
264514
264634
|
);
|
|
@@ -264528,7 +264648,7 @@ ${Object.keys(options).map(
|
|
|
264528
264648
|
success: true
|
|
264529
264649
|
};
|
|
264530
264650
|
}
|
|
264531
|
-
var
|
|
264651
|
+
var executor_default2 = withRunExecutor(
|
|
264532
264652
|
"TypeScript Build using Rolldown",
|
|
264533
264653
|
rolldownExecutorFn,
|
|
264534
264654
|
{
|
|
@@ -264541,14 +264661,14 @@ var executor_default = withRunExecutor(
|
|
|
264541
264661
|
}
|
|
264542
264662
|
}
|
|
264543
264663
|
);
|
|
264544
|
-
var
|
|
264664
|
+
var _isPrimitive2 = (value) => {
|
|
264545
264665
|
try {
|
|
264546
264666
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
264547
264667
|
} catch (e) {
|
|
264548
264668
|
return false;
|
|
264549
264669
|
}
|
|
264550
264670
|
};
|
|
264551
|
-
var
|
|
264671
|
+
var _isFunction3 = (value) => {
|
|
264552
264672
|
try {
|
|
264553
264673
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
264554
264674
|
} catch (e) {
|
|
@@ -264569,7 +264689,7 @@ async function tsupExecutorFn(options, context, config) {
|
|
|
264569
264689
|
config,
|
|
264570
264690
|
`\u2699\uFE0F Executor options:
|
|
264571
264691
|
${Object.keys(options).map(
|
|
264572
|
-
(key) => `${key}: ${!options[key] ||
|
|
264692
|
+
(key) => `${key}: ${!options[key] || _isPrimitive3(options[key]) ? options[key] : _isFunction4(options[key]) ? "<function>" : JSON.stringify(options[key])}`
|
|
264573
264693
|
).join("\n")}
|
|
264574
264694
|
`
|
|
264575
264695
|
);
|
|
@@ -264589,20 +264709,20 @@ ${Object.keys(options).map(
|
|
|
264589
264709
|
success: true
|
|
264590
264710
|
};
|
|
264591
264711
|
}
|
|
264592
|
-
var
|
|
264712
|
+
var executor_default3 = withRunExecutor("TypeScript Build using tsup", tsupExecutorFn, {
|
|
264593
264713
|
skipReadingConfig: false,
|
|
264594
264714
|
hooks: {
|
|
264595
264715
|
applyDefaultOptions: import_build_tools.applyDefaultOptions
|
|
264596
264716
|
}
|
|
264597
264717
|
});
|
|
264598
|
-
var
|
|
264718
|
+
var _isPrimitive3 = (value) => {
|
|
264599
264719
|
try {
|
|
264600
264720
|
return value === void 0 || value === null || typeof value !== "object" && typeof value !== "function";
|
|
264601
264721
|
} catch (e) {
|
|
264602
264722
|
return false;
|
|
264603
264723
|
}
|
|
264604
264724
|
};
|
|
264605
|
-
var
|
|
264725
|
+
var _isFunction4 = (value) => {
|
|
264606
264726
|
try {
|
|
264607
264727
|
return value instanceof Function || typeof value === "function" || !!(value?.constructor && value?.call && value?.apply);
|
|
264608
264728
|
} catch (e) {
|
|
@@ -264632,7 +264752,7 @@ var tsupNeutralBuildExecutorFn = (options, context, config) => {
|
|
|
264632
264752
|
config
|
|
264633
264753
|
);
|
|
264634
264754
|
};
|
|
264635
|
-
var
|
|
264755
|
+
var executor_default4 = withRunExecutor(
|
|
264636
264756
|
"TypeScript Build (Neutral Platform)",
|
|
264637
264757
|
tsupNeutralBuildExecutorFn,
|
|
264638
264758
|
{
|
|
@@ -264674,7 +264794,7 @@ var tsupNodeBuildExecutorFn = (options, context, config) => {
|
|
|
264674
264794
|
config
|
|
264675
264795
|
);
|
|
264676
264796
|
};
|
|
264677
|
-
var
|
|
264797
|
+
var executor_default5 = withRunExecutor(
|
|
264678
264798
|
"TypeScript Build (NodeJs Platform)",
|
|
264679
264799
|
tsupNodeBuildExecutorFn,
|
|
264680
264800
|
{
|
|
@@ -264717,7 +264837,7 @@ var tsupBrowserBuildExecutorFn = (options, context, config) => {
|
|
|
264717
264837
|
config
|
|
264718
264838
|
);
|
|
264719
264839
|
};
|
|
264720
|
-
var
|
|
264840
|
+
var executor_default6 = withRunExecutor(
|
|
264721
264841
|
"TypeScript Build (Browser Platforms)",
|
|
264722
264842
|
tsupBrowserBuildExecutorFn,
|
|
264723
264843
|
{
|
|
@@ -264755,7 +264875,7 @@ async function typiaExecutorFn(options, _, config) {
|
|
|
264755
264875
|
success: true
|
|
264756
264876
|
};
|
|
264757
264877
|
}
|
|
264758
|
-
var
|
|
264878
|
+
var executor_default7 = withRunExecutor(
|
|
264759
264879
|
"Typia runtime validation generator",
|
|
264760
264880
|
typiaExecutorFn,
|
|
264761
264881
|
{
|
|
@@ -266908,6 +267028,7 @@ var DEFAULT_CONVENTIONAL_COMMITS_CONFIG = {
|
|
|
266908
267028
|
typesNodeVersion,
|
|
266909
267029
|
typescriptVersion,
|
|
266910
267030
|
typiaExecutorFn,
|
|
267031
|
+
unbuildExecutorFn,
|
|
266911
267032
|
verdaccioVersion,
|
|
266912
267033
|
withRunExecutor,
|
|
266913
267034
|
withRunGenerator
|