@storm-software/esbuild 0.35.9 → 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-BYH4XDRH.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.cjs +153 -0
- 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-JZ25TPTY.cjs +42 -0
- 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-TWFEYLU4.cjs +352 -0
- package/dist/chunk-VGC3FXLU.cjs +203 -0
- 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.cjs +6906 -0
- 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/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
|
|
|
@@ -0,0 +1,153 @@
|
|
|
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
|
+
|
|
3
|
+
var _chunkBYH4XDRHjs = require('./chunk-BYH4XDRH.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkTWFEYLU4js = require('./chunk-TWFEYLU4.cjs');
|
|
7
|
+
|
|
8
|
+
// src/cli-main.ts
|
|
9
|
+
var _cac = require('cac');
|
|
10
|
+
|
|
11
|
+
// node_modules/.pnpm/flat@6.0.1/node_modules/flat/index.js
|
|
12
|
+
function isBuffer(obj) {
|
|
13
|
+
return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
|
|
14
|
+
}
|
|
15
|
+
function keyIdentity(key) {
|
|
16
|
+
return key;
|
|
17
|
+
}
|
|
18
|
+
function flatten(target, opts) {
|
|
19
|
+
opts = opts || {};
|
|
20
|
+
const delimiter = opts.delimiter || ".";
|
|
21
|
+
const maxDepth = opts.maxDepth;
|
|
22
|
+
const transformKey = opts.transformKey || keyIdentity;
|
|
23
|
+
const output = {};
|
|
24
|
+
function step(object, prev, currentDepth) {
|
|
25
|
+
currentDepth = currentDepth || 1;
|
|
26
|
+
Object.keys(object).forEach(function(key) {
|
|
27
|
+
const value = object[key];
|
|
28
|
+
const isarray = opts.safe && Array.isArray(value);
|
|
29
|
+
const type = Object.prototype.toString.call(value);
|
|
30
|
+
const isbuffer = isBuffer(value);
|
|
31
|
+
const isobject = type === "[object Object]" || type === "[object Array]";
|
|
32
|
+
const newKey = prev ? prev + delimiter + transformKey(key) : transformKey(key);
|
|
33
|
+
if (!isarray && !isbuffer && isobject && Object.keys(value).length && (!opts.maxDepth || currentDepth < maxDepth)) {
|
|
34
|
+
return step(value, newKey, currentDepth + 1);
|
|
35
|
+
}
|
|
36
|
+
output[newKey] = value;
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
step(target);
|
|
40
|
+
return output;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// src/cli-main.ts
|
|
44
|
+
function ensureArray(input) {
|
|
45
|
+
return Array.isArray(input) ? input : input.split(",");
|
|
46
|
+
}
|
|
47
|
+
async function main(options = {}) {
|
|
48
|
+
const cli = _cac.cac.call(void 0, "tsup");
|
|
49
|
+
cli.command("[...files]", "Bundle files", {
|
|
50
|
+
ignoreOptionDefaultValue: true
|
|
51
|
+
}).option("--entry.* <file>", "Use a key-value pair as entry files").option("-d, --out-dir <dir>", "Output directory", { default: "dist" }).option("--format <format>", 'Bundle format, "cjs", "iife", "esm"', {
|
|
52
|
+
default: "cjs"
|
|
53
|
+
}).option("--minify [terser]", "Minify bundle").option("--minify-whitespace", "Minify whitespace").option("--minify-identifiers", "Minify identifiers").option("--minify-syntax", "Minify syntax").option(
|
|
54
|
+
"--keep-names",
|
|
55
|
+
"Keep original function and class names in minified code"
|
|
56
|
+
).option("--target <target>", 'Bundle target, "es20XX" or "esnext"', {
|
|
57
|
+
default: "es2017"
|
|
58
|
+
}).option(
|
|
59
|
+
"--legacy-output",
|
|
60
|
+
"Output different formats to different folder instead of using different extensions"
|
|
61
|
+
).option("--dts [entry]", "Generate declaration file").option("--dts-resolve", "Resolve externals types used for d.ts files").option("--dts-only", "Emit declaration files only").option(
|
|
62
|
+
"--experimental-dts [entry]",
|
|
63
|
+
"Generate declaration file (experimental)"
|
|
64
|
+
).option(
|
|
65
|
+
"--sourcemap [inline]",
|
|
66
|
+
"Generate external sourcemap, or inline source: --sourcemap inline"
|
|
67
|
+
).option(
|
|
68
|
+
"--watch [path]",
|
|
69
|
+
'Watch mode, if path is not specified, it watches the current folder ".". Repeat "--watch" for more than one path'
|
|
70
|
+
).option("--ignore-watch <path>", "Ignore custom paths in watch mode").option(
|
|
71
|
+
"--onSuccess <command>",
|
|
72
|
+
"Execute command after successful build, specially useful for watch mode"
|
|
73
|
+
).option("--env.* <value>", "Define compile-time env variables").option(
|
|
74
|
+
"--inject <file>",
|
|
75
|
+
"Replace a global variable with an import from another file"
|
|
76
|
+
).option("--define.* <value>", "Define compile-time constants").option(
|
|
77
|
+
"--external <name>",
|
|
78
|
+
"Mark specific packages / package.json (dependencies and peerDependencies) as external"
|
|
79
|
+
).option("--global-name <name>", "Global variable name for iife format").option("--jsxFactory <jsxFactory>", "Name of JSX factory function", {
|
|
80
|
+
default: "React.createElement"
|
|
81
|
+
}).option("--jsxFragment <jsxFragment>", "Name of JSX fragment function", {
|
|
82
|
+
default: "React.Fragment"
|
|
83
|
+
}).option("--replaceNodeEnv", "Replace process.env.NODE_ENV").option("--no-splitting", "Disable code splitting").option("--clean", "Clean output directory").option(
|
|
84
|
+
"--silent",
|
|
85
|
+
'Suppress non-error logs (excluding "onSuccess" process output)'
|
|
86
|
+
).option("--pure <express>", "Mark specific expressions as pure").option("--metafile", "Emit esbuild metafile (a JSON file)").option("--platform <platform>", "Target platform", {
|
|
87
|
+
default: "node"
|
|
88
|
+
}).option("--loader <ext=loader>", "Specify the loader for a file extension").option("--tsconfig <filename>", "Use a custom tsconfig").option("--config <filename>", "Use a custom config file").option("--no-config", "Disable config file").option("--shims", "Enable cjs and esm shims").option("--inject-style", "Inject style tag to document head").option(
|
|
89
|
+
"--treeshake [strategy]",
|
|
90
|
+
'Using Rollup for treeshaking instead, "recommended" or "smallest" or "safest"'
|
|
91
|
+
).option("--publicDir [dir]", "Copy public directory to output directory").option(
|
|
92
|
+
"--killSignal <signal>",
|
|
93
|
+
'Signal to kill child process, "SIGTERM" or "SIGKILL"'
|
|
94
|
+
).option("--cjsInterop", "Enable cjs interop").action(async (files, flags) => {
|
|
95
|
+
const { build } = await Promise.resolve().then(() => _interopRequireWildcard(require("./index.js")));
|
|
96
|
+
Object.assign(options, {
|
|
97
|
+
...flags
|
|
98
|
+
});
|
|
99
|
+
if (!options.entry && files.length > 0) {
|
|
100
|
+
options.entry = files.map(_chunkTWFEYLU4js.slash);
|
|
101
|
+
}
|
|
102
|
+
if (flags.format) {
|
|
103
|
+
const format = ensureArray(flags.format);
|
|
104
|
+
options.format = format;
|
|
105
|
+
}
|
|
106
|
+
if (flags.external) {
|
|
107
|
+
const external = ensureArray(flags.external);
|
|
108
|
+
options.external = external;
|
|
109
|
+
}
|
|
110
|
+
if (flags.target) {
|
|
111
|
+
options.target = flags.target.includes(",") ? flags.target.split(",") : flags.target;
|
|
112
|
+
}
|
|
113
|
+
if (flags.dts || flags.dtsResolve || flags.dtsOnly) {
|
|
114
|
+
options.dts = {};
|
|
115
|
+
if (typeof flags.dts === "string") {
|
|
116
|
+
options.dts.entry = flags.dts;
|
|
117
|
+
}
|
|
118
|
+
if (flags.dtsResolve) {
|
|
119
|
+
options.dts.resolve = flags.dtsResolve;
|
|
120
|
+
}
|
|
121
|
+
if (flags.dtsOnly) {
|
|
122
|
+
options.dts.only = true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
if (flags.inject) {
|
|
126
|
+
const inject = ensureArray(flags.inject);
|
|
127
|
+
options.inject = inject;
|
|
128
|
+
}
|
|
129
|
+
if (flags.define) {
|
|
130
|
+
const define = flatten(flags.define);
|
|
131
|
+
options.define = define;
|
|
132
|
+
}
|
|
133
|
+
if (flags.loader) {
|
|
134
|
+
const loader = ensureArray(flags.loader);
|
|
135
|
+
options.loader = loader.reduce((result, item) => {
|
|
136
|
+
const parts = item.split("=");
|
|
137
|
+
return {
|
|
138
|
+
...result,
|
|
139
|
+
[parts[0]]: parts[1]
|
|
140
|
+
};
|
|
141
|
+
}, {});
|
|
142
|
+
}
|
|
143
|
+
await build(options);
|
|
144
|
+
});
|
|
145
|
+
cli.help();
|
|
146
|
+
cli.version(_chunkBYH4XDRHjs.version);
|
|
147
|
+
cli.parse(process.argv, { run: false });
|
|
148
|
+
await cli.runMatchedCommand();
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
exports.main = main;
|
|
@@ -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();
|