@storm-software/build-tools 0.1.5 → 0.1.6
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/assets/cjs_shims.js +11 -0
- package/assets/esm_shims.js +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 0.1.6 (2024-03-06)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **build-tools:** Enhanced logging and defaulting logic when `getConfig` is missing ([b353a08f](https://github.com/storm-software/storm-ops/commit/b353a08f))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 0.1.5 (2024-03-06)
|
|
2
14
|
|
|
3
15
|
|
|
@@ -0,0 +1,11 @@
|
|
|
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?.src || new URL("main.js", document.baseURI).href;
|
|
10
|
+
|
|
11
|
+
export const importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Shim globals in esm bundle
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node: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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/build-tools",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡The Storm-Ops monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.",
|
|
6
6
|
"repository": {
|