@storm-software/esbuild 0.35.10 → 0.35.11
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/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-3VHLCZ6F.js → chunk-5P6GWVMJ.js} +2 -2
- package/dist/{chunk-EBZ4R3MW.js → chunk-66VO6PT4.js} +4 -4
- package/dist/{chunk-UA2A6OC6.js → chunk-7ESNPD46.js} +1 -1
- package/dist/{chunk-YXJYZG6O.cjs → chunk-AF5YHP7E.cjs} +8 -8
- package/dist/chunk-BWCGRWHA.cjs +6 -0
- package/dist/{chunk-GKAHDFNO.js → chunk-C5UZWWWR.js} +2 -2
- package/dist/{chunk-IV2WE7RO.cjs → chunk-ELF4S3RR.cjs} +7 -7
- package/dist/{chunk-GZSSIGNC.js → chunk-GZSSIGNC.cjs} +2 -2
- package/dist/{chunk-N6KCNJOR.cjs → chunk-H35FAHLW.cjs} +7 -7
- package/dist/{chunk-JNDYTIRD.js → chunk-ICKIIBXC.js} +2 -2
- package/dist/{chunk-ZILTNBKJ.js → chunk-IL6FCY37.js} +2 -2
- package/dist/{chunk-CHAHHSIR.js → chunk-INQXL7FE.js} +2 -2
- package/dist/{chunk-JS5GZ7ZE.cjs → chunk-J3XDBU5Z.cjs} +28 -28
- package/dist/{chunk-2NQYRZKO.cjs → chunk-J5J57SEI.cjs} +51 -51
- package/dist/{chunk-B4NWTB7S.cjs → chunk-KXCV2R7J.cjs} +106 -106
- package/dist/{chunk-JHQYSHQ5.js → chunk-KYRZY7X7.js} +6 -6
- package/dist/{chunk-CA7VVNV2.js → chunk-LQIX6FZY.js} +3 -3
- package/dist/{chunk-CY4KF2US.cjs → chunk-NNO5TTNR.cjs} +14 -14
- package/dist/{chunk-Q77NJNNL.cjs → chunk-OHH3RWRK.cjs} +7 -7
- package/dist/{chunk-QBMHS72C.js → chunk-OZEWXLIK.js} +1 -1
- package/dist/{chunk-JZBM4QKF.cjs → chunk-PHC57UZZ.cjs} +19 -19
- package/dist/{chunk-ZDMKNQUW.cjs → chunk-QAYURSX7.cjs} +5 -5
- package/dist/{chunk-TKNLZW4V.cjs → chunk-QTR5272S.cjs} +2 -2
- package/dist/{chunk-DU5R4RJA.js → chunk-RMRB7CWQ.js} +8 -8
- package/dist/{chunk-GWGBQKRY.js → chunk-SR4MG2LN.js} +2 -2
- package/dist/{chunk-KK2BGIRB.cjs → chunk-T4UMKHLQ.cjs} +8 -8
- package/dist/{chunk-5ZPCV2IJ.js → chunk-TULJZS5M.js} +20 -16
- package/dist/{chunk-VGC3FXLU.js → chunk-VGC3FXLU.cjs} +1 -1
- package/dist/{chunk-ZS2HZUYH.cjs → chunk-VITVYHJG.cjs} +197 -193
- package/dist/{chunk-SAK5QFCE.js → chunk-WHHAD2OY.js} +3 -3
- 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/{rollup.js → rollup.cjs} +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 +14 -14
- package/dist/watch.js +3 -3
- package/package.json +4 -4
- package/dist/chunk-5R3LX6E4.cjs +0 -6
- /package/dist/{chunk-BYH4XDRH.js → chunk-BYH4XDRH.cjs} +0 -0
- /package/dist/{chunk-JZ25TPTY.js → chunk-JZ25TPTY.cjs} +0 -0
- /package/dist/{chunk-TWFEYLU4.js → chunk-TWFEYLU4.cjs} +0 -0
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/dist/assets.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
3
|
+
var _chunkT4UMKHLQcjs = require('./chunk-T4UMKHLQ.cjs');
|
|
4
|
+
require('./chunk-KXCV2R7J.cjs');
|
|
5
|
+
require('./chunk-J5J57SEI.cjs');
|
|
6
|
+
require('./chunk-OHH3RWRK.cjs');
|
|
7
|
+
require('./chunk-QTR5272S.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.copyBuildAssets =
|
|
10
|
+
exports.copyBuildAssets = _chunkT4UMKHLQcjs.copyBuildAssets;
|
package/dist/assets.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
copyBuildAssets
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LQIX6FZY.js";
|
|
4
|
+
import "./chunk-WHHAD2OY.js";
|
|
5
|
+
import "./chunk-5P6GWVMJ.js";
|
|
6
|
+
import "./chunk-OZEWXLIK.js";
|
|
7
|
+
import "./chunk-INQXL7FE.js";
|
|
8
8
|
export {
|
|
9
9
|
copyBuildAssets
|
|
10
10
|
};
|
package/dist/build.cjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
9
|
-
require('./chunk-
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
15
|
-
require('./chunk-
|
|
3
|
+
var _chunkJ3XDBU5Zcjs = require('./chunk-J3XDBU5Z.cjs');
|
|
4
|
+
require('./chunk-H35FAHLW.cjs');
|
|
5
|
+
require('./chunk-T4UMKHLQ.cjs');
|
|
6
|
+
require('./chunk-ELF4S3RR.cjs');
|
|
7
|
+
require('./chunk-PHC57UZZ.cjs');
|
|
8
|
+
require('./chunk-AF5YHP7E.cjs');
|
|
9
|
+
require('./chunk-QAYURSX7.cjs');
|
|
10
|
+
require('./chunk-NNO5TTNR.cjs');
|
|
11
|
+
require('./chunk-KXCV2R7J.cjs');
|
|
12
|
+
require('./chunk-VITVYHJG.cjs');
|
|
13
|
+
require('./chunk-J5J57SEI.cjs');
|
|
14
|
+
require('./chunk-OHH3RWRK.cjs');
|
|
15
|
+
require('./chunk-QTR5272S.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.build =
|
|
18
|
+
exports.build = _chunkJ3XDBU5Zcjs.build;
|
package/dist/build.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-RMRB7CWQ.js";
|
|
4
|
+
import "./chunk-SR4MG2LN.js";
|
|
5
|
+
import "./chunk-LQIX6FZY.js";
|
|
6
|
+
import "./chunk-C5UZWWWR.js";
|
|
7
|
+
import "./chunk-KYRZY7X7.js";
|
|
8
|
+
import "./chunk-IL6FCY37.js";
|
|
9
|
+
import "./chunk-ICKIIBXC.js";
|
|
10
|
+
import "./chunk-66VO6PT4.js";
|
|
11
|
+
import "./chunk-WHHAD2OY.js";
|
|
12
|
+
import "./chunk-TULJZS5M.js";
|
|
13
|
+
import "./chunk-5P6GWVMJ.js";
|
|
14
|
+
import "./chunk-OZEWXLIK.js";
|
|
15
|
+
import "./chunk-INQXL7FE.js";
|
|
16
16
|
export {
|
|
17
17
|
build
|
|
18
18
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
correctPaths,
|
|
3
3
|
joinPaths
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OZEWXLIK.js";
|
|
5
5
|
import {
|
|
6
6
|
__name,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-INQXL7FE.js";
|
|
9
9
|
|
|
10
10
|
// ../config-tools/src/logger/console.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addPackageDependencies,
|
|
3
3
|
addWorkspacePackageJsonFields
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WHHAD2OY.js";
|
|
5
5
|
import {
|
|
6
6
|
getStopwatch,
|
|
7
7
|
writeDebug
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5P6GWVMJ.js";
|
|
9
9
|
import {
|
|
10
10
|
joinPaths
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OZEWXLIK.js";
|
|
12
12
|
import {
|
|
13
13
|
__name,
|
|
14
14
|
init_esm_shims
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-INQXL7FE.js";
|
|
16
16
|
|
|
17
17
|
// src/package-json.ts
|
|
18
18
|
init_esm_shims();
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkOHH3RWRKcjs = require('./chunk-OHH3RWRK.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQTR5272Scjs = require('./chunk-QTR5272S.cjs');
|
|
9
9
|
|
|
10
10
|
// src/plugins/resolve-paths.ts
|
|
11
|
-
|
|
11
|
+
_chunkQTR5272Scjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
13
13
|
function resolvePathsConfig(options, cwd, projectRoot) {
|
|
14
14
|
if (_optionalChain([options, 'optionalAccess', _ => _.compilerOptions, 'optionalAccess', _2 => _2.paths])) {
|
|
@@ -22,18 +22,18 @@ function resolvePathsConfig(options, cwd, projectRoot) {
|
|
|
22
22
|
return Object.fromEntries(resolvedPaths);
|
|
23
23
|
}
|
|
24
24
|
if (options.extends) {
|
|
25
|
-
const extendsPath = _path2.default.resolve(projectRoot ?
|
|
25
|
+
const extendsPath = _path2.default.resolve(projectRoot ? _chunkOHH3RWRKcjs.joinPaths.call(void 0, cwd, projectRoot, options.extends) : _chunkOHH3RWRKcjs.joinPaths.call(void 0, cwd, options.extends));
|
|
26
26
|
const extendsDir = _path2.default.dirname(extendsPath);
|
|
27
|
-
const extendsConfig =
|
|
27
|
+
const extendsConfig = _chunkQTR5272Scjs.__require.call(void 0, extendsPath);
|
|
28
28
|
return resolvePathsConfig(extendsConfig, extendsDir);
|
|
29
29
|
}
|
|
30
30
|
return [];
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
var resolvePathsPlugin = /* @__PURE__ */
|
|
32
|
+
_chunkQTR5272Scjs.__name.call(void 0, resolvePathsConfig, "resolvePathsConfig");
|
|
33
|
+
var resolvePathsPlugin = /* @__PURE__ */ _chunkQTR5272Scjs.__name.call(void 0, (context) => ({
|
|
34
34
|
name: "storm:resolve-paths",
|
|
35
35
|
setup(build) {
|
|
36
|
-
const parentTsConfig = build.initialOptions.tsconfig ?
|
|
36
|
+
const parentTsConfig = build.initialOptions.tsconfig ? _chunkQTR5272Scjs.__require.call(void 0, _chunkOHH3RWRKcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, build.initialOptions.tsconfig.replace(context.workspaceConfig.workspaceRoot, ""))) : _chunkQTR5272Scjs.__require.call(void 0, _chunkOHH3RWRKcjs.joinPaths.call(void 0, context.workspaceConfig.workspaceRoot, "tsconfig.json"));
|
|
37
37
|
const resolvedTsPaths = resolvePathsConfig(parentTsConfig, context.workspaceConfig.workspaceRoot, context.options.projectRoot);
|
|
38
38
|
const packagesRegex = new RegExp(`^(${Object.keys(resolvedTsPaths).join("|")})$`);
|
|
39
39
|
build.onResolve({
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJ5J57SEIcjs = require('./chunk-J5J57SEI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQTR5272Scjs = require('./chunk-QTR5272S.cjs');
|
|
9
9
|
|
|
10
10
|
// src/clean.ts
|
|
11
|
-
|
|
11
|
+
_chunkQTR5272Scjs.init_cjs_shims.call(void 0, );
|
|
12
12
|
var _promises = require('fs/promises');
|
|
13
13
|
async function clean(name = "ESBuild", directory, config) {
|
|
14
|
-
|
|
15
|
-
const stopwatch =
|
|
14
|
+
_chunkJ5J57SEIcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${name} output path: ${directory}`, config);
|
|
15
|
+
const stopwatch = _chunkJ5J57SEIcjs.getStopwatch.call(void 0, `${name} output clean`);
|
|
16
16
|
await cleanDirectories(directory);
|
|
17
17
|
stopwatch();
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
_chunkQTR5272Scjs.__name.call(void 0, clean, "clean");
|
|
20
20
|
async function cleanDirectories(directory) {
|
|
21
21
|
await _promises.rm.call(void 0, directory, {
|
|
22
22
|
recursive: true,
|
|
23
23
|
force: true
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
_chunkQTR5272Scjs.__name.call(void 0, cleanDirectories, "cleanDirectories");
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }
|
|
2
2
|
|
|
3
|
-
var _chunkBYH4XDRHjs = require('./chunk-BYH4XDRH.
|
|
3
|
+
var _chunkBYH4XDRHjs = require('./chunk-BYH4XDRH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var _chunkTWFEYLU4js = require('./chunk-TWFEYLU4.
|
|
6
|
+
var _chunkTWFEYLU4js = require('./chunk-TWFEYLU4.cjs');
|
|
7
7
|
|
|
8
8
|
// src/cli-main.ts
|
|
9
9
|
var _cac = require('cac');
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkJ5J57SEIcjs = require('./chunk-J5J57SEI.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkQTR5272Scjs = require('./chunk-QTR5272S.cjs');
|
|
10
10
|
|
|
11
11
|
// src/plugins/deps-check.ts
|
|
12
|
-
|
|
12
|
+
_chunkQTR5272Scjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
var _module = require('module');
|
|
14
14
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
15
15
|
var unusedIgnore = [
|
|
@@ -41,11 +41,11 @@ var missingIgnore = [
|
|
|
41
41
|
"@prisma/client",
|
|
42
42
|
"ts-toolbelt"
|
|
43
43
|
];
|
|
44
|
-
var depsCheckPlugin = /* @__PURE__ */
|
|
44
|
+
var depsCheckPlugin = /* @__PURE__ */ _chunkQTR5272Scjs.__name.call(void 0, (bundle) => ({
|
|
45
45
|
name: "storm:deps-check",
|
|
46
46
|
setup(build) {
|
|
47
47
|
const pkgJsonPath = _path2.default.join(process.cwd(), "package.json");
|
|
48
|
-
const pkgContents =
|
|
48
|
+
const pkgContents = _chunkQTR5272Scjs.__require.call(void 0, pkgJsonPath);
|
|
49
49
|
const regDependencies = Object.keys(_nullishCoalesce(pkgContents["dependencies"], () => ( {})));
|
|
50
50
|
const devDependencies = Object.keys(_nullishCoalesce(pkgContents["devDependencies"], () => ( {})));
|
|
51
51
|
const peerDependencies = Object.keys(_nullishCoalesce(pkgContents["peerDependencies"], () => ( {})));
|
|
@@ -88,8 +88,8 @@ var depsCheckPlugin = /* @__PURE__ */ _chunkTKNLZW4Vcjs.__name.call(void 0, (bun
|
|
|
88
88
|
const filteredMissingDeps = missingDependencies.filter((dep) => {
|
|
89
89
|
return !missingIgnore.some((pattern) => dep.match(pattern)) && !peerDependencies.includes(dep);
|
|
90
90
|
});
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
_chunkJ5J57SEIcjs.writeWarning.call(void 0, `Unused Dependencies: ${JSON.stringify(filteredUnusedDeps)}`);
|
|
92
|
+
_chunkJ5J57SEIcjs.writeError.call(void 0, `Missing Dependencies: ${JSON.stringify(filteredMissingDeps)}`);
|
|
93
93
|
if (filteredMissingDeps.length > 0) {
|
|
94
94
|
throw new Error(`Missing dependencies detected - please install them:
|
|
95
95
|
${JSON.stringify(filteredMissingDeps)}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
joinPaths
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OZEWXLIK.js";
|
|
4
4
|
import {
|
|
5
5
|
__name,
|
|
6
6
|
__require,
|
|
7
7
|
init_esm_shims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-INQXL7FE.js";
|
|
9
9
|
|
|
10
10
|
// src/plugins/resolve-paths.ts
|
|
11
11
|
init_esm_shims();
|
|
@@ -34,12 +34,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
34
|
mod
|
|
35
35
|
));
|
|
36
36
|
|
|
37
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
37
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=f38aab44b872fc3814414c6a0e9d6e644f0efcadfc3a3eff3f293f7a0295534d__11c18a981686f6a33e045201f02415b6/node_modules/tsup/assets/esm_shims.js
|
|
38
38
|
import { fileURLToPath } from "url";
|
|
39
39
|
import path from "path";
|
|
40
40
|
var getFilename, getDirname, __dirname;
|
|
41
41
|
var init_esm_shims = __esm({
|
|
42
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
42
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=f38aab44b872fc3814414c6a0e9d6e644f0efcadfc3a3eff3f293f7a0295534d__11c18a981686f6a33e045201f02415b6/node_modules/tsup/assets/esm_shims.js"() {
|
|
43
43
|
getFilename = /* @__PURE__ */ __name(() => fileURLToPath(import.meta.url), "getFilename");
|
|
44
44
|
getDirname = /* @__PURE__ */ __name(() => path.dirname(getFilename()), "getDirname");
|
|
45
45
|
__dirname = /* @__PURE__ */ getDirname();
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkH35FAHLWcjs = require('./chunk-H35FAHLW.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkT4UMKHLQcjs = require('./chunk-T4UMKHLQ.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkELF4S3RRcjs = require('./chunk-ELF4S3RR.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkPHC57UZZcjs = require('./chunk-PHC57UZZ.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkNNO5TTNRcjs = require('./chunk-NNO5TTNR.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkVITVYHJGcjs = require('./chunk-VITVYHJG.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -23,28 +23,28 @@ var _chunkZS2HZUYHcjs = require('./chunk-ZS2HZUYH.cjs');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkJ5J57SEIcjs = require('./chunk-J5J57SEI.cjs');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkQTR5272Scjs = require('./chunk-QTR5272S.cjs');
|
|
31
31
|
|
|
32
32
|
// src/build.ts
|
|
33
|
-
|
|
33
|
+
_chunkQTR5272Scjs.init_cjs_shims.call(void 0, );
|
|
34
34
|
var _esbuild = require('esbuild'); var esbuild = _interopRequireWildcard(_esbuild);
|
|
35
35
|
var _globby = require('globby');
|
|
36
36
|
async function reportResults(context) {
|
|
37
37
|
if (_optionalChain([context, 'access', _ => _.result, 'optionalAccess', _2 => _2.errors, 'access', _3 => _3.length]) === 0) {
|
|
38
38
|
if (context.result.warnings.length > 0) {
|
|
39
|
-
|
|
39
|
+
_chunkJ5J57SEIcjs.writeWarning.call(void 0, ` \u{1F6A7} The following warnings occurred during the build: ${context.result.warnings.map((warning) => warning.text).join("\n")}`, context.workspaceConfig);
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
_chunkJ5J57SEIcjs.writeSuccess.call(void 0, ` \u{1F4E6} The ${context.options.name} build completed successfully`, context.workspaceConfig);
|
|
42
42
|
} else if (_optionalChain([context, 'access', _4 => _4.result, 'optionalAccess', _5 => _5.errors]) && _optionalChain([context, 'access', _6 => _6.result, 'optionalAccess', _7 => _7.errors, 'access', _8 => _8.length]) > 0) {
|
|
43
|
-
|
|
43
|
+
_chunkJ5J57SEIcjs.writeError.call(void 0, ` \u274C The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`, context.workspaceConfig);
|
|
44
44
|
throw new Error(`The ${context.options.name} build failed with the following errors: ${context.result.errors.map((error) => error.text).join("\n")}`);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
_chunkQTR5272Scjs.__name.call(void 0, reportResults, "reportResults");
|
|
48
48
|
async function dependencyCheck(options) {
|
|
49
49
|
if (process.env.DEV === "true") {
|
|
50
50
|
return void 0;
|
|
@@ -67,27 +67,27 @@ async function dependencyCheck(options) {
|
|
|
67
67
|
write: false,
|
|
68
68
|
outdir: "out",
|
|
69
69
|
plugins: [
|
|
70
|
-
|
|
70
|
+
_chunkH35FAHLWcjs.depsCheckPlugin.call(void 0, options.bundle)
|
|
71
71
|
]
|
|
72
72
|
});
|
|
73
73
|
await buildPromise.catch(() => {
|
|
74
74
|
});
|
|
75
75
|
return void 0;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
_chunkQTR5272Scjs.__name.call(void 0, dependencyCheck, "dependencyCheck");
|
|
78
78
|
async function cleanOutputPath(context) {
|
|
79
79
|
if (context.clean !== false && context.outputPath) {
|
|
80
|
-
|
|
81
|
-
const stopwatch =
|
|
82
|
-
await
|
|
80
|
+
_chunkJ5J57SEIcjs.writeDebug.call(void 0, ` \u{1F9F9} Cleaning ${context.options.name} output path: ${context.outputPath}`, context.workspaceConfig);
|
|
81
|
+
const stopwatch = _chunkJ5J57SEIcjs.getStopwatch.call(void 0, `${context.options.name} output clean`);
|
|
82
|
+
await _chunkELF4S3RRcjs.cleanDirectories.call(void 0, context.outputPath);
|
|
83
83
|
stopwatch();
|
|
84
84
|
}
|
|
85
85
|
return context;
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
_chunkQTR5272Scjs.__name.call(void 0, cleanOutputPath, "cleanOutputPath");
|
|
88
88
|
async function build2(options) {
|
|
89
|
-
|
|
90
|
-
const stopwatch =
|
|
89
|
+
_chunkJ5J57SEIcjs.writeDebug.call(void 0, ` \u26A1 Executing Storm ESBuild pipeline`);
|
|
90
|
+
const stopwatch = _chunkJ5J57SEIcjs.getStopwatch.call(void 0, "ESBuild pipeline");
|
|
91
91
|
try {
|
|
92
92
|
const opts = Array.isArray(options) ? options : [
|
|
93
93
|
options
|
|
@@ -95,24 +95,24 @@ async function build2(options) {
|
|
|
95
95
|
if (opts.length === 0) {
|
|
96
96
|
throw new Error("No build options were provided");
|
|
97
97
|
}
|
|
98
|
-
const context = await
|
|
98
|
+
const context = await _chunkPHC57UZZcjs.resolveContext.call(void 0, options);
|
|
99
99
|
await cleanOutputPath(context);
|
|
100
100
|
await Promise.all([
|
|
101
101
|
dependencyCheck(context.options),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
_chunkNNO5TTNRcjs.generatePackageJson.call(void 0, context),
|
|
103
|
+
_chunkT4UMKHLQcjs.copyBuildAssets.call(void 0, context),
|
|
104
|
+
_chunkVITVYHJGcjs.executeTsup.call(void 0, context)
|
|
105
105
|
]);
|
|
106
106
|
await reportResults(context);
|
|
107
|
-
|
|
107
|
+
_chunkJ5J57SEIcjs.writeSuccess.call(void 0, " \u{1F3C1} ESBuild pipeline build completed successfully");
|
|
108
108
|
} catch (error) {
|
|
109
|
-
|
|
109
|
+
_chunkJ5J57SEIcjs.writeFatal.call(void 0, "Fatal errors that the build process could not recover from have occured. The build process has been terminated.");
|
|
110
110
|
throw error;
|
|
111
111
|
} finally {
|
|
112
112
|
stopwatch();
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
_chunkQTR5272Scjs.__name.call(void 0, build2, "build");
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|