@storm-software/workspace-tools 1.13.26 → 1.14.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 +20 -0
- package/README.md +1 -1
- package/index.js +3105 -1756
- package/meta.json +1 -1
- package/package.json +2 -4
- package/src/executors/tsup/executor.js +636 -256
- package/src/executors/tsup/get-config.js +19 -81
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +8 -0
- package/src/generators/preset/generator.js +8 -2
- package/src/executors/tsup/rollup.js +0 -39248
|
@@ -240,9 +240,9 @@ var require_brace_expansion = __commonJS({
|
|
|
240
240
|
}
|
|
241
241
|
});
|
|
242
242
|
|
|
243
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
243
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-EPAEWGCP.js
|
|
244
244
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
245
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
245
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-EPAEWGCP.js"(exports) {
|
|
246
246
|
"use strict";
|
|
247
247
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
248
248
|
var version = "8.0.0";
|
|
@@ -6549,9 +6549,9 @@ var require_resolve_from = __commonJS({
|
|
|
6549
6549
|
}
|
|
6550
6550
|
});
|
|
6551
6551
|
|
|
6552
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
6552
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-GQ77QZBO.js
|
|
6553
6553
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
6554
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
6554
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-GQ77QZBO.js"(exports) {
|
|
6555
6555
|
"use strict";
|
|
6556
6556
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6557
6557
|
function _interopRequireDefault(obj) {
|
|
@@ -6829,9 +6829,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
6829
6829
|
}
|
|
6830
6830
|
});
|
|
6831
6831
|
|
|
6832
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
6832
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-UIX4URMV.js
|
|
6833
6833
|
var require_chunk_UIX4URMV = __commonJS({
|
|
6834
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
6834
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-UIX4URMV.js"(exports) {
|
|
6835
6835
|
"use strict";
|
|
6836
6836
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6837
6837
|
function _interopRequireWildcard(obj) {
|
|
@@ -7765,9 +7765,9 @@ var require_dist2 = __commonJS({
|
|
|
7765
7765
|
}
|
|
7766
7766
|
});
|
|
7767
7767
|
|
|
7768
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
7768
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-7G76EW2R.js
|
|
7769
7769
|
var require_chunk_7G76EW2R = __commonJS({
|
|
7770
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
7770
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/chunk-7G76EW2R.js"(exports) {
|
|
7771
7771
|
"use strict";
|
|
7772
7772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7773
7773
|
function _interopRequireDefault(obj) {
|
|
@@ -61573,9 +61573,9 @@ var require_chokidar = __commonJS({
|
|
|
61573
61573
|
}
|
|
61574
61574
|
});
|
|
61575
61575
|
|
|
61576
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
61576
|
+
// node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/index.js
|
|
61577
61577
|
var require_dist5 = __commonJS({
|
|
61578
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
61578
|
+
"node_modules/.pnpm/tsup@8.0.0_patch_hash=sptrsn6zz5ml3kygqdc3cxvabq_@microsoft+api-extractor@7.38.3_@swc+core@1._4of6ipqwh6qeio3ureh6e3ihlq/node_modules/tsup/dist/index.js"(exports) {
|
|
61579
61579
|
"use strict";
|
|
61580
61580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61581
61581
|
function _interopRequireDefault(obj) {
|
|
@@ -63929,59 +63929,6 @@ var require_dist5 = __commonJS({
|
|
|
63929
63929
|
throw new Error("Unknown declaration");
|
|
63930
63930
|
}
|
|
63931
63931
|
}
|
|
63932
|
-
function formatDistributionExports(exports2, fromFilePath, toFilePath) {
|
|
63933
|
-
let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
|
|
63934
|
-
void 0,
|
|
63935
|
-
_path2.default.posix.relative(
|
|
63936
|
-
_path2.default.posix.dirname(_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, fromFilePath))),
|
|
63937
|
-
_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, toFilePath))
|
|
63938
|
-
)
|
|
63939
|
-
);
|
|
63940
|
-
if (!importPath.match(/^\.+\//)) {
|
|
63941
|
-
importPath = "./" + importPath;
|
|
63942
|
-
}
|
|
63943
|
-
let seen = {
|
|
63944
|
-
named: /* @__PURE__ */ new Set(),
|
|
63945
|
-
module: /* @__PURE__ */ new Set()
|
|
63946
|
-
};
|
|
63947
|
-
const lines = exports2.filter((declaration) => {
|
|
63948
|
-
if (declaration.kind === "module") {
|
|
63949
|
-
if (seen.module.has(declaration.moduleName)) {
|
|
63950
|
-
return false;
|
|
63951
|
-
}
|
|
63952
|
-
seen.module.add(declaration.moduleName);
|
|
63953
|
-
return true;
|
|
63954
|
-
} else if (declaration.kind === "named") {
|
|
63955
|
-
if (seen.named.has(declaration.name)) {
|
|
63956
|
-
return false;
|
|
63957
|
-
}
|
|
63958
|
-
seen.named.add(declaration.name);
|
|
63959
|
-
return true;
|
|
63960
|
-
} else {
|
|
63961
|
-
return false;
|
|
63962
|
-
}
|
|
63963
|
-
}).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
|
|
63964
|
-
if (lines.length === 0) {
|
|
63965
|
-
lines.push("export {};");
|
|
63966
|
-
}
|
|
63967
|
-
return lines.join("\n") + "\n";
|
|
63968
|
-
}
|
|
63969
|
-
function formatDistributionExport(declaration, dest) {
|
|
63970
|
-
if (declaration.kind === "named") {
|
|
63971
|
-
return [
|
|
63972
|
-
"export",
|
|
63973
|
-
declaration.isTypeOnly ? "type" : "",
|
|
63974
|
-
"{",
|
|
63975
|
-
declaration.alias,
|
|
63976
|
-
declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
|
|
63977
|
-
"} from",
|
|
63978
|
-
`'${dest}';`
|
|
63979
|
-
].filter(_chunkGQ77QZBOjs.truthy).join(" ");
|
|
63980
|
-
} else if (declaration.kind === "module") {
|
|
63981
|
-
return `export * from '${declaration.moduleName}';`;
|
|
63982
|
-
}
|
|
63983
|
-
return "";
|
|
63984
|
-
}
|
|
63985
63932
|
var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
|
|
63986
63933
|
function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
|
|
63987
63934
|
let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
|
|
@@ -64120,20 +64067,6 @@ var require_dist5 = __commonJS({
|
|
|
64120
64067
|
dtsExtension,
|
|
64121
64068
|
options.tsconfig || "tsconfig.json"
|
|
64122
64069
|
);
|
|
64123
|
-
for (let [out, sourceFileName] of Object.entries(
|
|
64124
|
-
options.experimentalDts.entry
|
|
64125
|
-
)) {
|
|
64126
|
-
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
|
|
64127
|
-
const outFileName = _path2.default.join(outDir, out + dtsExtension);
|
|
64128
|
-
const currentExports = exports2.filter(
|
|
64129
|
-
(declaration) => declaration.sourceFileName === sourceFileName
|
|
64130
|
-
);
|
|
64131
|
-
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
64132
|
-
void 0,
|
|
64133
|
-
outFileName,
|
|
64134
|
-
formatDistributionExports(currentExports, outFileName, outDir)
|
|
64135
|
-
);
|
|
64136
|
-
}
|
|
64137
64070
|
}
|
|
64138
64071
|
async function runDtsRollup(options, exports2) {
|
|
64139
64072
|
try {
|
|
@@ -70818,6 +70751,7 @@ function modernConfig({
|
|
|
70818
70751
|
define: define2,
|
|
70819
70752
|
env: env2,
|
|
70820
70753
|
tsCdnStorage,
|
|
70754
|
+
plugins,
|
|
70821
70755
|
dtsTsConfig
|
|
70822
70756
|
}) {
|
|
70823
70757
|
let outputPath = (0, import_path2.join)(outDir, "dist", "modern");
|
|
@@ -70864,6 +70798,7 @@ function modernConfig({
|
|
|
70864
70798
|
sourcemap: debug,
|
|
70865
70799
|
clean: false,
|
|
70866
70800
|
tsCdnStorage,
|
|
70801
|
+
plugins,
|
|
70867
70802
|
outExtension
|
|
70868
70803
|
};
|
|
70869
70804
|
}
|
|
@@ -70881,6 +70816,7 @@ function legacyConfig({
|
|
|
70881
70816
|
define: define2,
|
|
70882
70817
|
env: env2,
|
|
70883
70818
|
tsCdnStorage,
|
|
70819
|
+
plugins,
|
|
70884
70820
|
dtsTsConfig
|
|
70885
70821
|
}) {
|
|
70886
70822
|
let outputPath = (0, import_path2.join)(outDir, "dist", "legacy");
|
|
@@ -70919,6 +70855,7 @@ function legacyConfig({
|
|
|
70919
70855
|
sourcemap: debug,
|
|
70920
70856
|
clean: false,
|
|
70921
70857
|
tsCdnStorage,
|
|
70858
|
+
plugins,
|
|
70922
70859
|
outExtension
|
|
70923
70860
|
};
|
|
70924
70861
|
}
|
|
@@ -70938,6 +70875,7 @@ function workerConfig({
|
|
|
70938
70875
|
define: define2,
|
|
70939
70876
|
env: env2,
|
|
70940
70877
|
tsCdnStorage,
|
|
70878
|
+
plugins,
|
|
70941
70879
|
dtsTsConfig
|
|
70942
70880
|
}) {
|
|
70943
70881
|
return {
|
|
@@ -70976,6 +70914,7 @@ function workerConfig({
|
|
|
70976
70914
|
sourcemap: debug,
|
|
70977
70915
|
clean: false,
|
|
70978
70916
|
tsCdnStorage,
|
|
70917
|
+
plugins,
|
|
70979
70918
|
outExtension
|
|
70980
70919
|
};
|
|
70981
70920
|
}
|
|
@@ -70995,6 +70934,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
70995
70934
|
env: env2,
|
|
70996
70935
|
verbose,
|
|
70997
70936
|
dtsTsConfig,
|
|
70937
|
+
plugins,
|
|
70998
70938
|
...rest
|
|
70999
70939
|
}) {
|
|
71000
70940
|
const entry = globSync(
|
|
@@ -71038,6 +70978,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
71038
70978
|
workspaceRoot
|
|
71039
70979
|
}),
|
|
71040
70980
|
options,
|
|
70981
|
+
plugins,
|
|
71041
70982
|
dtsTsConfig
|
|
71042
70983
|
};
|
|
71043
70984
|
if (platform === "worker") {
|
|
@@ -71045,10 +70986,7 @@ function getConfig(workspaceRoot, projectRoot, sourceRoot, {
|
|
|
71045
70986
|
}
|
|
71046
70987
|
return (0, import_tsup.defineConfig)([modernConfig(params), legacyConfig(params)]);
|
|
71047
70988
|
}
|
|
71048
|
-
var outExtension = ({
|
|
71049
|
-
console.log(options);
|
|
71050
|
-
console.log(format);
|
|
71051
|
-
console.log(pkgType);
|
|
70989
|
+
var outExtension = ({ format }) => {
|
|
71052
70990
|
let jsExtension = ".js";
|
|
71053
70991
|
let dtsExtension = ".d.ts";
|
|
71054
70992
|
if (format === "cjs") {
|
|
@@ -122,6 +122,14 @@
|
|
|
122
122
|
"description": "Additional options to pass to tsup. See https://paka.dev/npm/tsup@7.2.0/api#d35d54aca71eb26e.",
|
|
123
123
|
"additionalProperties": true,
|
|
124
124
|
"x-priority": "important"
|
|
125
|
+
},
|
|
126
|
+
"plugins": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"description": "List of ESBuild plugins to use during processing",
|
|
129
|
+
"default": [],
|
|
130
|
+
"items": {
|
|
131
|
+
"type": "object"
|
|
132
|
+
}
|
|
125
133
|
}
|
|
126
134
|
},
|
|
127
135
|
"required": ["tsConfig", "platform", "banner"],
|
|
@@ -18235,7 +18235,8 @@ var require_devkit = __commonJS({
|
|
|
18235
18235
|
// packages/workspace-tools/src/generators/preset/generator.ts
|
|
18236
18236
|
var generator_exports = {};
|
|
18237
18237
|
__export(generator_exports, {
|
|
18238
|
-
default: () => generator_default
|
|
18238
|
+
default: () => generator_default,
|
|
18239
|
+
presetGenerator: () => presetGenerator
|
|
18239
18240
|
});
|
|
18240
18241
|
module.exports = __toCommonJS(generator_exports);
|
|
18241
18242
|
var import_devkit = __toESM(require_devkit());
|
|
@@ -18247,7 +18248,7 @@ var nodeVersion = "18.17.1";
|
|
|
18247
18248
|
var pnpmVersion = "8.10.2";
|
|
18248
18249
|
|
|
18249
18250
|
// packages/workspace-tools/src/generators/preset/generator.ts
|
|
18250
|
-
async function
|
|
18251
|
+
async function presetGenerator(tree, options) {
|
|
18251
18252
|
try {
|
|
18252
18253
|
const projectRoot = `.`;
|
|
18253
18254
|
options.description ??= `\u26A1The ${options.namespace ? options.namespace : options.name} monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.`;
|
|
@@ -18472,6 +18473,11 @@ async function generator_default(tree, options) {
|
|
|
18472
18473
|
console.error(error);
|
|
18473
18474
|
}
|
|
18474
18475
|
}
|
|
18476
|
+
var generator_default = presetGenerator;
|
|
18477
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
18478
|
+
0 && (module.exports = {
|
|
18479
|
+
presetGenerator
|
|
18480
|
+
});
|
|
18475
18481
|
/*! Bundled license information:
|
|
18476
18482
|
|
|
18477
18483
|
ejs/lib/ejs.js:
|