@storm-software/workspace-tools 1.14.0 → 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 +13 -0
- package/index.js +10 -77
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +10 -77
- package/src/executors/tsup/get-config.js +10 -77
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# [1.14.0](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.26...workspace-tools-v1.14.0) (2023-11-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Export executor and generator functions by name ([96c1b7a](https://github.com/storm-software/storm-ops/commit/96c1b7a1c5db17910f84610f928e36d757c9efbf))
|
|
7
|
+
* **workspace-tools:** Remove rollup.ts from the `additionalEntryPoints` list ([b45785e](https://github.com/storm-software/storm-ops/commit/b45785e8b9dd09178651123658cccaded7c559d7))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **workspace-tools:** Added the `plugins` option to the tsup executor ([8cdb8af](https://github.com/storm-software/storm-ops/commit/8cdb8af57eddac03af7f96bfbc2dfbc1672a71be))
|
|
13
|
+
|
|
1
14
|
## [1.13.26](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.13.25...workspace-tools-v1.13.26) (2023-11-27)
|
|
2
15
|
|
|
3
16
|
|
package/index.js
CHANGED
|
@@ -40019,9 +40019,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
40019
40019
|
}
|
|
40020
40020
|
});
|
|
40021
40021
|
|
|
40022
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40022
|
+
// 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
|
|
40023
40023
|
var require_chunk_EPAEWGCP = __commonJS({
|
|
40024
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40024
|
+
"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) {
|
|
40025
40025
|
"use strict";
|
|
40026
40026
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40027
40027
|
var version = "8.0.0";
|
|
@@ -40481,9 +40481,9 @@ var require_resolve_from = __commonJS({
|
|
|
40481
40481
|
}
|
|
40482
40482
|
});
|
|
40483
40483
|
|
|
40484
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40484
|
+
// 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
|
|
40485
40485
|
var require_chunk_GQ77QZBO = __commonJS({
|
|
40486
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40486
|
+
"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) {
|
|
40487
40487
|
"use strict";
|
|
40488
40488
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40489
40489
|
function _interopRequireDefault(obj) {
|
|
@@ -40761,9 +40761,9 @@ var require_chunk_GQ77QZBO = __commonJS({
|
|
|
40761
40761
|
}
|
|
40762
40762
|
});
|
|
40763
40763
|
|
|
40764
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40764
|
+
// 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
|
|
40765
40765
|
var require_chunk_UIX4URMV = __commonJS({
|
|
40766
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
40766
|
+
"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) {
|
|
40767
40767
|
"use strict";
|
|
40768
40768
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40769
40769
|
function _interopRequireWildcard(obj) {
|
|
@@ -41697,9 +41697,9 @@ var require_dist2 = __commonJS({
|
|
|
41697
41697
|
}
|
|
41698
41698
|
});
|
|
41699
41699
|
|
|
41700
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
41700
|
+
// 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
|
|
41701
41701
|
var require_chunk_7G76EW2R = __commonJS({
|
|
41702
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
41702
|
+
"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) {
|
|
41703
41703
|
"use strict";
|
|
41704
41704
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41705
41705
|
function _interopRequireDefault(obj) {
|
|
@@ -95505,9 +95505,9 @@ var require_chokidar = __commonJS({
|
|
|
95505
95505
|
}
|
|
95506
95506
|
});
|
|
95507
95507
|
|
|
95508
|
-
// node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
95508
|
+
// 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
|
|
95509
95509
|
var require_dist5 = __commonJS({
|
|
95510
|
-
"node_modules/.pnpm/tsup@8.0.0_patch_hash=
|
|
95510
|
+
"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) {
|
|
95511
95511
|
"use strict";
|
|
95512
95512
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95513
95513
|
function _interopRequireDefault(obj) {
|
|
@@ -97861,59 +97861,6 @@ var require_dist5 = __commonJS({
|
|
|
97861
97861
|
throw new Error("Unknown declaration");
|
|
97862
97862
|
}
|
|
97863
97863
|
}
|
|
97864
|
-
function formatDistributionExports(exports2, fromFilePath, toFilePath) {
|
|
97865
|
-
let importPath = _chunkGQ77QZBOjs.trimDtsExtension.call(
|
|
97866
|
-
void 0,
|
|
97867
|
-
_path2.default.posix.relative(
|
|
97868
|
-
_path2.default.posix.dirname(_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, fromFilePath))),
|
|
97869
|
-
_path2.default.posix.normalize(_chunkGQ77QZBOjs.slash.call(void 0, toFilePath))
|
|
97870
|
-
)
|
|
97871
|
-
);
|
|
97872
|
-
if (!importPath.match(/^\.+\//)) {
|
|
97873
|
-
importPath = "./" + importPath;
|
|
97874
|
-
}
|
|
97875
|
-
let seen = {
|
|
97876
|
-
named: /* @__PURE__ */ new Set(),
|
|
97877
|
-
module: /* @__PURE__ */ new Set()
|
|
97878
|
-
};
|
|
97879
|
-
const lines = exports2.filter((declaration) => {
|
|
97880
|
-
if (declaration.kind === "module") {
|
|
97881
|
-
if (seen.module.has(declaration.moduleName)) {
|
|
97882
|
-
return false;
|
|
97883
|
-
}
|
|
97884
|
-
seen.module.add(declaration.moduleName);
|
|
97885
|
-
return true;
|
|
97886
|
-
} else if (declaration.kind === "named") {
|
|
97887
|
-
if (seen.named.has(declaration.name)) {
|
|
97888
|
-
return false;
|
|
97889
|
-
}
|
|
97890
|
-
seen.named.add(declaration.name);
|
|
97891
|
-
return true;
|
|
97892
|
-
} else {
|
|
97893
|
-
return false;
|
|
97894
|
-
}
|
|
97895
|
-
}).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkGQ77QZBOjs.truthy);
|
|
97896
|
-
if (lines.length === 0) {
|
|
97897
|
-
lines.push("export {};");
|
|
97898
|
-
}
|
|
97899
|
-
return lines.join("\n") + "\n";
|
|
97900
|
-
}
|
|
97901
|
-
function formatDistributionExport(declaration, dest) {
|
|
97902
|
-
if (declaration.kind === "named") {
|
|
97903
|
-
return [
|
|
97904
|
-
"export",
|
|
97905
|
-
declaration.isTypeOnly ? "type" : "",
|
|
97906
|
-
"{",
|
|
97907
|
-
declaration.alias,
|
|
97908
|
-
declaration.name === declaration.alias ? "" : `as ${declaration.name}`,
|
|
97909
|
-
"} from",
|
|
97910
|
-
`'${dest}';`
|
|
97911
|
-
].filter(_chunkGQ77QZBOjs.truthy).join(" ");
|
|
97912
|
-
} else if (declaration.kind === "module") {
|
|
97913
|
-
return `export * from '${declaration.moduleName}';`;
|
|
97914
|
-
}
|
|
97915
|
-
return "";
|
|
97916
|
-
}
|
|
97917
97864
|
var logger2 = _chunk7G76EW2Rjs.createLogger.call(void 0);
|
|
97918
97865
|
function rollupDtsFile(options, inputFilePath, dtsExtension, tsconfigFilePath) {
|
|
97919
97866
|
let pkgPath = packageJsonSearch(options.outDir, options.silent, "dts", logger2);
|
|
@@ -98052,20 +97999,6 @@ var require_dist5 = __commonJS({
|
|
|
98052
97999
|
dtsExtension,
|
|
98053
98000
|
options.tsconfig || "tsconfig.json"
|
|
98054
98001
|
);
|
|
98055
|
-
for (let [out, sourceFileName] of Object.entries(
|
|
98056
|
-
options.experimentalDts.entry
|
|
98057
|
-
)) {
|
|
98058
|
-
sourceFileName = _chunkGQ77QZBOjs.toAbsolutePath.call(void 0, sourceFileName);
|
|
98059
|
-
const outFileName = _path2.default.join(outDir, out + dtsExtension);
|
|
98060
|
-
const currentExports = exports2.filter(
|
|
98061
|
-
(declaration) => declaration.sourceFileName === sourceFileName
|
|
98062
|
-
);
|
|
98063
|
-
_chunkGQ77QZBOjs.writeFileSync.call(
|
|
98064
|
-
void 0,
|
|
98065
|
-
outFileName,
|
|
98066
|
-
formatDistributionExports(currentExports, outFileName, outDir)
|
|
98067
|
-
);
|
|
98068
|
-
}
|
|
98069
98002
|
}
|
|
98070
98003
|
async function runDtsRollup(options, exports2) {
|
|
98071
98004
|
try {
|