@storm-software/workspace-tools 1.226.3 → 1.227.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 +7 -0
- package/index.js +1975 -1778
- package/meta.json +3523 -3377
- package/package.json +1 -1
- package/src/base/base-executor.js +544 -375
- package/src/base/base-generator.js +544 -375
- package/src/base/index.js +544 -375
- package/src/executors/cargo-build/executor.js +547 -378
- package/src/executors/cargo-check/executor.js +547 -378
- package/src/executors/cargo-clippy/executor.js +547 -378
- package/src/executors/cargo-doc/executor.js +549 -380
- package/src/executors/cargo-format/executor.js +547 -378
- package/src/executors/clean-package/executor.js +613 -444
- package/src/executors/esbuild/executor.js +1183 -1014
- package/src/executors/size-limit/executor.js +550 -381
- package/src/executors/typia/executor.js +1243 -1046
- package/src/executors/unbuild/executor.js +649 -480
- package/src/generators/browser-library/generator.js +544 -375
- package/src/generators/config-schema/generator.js +544 -375
- package/src/generators/neutral-library/generator.js +544 -375
- package/src/generators/node-library/generator.js +544 -375
- package/src/generators/preset/generator.js +544 -375
- package/src/generators/release-version/generator.js +580 -411
- package/src/plugins/typescript/index.js +61 -59
- package/src/utils/index.js +658 -630
|
@@ -41,10 +41,10 @@ var import_nx_json = require("nx/src/config/nx-json.js");
|
|
|
41
41
|
var import_fileutils = require("nx/src/utils/fileutils");
|
|
42
42
|
var import_package_json = require("nx/src/utils/package-json");
|
|
43
43
|
|
|
44
|
-
// node_modules/.pnpm/pkg-types@1.3.
|
|
44
|
+
// node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
45
45
|
var import_node_fs2 = require("node:fs");
|
|
46
46
|
|
|
47
|
-
// node_modules/.pnpm/pathe@
|
|
47
|
+
// node_modules/.pnpm/pathe@2.0.1/node_modules/pathe/dist/shared/pathe.BLwDEnA5.mjs
|
|
48
48
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
49
49
|
function normalizeWindowsPath(input = "") {
|
|
50
50
|
if (!input) {
|
|
@@ -55,53 +55,55 @@ function normalizeWindowsPath(input = "") {
|
|
|
55
55
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
56
56
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
57
57
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
58
|
-
var normalize = function(
|
|
59
|
-
if (
|
|
58
|
+
var normalize = function(path2) {
|
|
59
|
+
if (path2.length === 0) {
|
|
60
60
|
return ".";
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
const isUNCPath =
|
|
64
|
-
const isPathAbsolute = isAbsolute(
|
|
65
|
-
const trailingSeparator =
|
|
66
|
-
|
|
67
|
-
if (
|
|
62
|
+
path2 = normalizeWindowsPath(path2);
|
|
63
|
+
const isUNCPath = path2.match(_UNC_REGEX);
|
|
64
|
+
const isPathAbsolute = isAbsolute(path2);
|
|
65
|
+
const trailingSeparator = path2[path2.length - 1] === "/";
|
|
66
|
+
path2 = normalizeString(path2, !isPathAbsolute);
|
|
67
|
+
if (path2.length === 0) {
|
|
68
68
|
if (isPathAbsolute) {
|
|
69
69
|
return "/";
|
|
70
70
|
}
|
|
71
71
|
return trailingSeparator ? "./" : ".";
|
|
72
72
|
}
|
|
73
73
|
if (trailingSeparator) {
|
|
74
|
-
|
|
74
|
+
path2 += "/";
|
|
75
75
|
}
|
|
76
|
-
if (_DRIVE_LETTER_RE.test(
|
|
77
|
-
|
|
76
|
+
if (_DRIVE_LETTER_RE.test(path2)) {
|
|
77
|
+
path2 += "/";
|
|
78
78
|
}
|
|
79
79
|
if (isUNCPath) {
|
|
80
80
|
if (!isPathAbsolute) {
|
|
81
|
-
return `//./${
|
|
81
|
+
return `//./${path2}`;
|
|
82
82
|
}
|
|
83
|
-
return `//${
|
|
83
|
+
return `//${path2}`;
|
|
84
84
|
}
|
|
85
|
-
return isPathAbsolute && !isAbsolute(
|
|
85
|
+
return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
|
|
86
86
|
};
|
|
87
|
-
var join = function(...
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (
|
|
94
|
-
|
|
95
|
-
|
|
87
|
+
var join = function(...segments) {
|
|
88
|
+
let path2 = "";
|
|
89
|
+
for (const seg of segments) {
|
|
90
|
+
if (!seg) {
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
if (path2.length > 0) {
|
|
94
|
+
const pathTrailing = path2[path2.length - 1] === "/";
|
|
95
|
+
const segLeading = seg[0] === "/";
|
|
96
|
+
const both = pathTrailing && segLeading;
|
|
97
|
+
if (both) {
|
|
98
|
+
path2 += seg.slice(1);
|
|
96
99
|
} else {
|
|
97
|
-
|
|
100
|
+
path2 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
98
101
|
}
|
|
102
|
+
} else {
|
|
103
|
+
path2 += seg;
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
|
-
|
|
102
|
-
return ".";
|
|
103
|
-
}
|
|
104
|
-
return normalize(joined.replace(/\/\/+/g, "/"));
|
|
106
|
+
return normalize(path2);
|
|
105
107
|
};
|
|
106
108
|
function cwd() {
|
|
107
109
|
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
@@ -114,12 +116,12 @@ var resolve = function(...arguments_) {
|
|
|
114
116
|
let resolvedPath = "";
|
|
115
117
|
let resolvedAbsolute = false;
|
|
116
118
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
117
|
-
const
|
|
118
|
-
if (!
|
|
119
|
+
const path2 = index >= 0 ? arguments_[index] : cwd();
|
|
120
|
+
if (!path2 || path2.length === 0) {
|
|
119
121
|
continue;
|
|
120
122
|
}
|
|
121
|
-
resolvedPath = `${
|
|
122
|
-
resolvedAbsolute = isAbsolute(
|
|
123
|
+
resolvedPath = `${path2}/${resolvedPath}`;
|
|
124
|
+
resolvedAbsolute = isAbsolute(path2);
|
|
123
125
|
}
|
|
124
126
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
125
127
|
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
@@ -127,15 +129,15 @@ var resolve = function(...arguments_) {
|
|
|
127
129
|
}
|
|
128
130
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
129
131
|
};
|
|
130
|
-
function normalizeString(
|
|
132
|
+
function normalizeString(path2, allowAboveRoot) {
|
|
131
133
|
let res = "";
|
|
132
134
|
let lastSegmentLength = 0;
|
|
133
135
|
let lastSlash = -1;
|
|
134
136
|
let dots = 0;
|
|
135
137
|
let char = null;
|
|
136
|
-
for (let index = 0; index <=
|
|
137
|
-
if (index <
|
|
138
|
-
char =
|
|
138
|
+
for (let index = 0; index <= path2.length; ++index) {
|
|
139
|
+
if (index < path2.length) {
|
|
140
|
+
char = path2[index];
|
|
139
141
|
} else if (char === "/") {
|
|
140
142
|
break;
|
|
141
143
|
} else {
|
|
@@ -171,9 +173,9 @@ function normalizeString(path3, allowAboveRoot) {
|
|
|
171
173
|
}
|
|
172
174
|
} else {
|
|
173
175
|
if (res.length > 0) {
|
|
174
|
-
res += `/${
|
|
176
|
+
res += `/${path2.slice(lastSlash + 1, index)}`;
|
|
175
177
|
} else {
|
|
176
|
-
res =
|
|
178
|
+
res = path2.slice(lastSlash + 1, index);
|
|
177
179
|
}
|
|
178
180
|
lastSegmentLength = index - lastSlash - 1;
|
|
179
181
|
}
|
|
@@ -5718,7 +5720,7 @@ Parser.acorn = {
|
|
|
5718
5720
|
nonASCIIwhitespace
|
|
5719
5721
|
};
|
|
5720
5722
|
|
|
5721
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
5723
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
5722
5724
|
var import_node_module = require("node:module");
|
|
5723
5725
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
5724
5726
|
|
|
@@ -5739,17 +5741,17 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
5739
5741
|
if (hasTrailingSlash(input, true)) {
|
|
5740
5742
|
return input || "/";
|
|
5741
5743
|
}
|
|
5742
|
-
let
|
|
5744
|
+
let path2 = input;
|
|
5743
5745
|
let fragment = "";
|
|
5744
5746
|
const fragmentIndex = input.indexOf("#");
|
|
5745
5747
|
if (fragmentIndex >= 0) {
|
|
5746
|
-
|
|
5748
|
+
path2 = input.slice(0, fragmentIndex);
|
|
5747
5749
|
fragment = input.slice(fragmentIndex);
|
|
5748
|
-
if (!
|
|
5750
|
+
if (!path2) {
|
|
5749
5751
|
return fragment;
|
|
5750
5752
|
}
|
|
5751
5753
|
}
|
|
5752
|
-
const [s0, ...s] =
|
|
5754
|
+
const [s0, ...s] = path2.split("?");
|
|
5753
5755
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
5754
5756
|
}
|
|
5755
5757
|
function isNonEmptyURL(url) {
|
|
@@ -5769,7 +5771,7 @@ function joinURL(base, ...input) {
|
|
|
5769
5771
|
}
|
|
5770
5772
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
5771
5773
|
|
|
5772
|
-
// node_modules/.pnpm/mlly@1.7.
|
|
5774
|
+
// node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
5773
5775
|
var import_node_url = require("node:url");
|
|
5774
5776
|
var import_node_assert = __toESM(require("node:assert"), 1);
|
|
5775
5777
|
var import_node_process = __toESM(require("node:process"), 1);
|
|
@@ -5777,8 +5779,8 @@ var import_node_path = __toESM(require("node:path"), 1);
|
|
|
5777
5779
|
var import_node_v8 = __toESM(require("node:v8"), 1);
|
|
5778
5780
|
var import_node_util = require("node:util");
|
|
5779
5781
|
var BUILTIN_MODULES = new Set(import_node_module.builtinModules);
|
|
5780
|
-
function normalizeSlash(
|
|
5781
|
-
return
|
|
5782
|
+
function normalizeSlash(path2) {
|
|
5783
|
+
return path2.replace(/\\/g, "/");
|
|
5782
5784
|
}
|
|
5783
5785
|
var own$1 = {}.hasOwnProperty;
|
|
5784
5786
|
var classRegExp = /^([A-Z][a-z\d]*)+$/;
|
|
@@ -5891,8 +5893,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
|
5891
5893
|
* @param {string} [base]
|
|
5892
5894
|
* @param {string} [message]
|
|
5893
5895
|
*/
|
|
5894
|
-
(
|
|
5895
|
-
return `Invalid package config ${
|
|
5896
|
+
(path2, base, message) => {
|
|
5897
|
+
return `Invalid package config ${path2}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
5896
5898
|
},
|
|
5897
5899
|
Error
|
|
5898
5900
|
);
|
|
@@ -5924,8 +5926,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
|
|
|
5924
5926
|
* @param {string} base
|
|
5925
5927
|
* @param {boolean} [exactUrl]
|
|
5926
5928
|
*/
|
|
5927
|
-
(
|
|
5928
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${
|
|
5929
|
+
(path2, base, exactUrl = false) => {
|
|
5930
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path2}' imported from ${base}`;
|
|
5929
5931
|
},
|
|
5930
5932
|
Error
|
|
5931
5933
|
);
|
|
@@ -5976,8 +5978,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
|
5976
5978
|
* @param {string} extension
|
|
5977
5979
|
* @param {string} path
|
|
5978
5980
|
*/
|
|
5979
|
-
(extension,
|
|
5980
|
-
return `Unknown file extension "${extension}" for ${
|
|
5981
|
+
(extension, path2) => {
|
|
5982
|
+
return `Unknown file extension "${extension}" for ${path2}`;
|
|
5981
5983
|
},
|
|
5982
5984
|
TypeError
|
|
5983
5985
|
);
|
|
@@ -6349,9 +6351,9 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
6349
6351
|
);
|
|
6350
6352
|
}
|
|
6351
6353
|
}
|
|
6352
|
-
function tryStatSync(
|
|
6354
|
+
function tryStatSync(path2) {
|
|
6353
6355
|
try {
|
|
6354
|
-
return (0, import_node_fs.statSync)(
|
|
6356
|
+
return (0, import_node_fs.statSync)(path2);
|
|
6355
6357
|
} catch {
|
|
6356
6358
|
}
|
|
6357
6359
|
}
|
|
@@ -6442,7 +6444,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
6442
6444
|
error.url = String(resolved);
|
|
6443
6445
|
throw error;
|
|
6444
6446
|
}
|
|
6445
|
-
|
|
6447
|
+
{
|
|
6446
6448
|
const real = (0, import_node_fs.realpathSync)(filePath);
|
|
6447
6449
|
const { search, hash } = resolved;
|
|
6448
6450
|
resolved = (0, import_node_url.pathToFileURL)(real + (filePath.endsWith(import_node_path.default.sep) ? "/" : ""));
|
|
@@ -6989,7 +6991,7 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
6989
6991
|
if (resolved.protocol !== "file:") {
|
|
6990
6992
|
return resolved;
|
|
6991
6993
|
}
|
|
6992
|
-
return finalizeResolution(resolved, base
|
|
6994
|
+
return finalizeResolution(resolved, base);
|
|
6993
6995
|
}
|
|
6994
6996
|
function fileURLToPath(id) {
|
|
6995
6997
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
@@ -7529,7 +7531,7 @@ function h(n, l) {
|
|
|
7529
7531
|
return N(n, g, l), g;
|
|
7530
7532
|
}
|
|
7531
7533
|
|
|
7532
|
-
// node_modules/.pnpm/pkg-types@1.3.
|
|
7534
|
+
// node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
7533
7535
|
var defaultFindOptions = {
|
|
7534
7536
|
startingFrom: ".",
|
|
7535
7537
|
rootPattern: /^node_modules$/,
|