@storm-software/workspace-tools 1.7.24 → 1.7.26
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 +14 -0
- package/README.md +1 -1
- package/assets/cjs_shims.js +12 -0
- package/assets/esm_shims.js +9 -0
- package/index.js +15 -14
- package/meta.json +1 -1
- package/package.json +1 -1
- package/src/executors/tsup/executor.js +22 -14
- package/src/executors/tsup/get-config.js +22 -14
- package/src/executors/tsup/schema.d.ts +1 -0
- package/src/executors/tsup/schema.json +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.7.25](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.24...workspace-tools-v1.7.25) (2023-11-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Added esm and cjs shims to package bundle ([87a16e4](https://github.com/storm-software/storm-ops/commit/87a16e4007f04201bb0b817fe6fe2bf41c461f95))
|
|
7
|
+
|
|
8
|
+
## [1.7.24](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.23...workspace-tools-v1.7.24) (2023-11-19)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Added rollup support for DTS generation ([d1f3325](https://github.com/storm-software/storm-ops/commit/d1f3325bf712e3714904e9ca4b795bfba3df39f8))
|
|
14
|
+
|
|
1
15
|
## [1.7.23](https://github.com/storm-software/storm-ops/compare/workspace-tools-v1.7.22...workspace-tools-v1.7.23) (2023-11-19)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
15
15
|
|
|
16
16
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.org" target="_blank">stormsoftware.org</a> to stay up to date with this developer</h3><br />
|
|
17
17
|
|
|
18
|
-
[](https://prettier.io/)
|
|
19
19
|
[](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://docusaurus.io/) 
|
|
20
20
|
|
|
21
21
|
<h3 align="center" bold="true">⚠️ <b>Attention</b> ⚠️ - This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.</h3><br />
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Shim globals in cjs bundle
|
|
2
|
+
// There's a weird bug that esbuild will always inject importMetaUrl
|
|
3
|
+
// if we export it as `const importMetaUrl = ... __filename ...`
|
|
4
|
+
// But using a function will not cause this issue
|
|
5
|
+
|
|
6
|
+
const getImportMetaUrl = () =>
|
|
7
|
+
typeof document === "undefined"
|
|
8
|
+
? new URL("file:" + __filename).href
|
|
9
|
+
: (document.currentScript && document.currentScript.src) ||
|
|
10
|
+
new URL("main.js", document.baseURI).href;
|
|
11
|
+
|
|
12
|
+
export const importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Shim globals in esm bundle
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
|
|
5
|
+
const getFilename = () => fileURLToPath(import.meta.url);
|
|
6
|
+
const getDirname = () => path.dirname(getFilename());
|
|
7
|
+
|
|
8
|
+
export const __dirname = /* @__PURE__ */ getDirname();
|
|
9
|
+
export const __filename = /* @__PURE__ */ getFilename();
|
package/index.js
CHANGED
|
@@ -408390,9 +408390,9 @@ var require_brace_expansion2 = __commonJS({
|
|
|
408390
408390
|
}
|
|
408391
408391
|
});
|
|
408392
408392
|
|
|
408393
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
408393
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js
|
|
408394
408394
|
var require_chunk_NSPLMNA4 = __commonJS({
|
|
408395
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
408395
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-NSPLMNA4.js"(exports) {
|
|
408396
408396
|
"use strict";
|
|
408397
408397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
408398
408398
|
var version = "7.2.0";
|
|
@@ -410039,9 +410039,9 @@ var require_resolve_from = __commonJS({
|
|
|
410039
410039
|
}
|
|
410040
410040
|
});
|
|
410041
410041
|
|
|
410042
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
410042
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js
|
|
410043
410043
|
var require_chunk_B7UJSB4N = __commonJS({
|
|
410044
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
410044
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-B7UJSB4N.js"(exports) {
|
|
410045
410045
|
"use strict";
|
|
410046
410046
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410047
410047
|
function _interopRequireDefault(obj) {
|
|
@@ -410255,9 +410255,9 @@ var require_chunk_B7UJSB4N = __commonJS({
|
|
|
410255
410255
|
}
|
|
410256
410256
|
});
|
|
410257
410257
|
|
|
410258
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
410258
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js
|
|
410259
410259
|
var require_chunk_GEVDEBBW = __commonJS({
|
|
410260
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
410260
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-GEVDEBBW.js"(exports) {
|
|
410261
410261
|
"use strict";
|
|
410262
410262
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
410263
410263
|
function _interopRequireWildcard(obj) {
|
|
@@ -411191,9 +411191,9 @@ var require_dist2 = __commonJS({
|
|
|
411191
411191
|
}
|
|
411192
411192
|
});
|
|
411193
411193
|
|
|
411194
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
411194
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js
|
|
411195
411195
|
var require_chunk_52KWB5QB = __commonJS({
|
|
411196
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
411196
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/chunk-52KWB5QB.js"(exports) {
|
|
411197
411197
|
"use strict";
|
|
411198
411198
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
411199
411199
|
function _interopRequireDefault(obj) {
|
|
@@ -470479,9 +470479,9 @@ var require_chokidar = __commonJS({
|
|
|
470479
470479
|
}
|
|
470480
470480
|
});
|
|
470481
470481
|
|
|
470482
|
-
// node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
470482
|
+
// node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js
|
|
470483
470483
|
var require_dist5 = __commonJS({
|
|
470484
|
-
"node_modules/.pnpm/tsup@7.2.0_patch_hash=
|
|
470484
|
+
"node_modules/.pnpm/tsup@7.2.0_patch_hash=vnhshb2sjiwgg475navyntvacu_@swc+core@1.3.96_ts-node@10.9.1_typescript@5.2.2/node_modules/tsup/dist/index.js"(exports) {
|
|
470485
470485
|
"use strict";
|
|
470486
470486
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
470487
470487
|
function _interopRequireDefault(obj) {
|
|
@@ -472161,7 +472161,7 @@ var require_dist5 = __commonJS({
|
|
|
472161
472161
|
jsxFragment: options.jsxFragment,
|
|
472162
472162
|
sourcemap: options.sourcemap ? "external" : false,
|
|
472163
472163
|
target: options.target,
|
|
472164
|
-
banner
|
|
472164
|
+
banner,
|
|
472165
472165
|
footer,
|
|
472166
472166
|
tsconfig: options.tsconfig,
|
|
472167
472167
|
loader: {
|
|
@@ -472204,15 +472204,16 @@ var require_dist5 = __commonJS({
|
|
|
472204
472204
|
}, {})
|
|
472205
472205
|
},
|
|
472206
472206
|
inject: [
|
|
472207
|
-
format2 === "cjs" && injectShims ? _path2.default.join(__dirname, "
|
|
472208
|
-
format2 === "esm" && injectShims && platform === "node" ? _path2.default.join(__dirname, "
|
|
472207
|
+
format2 === "cjs" && injectShims ? _path2.default.join(__dirname, "../../../assets/cjs_shims.js") : "",
|
|
472208
|
+
format2 === "esm" && injectShims && platform === "node" ? _path2.default.join(__dirname, "../../../assets/esm_shims.js") : "",
|
|
472209
472209
|
...options.inject || []
|
|
472210
472210
|
].filter(Boolean),
|
|
472211
472211
|
outdir: options.legacyOutput && format2 !== "cjs" ? _path2.default.join(outDir, format2) : outDir,
|
|
472212
472212
|
outExtension: options.legacyOutput ? void 0 : outExtension,
|
|
472213
472213
|
write: false,
|
|
472214
472214
|
splitting,
|
|
472215
|
-
logLevel: options.silent ? "error" : "
|
|
472215
|
+
logLevel: options.silent ? "error" : "verbose",
|
|
472216
|
+
color: true,
|
|
472216
472217
|
minify: options.minify === "terser" ? false : options.minify,
|
|
472217
472218
|
minifyWhitespace: options.minifyWhitespace,
|
|
472218
472219
|
minifyIdentifiers: options.minifyIdentifiers,
|