@storm-software/esbuild 0.35.11 → 0.35.12
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 +1 -1
- package/bin/esbuild.cjs +1194 -2706
- package/dist/assets.cjs +6 -6
- package/dist/assets.js +5 -5
- package/dist/build.cjs +14 -14
- package/dist/build.js +13 -13
- package/dist/{chunk-H35FAHLW.cjs → chunk-42HYZLJH.cjs} +17 -26
- package/dist/{chunk-WHHAD2OY.js → chunk-47A73LZ7.js} +232 -123
- package/dist/{chunk-OHH3RWRK.cjs → chunk-4PZGT5BH.cjs} +8 -11
- package/dist/{chunk-INQXL7FE.js → chunk-72UBXZRO.js} +4 -6
- package/dist/chunk-77TTTWKY.cjs +25 -0
- package/dist/{chunk-RMRB7CWQ.js → chunk-77XQDMGA.js} +36 -30
- package/dist/{chunk-T4UMKHLQ.cjs → chunk-7VE5Y757.cjs} +18 -9
- package/dist/{chunk-KYRZY7X7.js → chunk-CV2AM72J.js} +28 -13
- package/dist/{chunk-5P6GWVMJ.js → chunk-EBH4ZCN5.js} +189 -116
- package/dist/{chunk-J3XDBU5Z.cjs → chunk-EGUR2GEF.cjs} +46 -40
- package/dist/{chunk-OZEWXLIK.js → chunk-F3R5ZFGB.js} +7 -10
- package/dist/{chunk-VITVYHJG.cjs → chunk-HIO4TSG7.cjs} +975 -1209
- package/dist/{chunk-AF5YHP7E.cjs → chunk-HPZXWRI7.cjs} +28 -26
- package/dist/{chunk-QTR5272S.cjs → chunk-JCICRU7K.cjs} +3 -5
- package/dist/chunk-KR4NRRPF.js +59 -0
- package/dist/{chunk-ICKIIBXC.js → chunk-MAXDIXOQ.js} +2 -2
- package/dist/{chunk-KXCV2R7J.cjs → chunk-MYUKVBFG.cjs} +288 -179
- package/dist/{chunk-QAYURSX7.cjs → chunk-OV5OYAJ7.cjs} +5 -5
- package/dist/{chunk-PHC57UZZ.cjs → chunk-PB5XBFPA.cjs} +36 -21
- package/dist/{chunk-SR4MG2LN.js → chunk-PDYSQLJS.js} +15 -24
- package/dist/{chunk-TULJZS5M.js → chunk-POMR4JSG.js} +149 -265
- package/dist/chunk-Q366M4DV.js +37 -0
- package/dist/{chunk-7ESNPD46.js → chunk-QOTJTLX7.js} +1 -1
- package/dist/{chunk-66VO6PT4.js → chunk-SB2WRTQ2.js} +43 -17
- package/dist/{chunk-J5J57SEI.cjs → chunk-UAPH32Y3.cjs} +204 -131
- package/dist/{chunk-NNO5TTNR.cjs → chunk-WQVSYEMN.cjs} +47 -21
- package/dist/chunk-XHTD4QDZ.cjs +6 -0
- package/dist/{chunk-C5UZWWWR.js → chunk-ZF7HGC35.js} +3 -9
- package/dist/clean.cjs +5 -5
- package/dist/clean.js +4 -4
- package/dist/config.cjs +6 -6
- package/dist/config.js +5 -5
- package/dist/context.cjs +8 -8
- package/dist/context.js +7 -7
- package/dist/index.cjs +16 -16
- package/dist/index.js +14 -14
- package/dist/package-json.cjs +6 -6
- package/dist/package-json.js +5 -5
- package/dist/plugins/deps-check.cjs +5 -5
- package/dist/plugins/deps-check.js +4 -4
- package/dist/plugins/resolve-paths.cjs +4 -4
- package/dist/plugins/resolve-paths.js +3 -3
- package/dist/tsup.cjs +5 -5
- package/dist/tsup.js +4 -4
- package/dist/types.cjs +2 -2
- package/dist/types.js +2 -2
- package/dist/watch.cjs +19 -29
- package/dist/watch.js +15 -25
- package/package.json +4 -4
- package/dist/chunk-BWCGRWHA.cjs +0 -6
- package/dist/chunk-ELF4S3RR.cjs +0 -31
- package/dist/chunk-IL6FCY37.js +0 -57
- package/dist/chunk-LQIX6FZY.js +0 -28
|
@@ -1,56 +1,58 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk4PZGT5BHcjs = require('./chunk-4PZGT5BH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
var _chunkQTR5272Scjs = require('./chunk-QTR5272S.cjs');
|
|
7
|
+
var _chunkJCICRU7Kcjs = require('./chunk-JCICRU7K.cjs');
|
|
9
8
|
|
|
10
9
|
// src/plugins/resolve-paths.ts
|
|
11
|
-
|
|
10
|
+
_chunkJCICRU7Kcjs.init_cjs_shims.call(void 0, );
|
|
12
11
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
13
12
|
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
14
13
|
if (_optionalChain([options, 'optionalAccess', _ => _.compilerOptions, 'optionalAccess', _2 => _2.paths])) {
|
|
15
14
|
const paths = Object.entries(options.compilerOptions.paths);
|
|
16
15
|
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
17
|
-
return [
|
|
18
|
-
key,
|
|
19
|
-
paths2.map((v) => _path2.default.resolve(cwd, v))
|
|
20
|
-
];
|
|
16
|
+
return [key, paths2.map((v) => _path2.default.resolve(cwd, v))];
|
|
21
17
|
});
|
|
22
18
|
return Object.fromEntries(resolvedPaths);
|
|
23
19
|
}
|
|
24
20
|
if (options.extends) {
|
|
25
|
-
const extendsPath = _path2.default.resolve(
|
|
21
|
+
const extendsPath = _path2.default.resolve(
|
|
22
|
+
projectRoot ? _chunk4PZGT5BHcjs.joinPaths.call(void 0, cwd, projectRoot, options.extends) : _chunk4PZGT5BHcjs.joinPaths.call(void 0, cwd, options.extends)
|
|
23
|
+
);
|
|
26
24
|
const extendsDir = _path2.default.dirname(extendsPath);
|
|
27
|
-
const extendsConfig =
|
|
25
|
+
const extendsConfig = _chunkJCICRU7Kcjs.__require.call(void 0, extendsPath);
|
|
28
26
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
29
27
|
}
|
|
30
28
|
return [];
|
|
31
29
|
}
|
|
32
|
-
|
|
33
|
-
var resolvePathsPlugin = /* @__PURE__ */ _chunkQTR5272Scjs.__name.call(void 0, (context) => ({
|
|
30
|
+
var resolvePathsPlugin = (context) => ({
|
|
34
31
|
name: "storm:resolve-paths",
|
|
35
32
|
setup(build) {
|
|
36
|
-
const parentTsConfig = build.initialOptions.tsconfig ?
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
const parentTsConfig = build.initialOptions.tsconfig ? _chunkJCICRU7Kcjs.__require.call(void 0, _chunk4PZGT5BHcjs.joinPaths.call(void 0,
|
|
34
|
+
context.workspaceConfig.workspaceRoot,
|
|
35
|
+
build.initialOptions.tsconfig.replace(
|
|
36
|
+
context.workspaceConfig.workspaceRoot,
|
|
37
|
+
""
|
|
38
|
+
)
|
|
39
|
+
)) : _chunkJCICRU7Kcjs.__require.call(void 0, _chunk4PZGT5BHcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
40
|
+
const resolvedTsPaths = resolvePathsConfig(
|
|
41
|
+
parentTsConfig,
|
|
42
|
+
context.workspaceConfig.workspaceRoot,
|
|
43
|
+
context.options.projectRoot
|
|
44
|
+
);
|
|
45
|
+
const packagesRegex = new RegExp(
|
|
46
|
+
`^(${Object.keys(resolvedTsPaths).join("|")})$`
|
|
47
|
+
);
|
|
48
|
+
build.onResolve({ filter: packagesRegex }, (args) => {
|
|
42
49
|
if (_optionalChain([build, 'access', _3 => _3.initialOptions, 'access', _4 => _4.external, 'optionalAccess', _5 => _5.includes, 'call', _6 => _6(args.path)])) {
|
|
43
|
-
return {
|
|
44
|
-
path: args.path,
|
|
45
|
-
external: true
|
|
46
|
-
};
|
|
50
|
+
return { path: args.path, external: true };
|
|
47
51
|
}
|
|
48
|
-
return {
|
|
49
|
-
path: `${resolvedTsPaths[args.path][0]}/index.ts`
|
|
50
|
-
};
|
|
52
|
+
return { path: `${resolvedTsPaths[args.path][0]}/index.ts` };
|
|
51
53
|
});
|
|
52
54
|
}
|
|
53
|
-
})
|
|
55
|
+
});
|
|
54
56
|
|
|
55
57
|
|
|
56
58
|
|
|
@@ -4,7 +4,6 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
7
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
9
8
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
10
9
|
}) : x)(function(x) {
|
|
@@ -34,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
33
|
mod
|
|
35
34
|
));
|
|
36
35
|
|
|
37
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/assets/cjs_shims.js
|
|
38
37
|
var init_cjs_shims = __esm({
|
|
39
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
38
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=616d4d8468728c5caa25e7b97fe871f667b5342103b43bda8e891020bc6b674a__e7bfd10e92d28211ce978b182e37e925/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
39
|
}
|
|
41
40
|
});
|
|
42
41
|
|
|
@@ -45,5 +44,4 @@ var init_cjs_shims = __esm({
|
|
|
45
44
|
|
|
46
45
|
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
exports.__name = __name; exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;
|
|
47
|
+
exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {
|
|
2
|
+
joinPaths
|
|
3
|
+
} from "./chunk-F3R5ZFGB.js";
|
|
4
|
+
import {
|
|
5
|
+
__require,
|
|
6
|
+
init_esm_shims
|
|
7
|
+
} from "./chunk-72UBXZRO.js";
|
|
8
|
+
|
|
9
|
+
// src/plugins/resolve-paths.ts
|
|
10
|
+
init_esm_shims();
|
|
11
|
+
import path from "node:path";
|
|
12
|
+
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
13
|
+
if (options?.compilerOptions?.paths) {
|
|
14
|
+
const paths = Object.entries(options.compilerOptions.paths);
|
|
15
|
+
const resolvedPaths = paths.map(([key, paths2]) => {
|
|
16
|
+
return [key, paths2.map((v) => path.resolve(cwd, v))];
|
|
17
|
+
});
|
|
18
|
+
return Object.fromEntries(resolvedPaths);
|
|
19
|
+
}
|
|
20
|
+
if (options.extends) {
|
|
21
|
+
const extendsPath = path.resolve(
|
|
22
|
+
projectRoot ? joinPaths(cwd, projectRoot, options.extends) : joinPaths(cwd, options.extends)
|
|
23
|
+
);
|
|
24
|
+
const extendsDir = path.dirname(extendsPath);
|
|
25
|
+
const extendsConfig = __require(extendsPath);
|
|
26
|
+
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
27
|
+
}
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
var resolvePathsPlugin = (context) => ({
|
|
31
|
+
name: "storm:resolve-paths",
|
|
32
|
+
setup(build) {
|
|
33
|
+
const parentTsConfig = build.initialOptions.tsconfig ? __require(joinPaths(
|
|
34
|
+
context.workspaceConfig.workspaceRoot,
|
|
35
|
+
build.initialOptions.tsconfig.replace(
|
|
36
|
+
context.workspaceConfig.workspaceRoot,
|
|
37
|
+
""
|
|
38
|
+
)
|
|
39
|
+
)) : __require(joinPaths(context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
40
|
+
const resolvedTsPaths = resolvePathsConfig(
|
|
41
|
+
parentTsConfig,
|
|
42
|
+
context.workspaceConfig.workspaceRoot,
|
|
43
|
+
context.options.projectRoot
|
|
44
|
+
);
|
|
45
|
+
const packagesRegex = new RegExp(
|
|
46
|
+
`^(${Object.keys(resolvedTsPaths).join("|")})$`
|
|
47
|
+
);
|
|
48
|
+
build.onResolve({ filter: packagesRegex }, (args) => {
|
|
49
|
+
if (build.initialOptions.external?.includes(args.path)) {
|
|
50
|
+
return { path: args.path, external: true };
|
|
51
|
+
}
|
|
52
|
+
return { path: `${resolvedTsPaths[args.path][0]}/index.ts` };
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
resolvePathsPlugin
|
|
59
|
+
};
|