@storm-software/esbuild 0.52.20 → 0.53.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/README.md +2 -1
- package/bin/esbuild.cjs +1 -1
- package/dist/assets.cjs +3 -6
- package/dist/assets.js +2 -5
- package/dist/build.cjs +9 -12
- package/dist/build.js +8 -11
- package/dist/chunk-3RG5ZIWI.js +10 -0
- package/dist/{chunk-GRCBCRT3.cjs → chunk-BXCOVK3I.cjs} +4 -9
- package/dist/{chunk-JUYIXFPA.cjs → chunk-CRFWMPZN.cjs} +13 -20
- package/dist/{chunk-FE36AM5O.js → chunk-CZC4I6SL.js} +5 -12
- package/dist/{chunk-YEL4SZSU.js → chunk-D4DSKI5N.js} +9 -17
- package/dist/{chunk-MEWZGWK3.cjs → chunk-DJNFLJSO.cjs} +6 -13
- package/dist/chunk-GGNOJ77I.js +0 -0
- package/dist/{chunk-UNIT3DUA.js → chunk-MTZGYTJP.js} +3 -10
- package/dist/{chunk-U4FGDMUR.cjs → chunk-MYIRPP4C.cjs} +4 -11
- package/dist/chunk-OBGZSXTJ.cjs +10 -0
- package/dist/{chunk-OOJQKVMY.cjs → chunk-P3PATQE5.cjs} +19 -27
- package/dist/chunk-SFZRYJZ2.cjs +1 -0
- package/dist/{chunk-FFM36UWY.js → chunk-SJ6BFZTX.js} +8 -12
- package/dist/{chunk-ZSMWNUMF.js → chunk-TTW7MNRE.js} +1 -8
- package/dist/chunk-V7AFF6GW.cjs +25 -0
- package/dist/{chunk-DEU6FC3P.cjs → chunk-XAUXKCOD.cjs} +21 -25
- package/dist/{chunk-QPLYTZHZ.js → chunk-XKSMSRQZ.js} +2 -7
- package/dist/chunk-ZH5YCT67.js +25 -0
- package/dist/clean.cjs +3 -4
- package/dist/clean.js +2 -3
- package/dist/config.cjs +3 -6
- package/dist/config.js +2 -5
- package/dist/context.cjs +4 -7
- package/dist/context.js +3 -6
- package/dist/index.cjs +10 -18
- package/dist/index.js +9 -17
- package/dist/package-json.cjs +3 -6
- package/dist/package-json.js +2 -5
- package/dist/plugins/deps-check.cjs +6 -8
- package/dist/plugins/deps-check.js +6 -8
- package/dist/plugins/resolve-paths.cjs +12 -38
- package/dist/plugins/resolve-paths.js +4 -30
- package/dist/tsup.cjs +3 -5
- package/dist/tsup.js +2 -4
- package/dist/types.cjs +1 -2
- package/dist/types.js +1 -2
- package/dist/watch.cjs +5 -9
- package/dist/watch.js +4 -8
- package/package.json +7 -7
- package/assets/cjs_shims.js +0 -11
- package/assets/esm_shims.js +0 -9
- package/dist/chunk-2C3MWYHH.cjs +0 -47
- package/dist/chunk-7SWZ2ZGX.cjs +0 -135
- package/dist/chunk-AFLE3LVA.js +0 -1906
- package/dist/chunk-B3BJCWKI.cjs +0 -2687
- package/dist/chunk-BYH4XDRH.cjs +0 -6
- package/dist/chunk-ETBYMZ46.cjs +0 -6
- package/dist/chunk-GZSSIGNC.cjs +0 -153
- package/dist/chunk-HFWPMK44.cjs +0 -325
- package/dist/chunk-IVZEDCLS.js +0 -6
- package/dist/chunk-JBXDZTFM.js +0 -135
- package/dist/chunk-JZ25TPTY.cjs +0 -42
- package/dist/chunk-KT4NC6CJ.js +0 -325
- package/dist/chunk-OKPZK64Q.cjs +0 -1906
- package/dist/chunk-TWFEYLU4.cjs +0 -352
- package/dist/chunk-VGC3FXLU.cjs +0 -203
- package/dist/chunk-Z7VDLMOZ.js +0 -54
- package/dist/chunk-ZFVQ4LC4.js +0 -2718
- package/dist/rollup.cjs +0 -6906
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -186,16 +186,16 @@
|
|
|
186
186
|
"dependencies": {
|
|
187
187
|
"@nx/devkit": "^21.4.1",
|
|
188
188
|
"@nx/js": "^21.4.1",
|
|
189
|
-
"@storm-software/build-tools": "^0.
|
|
190
|
-
"@storm-software/config": "^1.
|
|
191
|
-
"@storm-software/config-tools": "^1.
|
|
189
|
+
"@storm-software/build-tools": "^0.158.0",
|
|
190
|
+
"@storm-software/config": "^1.134.0",
|
|
191
|
+
"@storm-software/config-tools": "^1.188.0",
|
|
192
|
+
"@storm-software/tsup": "^0.1.0",
|
|
192
193
|
"chokidar": "^4.0.3",
|
|
193
194
|
"commander": "^12.1.0",
|
|
194
195
|
"defu": "6.1.4",
|
|
195
196
|
"es-toolkit": "^1.39.10",
|
|
196
197
|
"esbuild": "^0.25.0",
|
|
197
|
-
"globby": "^14.1.0"
|
|
198
|
-
"tsup": "8.4.0"
|
|
198
|
+
"globby": "^14.1.0"
|
|
199
199
|
},
|
|
200
200
|
"devDependencies": {
|
|
201
201
|
"@types/node": "^22.10.2",
|
|
@@ -204,5 +204,5 @@
|
|
|
204
204
|
},
|
|
205
205
|
"publishConfig": { "access": "public" },
|
|
206
206
|
"sideEffects": false,
|
|
207
|
-
"gitHead": "
|
|
207
|
+
"gitHead": "13c6595478ff00d29f11ba7a5b6e37d249c1b9f4"
|
|
208
208
|
}
|
package/assets/cjs_shims.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
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();
|
package/assets/esm_shims.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
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/dist/chunk-2C3MWYHH.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
-
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
-
}) : x)(function(x) {
|
|
10
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
11
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
12
|
-
});
|
|
13
|
-
var __esm = (fn, res) => function __init() {
|
|
14
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
15
|
-
};
|
|
16
|
-
var __commonJS = (cb, mod) => function __require2() {
|
|
17
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
18
|
-
};
|
|
19
|
-
var __copyProps = (to, from, except, desc) => {
|
|
20
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
21
|
-
for (let key of __getOwnPropNames(from))
|
|
22
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
23
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
24
|
-
}
|
|
25
|
-
return to;
|
|
26
|
-
};
|
|
27
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
30
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
31
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
32
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
33
|
-
mod
|
|
34
|
-
));
|
|
35
|
-
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__27cd8c2707e42da8a6ff3e707ec47ae0/node_modules/tsup/assets/cjs_shims.js
|
|
37
|
-
var init_cjs_shims = __esm({
|
|
38
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__27cd8c2707e42da8a6ff3e707ec47ae0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;
|
package/dist/chunk-7SWZ2ZGX.cjs
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
-
|
|
3
|
-
var _chunk2C3MWYHHcjs = require('./chunk-2C3MWYHH.cjs');
|
|
4
|
-
|
|
5
|
-
// ../config-tools/src/utilities/correct-paths.ts
|
|
6
|
-
_chunk2C3MWYHHcjs.init_cjs_shims.call(void 0, );
|
|
7
|
-
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
8
|
-
function normalizeWindowsPath(input = "") {
|
|
9
|
-
if (!input) {
|
|
10
|
-
return input;
|
|
11
|
-
}
|
|
12
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
|
|
13
|
-
}
|
|
14
|
-
var _UNC_REGEX = /^[/\\]{2}/;
|
|
15
|
-
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
16
|
-
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
17
|
-
var correctPaths = function(path) {
|
|
18
|
-
if (!path || path.length === 0) {
|
|
19
|
-
return ".";
|
|
20
|
-
}
|
|
21
|
-
path = normalizeWindowsPath(path);
|
|
22
|
-
const isUNCPath = _optionalChain([path, 'optionalAccess', _ => _.match, 'call', _2 => _2(_UNC_REGEX)]);
|
|
23
|
-
const isPathAbsolute = isAbsolute(path);
|
|
24
|
-
const trailingSeparator = path[path.length - 1] === "/";
|
|
25
|
-
path = normalizeString(path, !isPathAbsolute);
|
|
26
|
-
if (path.length === 0) {
|
|
27
|
-
if (isPathAbsolute) {
|
|
28
|
-
return "/";
|
|
29
|
-
}
|
|
30
|
-
return trailingSeparator ? "./" : ".";
|
|
31
|
-
}
|
|
32
|
-
if (trailingSeparator) {
|
|
33
|
-
path += "/";
|
|
34
|
-
}
|
|
35
|
-
if (_DRIVE_LETTER_RE.test(path)) {
|
|
36
|
-
path += "/";
|
|
37
|
-
}
|
|
38
|
-
if (isUNCPath) {
|
|
39
|
-
if (!isPathAbsolute) {
|
|
40
|
-
return `//./${path}`;
|
|
41
|
-
}
|
|
42
|
-
return `//${path}`;
|
|
43
|
-
}
|
|
44
|
-
return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;
|
|
45
|
-
};
|
|
46
|
-
var joinPaths = function(...segments) {
|
|
47
|
-
let path = "";
|
|
48
|
-
for (const seg of segments) {
|
|
49
|
-
if (!seg) {
|
|
50
|
-
continue;
|
|
51
|
-
}
|
|
52
|
-
if (path.length > 0) {
|
|
53
|
-
const pathTrailing = path[path.length - 1] === "/";
|
|
54
|
-
const segLeading = seg[0] === "/";
|
|
55
|
-
const both = pathTrailing && segLeading;
|
|
56
|
-
if (both) {
|
|
57
|
-
path += seg.slice(1);
|
|
58
|
-
} else {
|
|
59
|
-
path += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
60
|
-
}
|
|
61
|
-
} else {
|
|
62
|
-
path += seg;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return correctPaths(path);
|
|
66
|
-
};
|
|
67
|
-
function normalizeString(path, allowAboveRoot) {
|
|
68
|
-
let res = "";
|
|
69
|
-
let lastSegmentLength = 0;
|
|
70
|
-
let lastSlash = -1;
|
|
71
|
-
let dots = 0;
|
|
72
|
-
let char = null;
|
|
73
|
-
for (let index = 0; index <= path.length; ++index) {
|
|
74
|
-
if (index < path.length) {
|
|
75
|
-
char = path[index];
|
|
76
|
-
} else if (char === "/") {
|
|
77
|
-
break;
|
|
78
|
-
} else {
|
|
79
|
-
char = "/";
|
|
80
|
-
}
|
|
81
|
-
if (char === "/") {
|
|
82
|
-
if (lastSlash === index - 1 || dots === 1) {
|
|
83
|
-
} else if (dots === 2) {
|
|
84
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
85
|
-
if (res.length > 2) {
|
|
86
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
87
|
-
if (lastSlashIndex === -1) {
|
|
88
|
-
res = "";
|
|
89
|
-
lastSegmentLength = 0;
|
|
90
|
-
} else {
|
|
91
|
-
res = res.slice(0, lastSlashIndex);
|
|
92
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
93
|
-
}
|
|
94
|
-
lastSlash = index;
|
|
95
|
-
dots = 0;
|
|
96
|
-
continue;
|
|
97
|
-
} else if (res.length > 0) {
|
|
98
|
-
res = "";
|
|
99
|
-
lastSegmentLength = 0;
|
|
100
|
-
lastSlash = index;
|
|
101
|
-
dots = 0;
|
|
102
|
-
continue;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
if (allowAboveRoot) {
|
|
106
|
-
res += res.length > 0 ? "/.." : "..";
|
|
107
|
-
lastSegmentLength = 2;
|
|
108
|
-
}
|
|
109
|
-
} else {
|
|
110
|
-
if (res.length > 0) {
|
|
111
|
-
res += `/${path.slice(lastSlash + 1, index)}`;
|
|
112
|
-
} else {
|
|
113
|
-
res = path.slice(lastSlash + 1, index);
|
|
114
|
-
}
|
|
115
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
116
|
-
}
|
|
117
|
-
lastSlash = index;
|
|
118
|
-
dots = 0;
|
|
119
|
-
} else if (char === "." && dots !== -1) {
|
|
120
|
-
++dots;
|
|
121
|
-
} else {
|
|
122
|
-
dots = -1;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return res;
|
|
126
|
-
}
|
|
127
|
-
var isAbsolute = function(p) {
|
|
128
|
-
return _IS_ABSOLUTE_RE.test(p);
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
exports.normalizeWindowsPath = normalizeWindowsPath; exports.correctPaths = correctPaths; exports.joinPaths = joinPaths;
|