@storm-software/esbuild 0.29.1 → 0.30.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 +1 -1
- package/bin/esbuild.cjs +23 -10
- package/dist/build.cjs +3 -3
- package/dist/build.js +2 -2
- package/dist/{chunk-7TPLKPIV.cjs → chunk-NQQNULA5.cjs} +23 -23
- package/dist/{chunk-QUON5O3L.js → chunk-RDDN3V2P.js} +12 -21
- package/dist/{chunk-MGHE2AIZ.cjs → chunk-SCRZEL2M.cjs} +13 -22
- package/dist/{chunk-LHT6GJTP.js → chunk-V7VKJTC6.js} +12 -12
- package/dist/clean.d.cts +10 -10
- package/dist/clean.d.ts +10 -10
- package/dist/config.cjs +2 -2
- package/dist/config.d.cts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/dist/types.d.cts +2 -0
- package/dist/types.d.ts +2 -0
- package/package.json +4 -4
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/bin/esbuild.cjs
CHANGED
|
@@ -509,6 +509,18 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
509
509
|
bundle: true,
|
|
510
510
|
clean: true,
|
|
511
511
|
debug: false,
|
|
512
|
+
resolveExtensions: [
|
|
513
|
+
".tsx",
|
|
514
|
+
".ts",
|
|
515
|
+
".cts",
|
|
516
|
+
".mts",
|
|
517
|
+
".jsx",
|
|
518
|
+
".js",
|
|
519
|
+
".cjs",
|
|
520
|
+
".mjs",
|
|
521
|
+
".css",
|
|
522
|
+
".json"
|
|
523
|
+
],
|
|
512
524
|
loader: {
|
|
513
525
|
".aac": "file",
|
|
514
526
|
".css": "file",
|
|
@@ -744,16 +756,12 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
744
756
|
"module",
|
|
745
757
|
"main"
|
|
746
758
|
],
|
|
747
|
-
resolveExtensions: [
|
|
748
|
-
".ts",
|
|
749
|
-
".js",
|
|
750
|
-
".node"
|
|
751
|
-
],
|
|
752
759
|
...userOptions,
|
|
753
760
|
tsconfig: (0, import_correct_paths2.joinPaths)(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
754
761
|
format: options.format || "cjs",
|
|
755
762
|
entryPoints: await (0, import_build_tools.getEntryPoints)(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", userOptions.emitOnAll === true),
|
|
756
763
|
outdir: userOptions.outputPath || (0, import_correct_paths2.joinPaths)("dist", projectRoot),
|
|
764
|
+
distDir: userOptions.distDir || "dist",
|
|
757
765
|
plugins: [],
|
|
758
766
|
name: userOptions.name || projectName,
|
|
759
767
|
projectConfigurations,
|
|
@@ -825,7 +833,7 @@ async function generatePackageJson(context2) {
|
|
|
825
833
|
packageJson = await (0, import_build_tools.addWorkspacePackageJsonFields)(context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
826
834
|
packageJson.exports ??= {};
|
|
827
835
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
828
|
-
packageJson.exports["."] ??=
|
|
836
|
+
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
829
837
|
let entryPoints = [
|
|
830
838
|
{
|
|
831
839
|
in: "./src/index.ts",
|
|
@@ -843,12 +851,15 @@ async function generatePackageJson(context2) {
|
|
|
843
851
|
const split = entryPoint.out.split(".");
|
|
844
852
|
split.pop();
|
|
845
853
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
846
|
-
packageJson.exports[`./${entry}`] ??=
|
|
854
|
+
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
847
855
|
}
|
|
848
856
|
}
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
857
|
+
if (context2.options.format === "esm") {
|
|
858
|
+
packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
|
|
859
|
+
} else {
|
|
860
|
+
packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
|
|
861
|
+
}
|
|
862
|
+
packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
|
|
852
863
|
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
853
864
|
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
854
865
|
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
@@ -890,6 +901,7 @@ async function executeEsBuild(context2) {
|
|
|
890
901
|
const options = {
|
|
891
902
|
...context2.options
|
|
892
903
|
};
|
|
904
|
+
options.outdir = (0, import_correct_paths2.joinPaths)(context2.options.outdir, context2.options.distDir);
|
|
893
905
|
delete options.env;
|
|
894
906
|
delete options.name;
|
|
895
907
|
delete options.assets;
|
|
@@ -900,6 +912,7 @@ async function executeEsBuild(context2) {
|
|
|
900
912
|
delete options.debug;
|
|
901
913
|
delete options.generatePackageJson;
|
|
902
914
|
delete options.emitOnAll;
|
|
915
|
+
delete options.distDir;
|
|
903
916
|
delete options.includeSrc;
|
|
904
917
|
delete options.verbose;
|
|
905
918
|
delete options.projectRoot;
|
package/dist/build.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkNQQNULA5cjs = require('./chunk-NQQNULA5.cjs');
|
|
5
5
|
require('./chunk-DITM26C7.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-SCRZEL2M.cjs');
|
|
7
7
|
require('./chunk-S6M44SSZ.cjs');
|
|
8
8
|
require('./chunk-WRBUO7H6.cjs');
|
|
9
9
|
require('./chunk-I2FH4C27.cjs');
|
|
@@ -18,4 +18,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
exports.build =
|
|
21
|
+
exports.build = _chunkNQQNULA5cjs.build; exports.cleanOutputPath = _chunkNQQNULA5cjs.cleanOutputPath;
|
package/dist/build.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
build,
|
|
3
3
|
cleanOutputPath
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-V7VKJTC6.js";
|
|
5
5
|
import "./chunk-TUAAYWUJ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-RDDN3V2P.js";
|
|
7
7
|
import "./chunk-T5272PC2.js";
|
|
8
8
|
import "./chunk-LYDEMC26.js";
|
|
9
9
|
import "./chunk-YWKYHSIN.js";
|
|
@@ -12,8 +12,7 @@ var _chunkDITM26C7cjs = require('./chunk-DITM26C7.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
var _chunkMGHE2AIZcjs = require('./chunk-MGHE2AIZ.cjs');
|
|
15
|
+
var _chunkSCRZEL2Mcjs = require('./chunk-SCRZEL2M.cjs');
|
|
17
16
|
|
|
18
17
|
|
|
19
18
|
var _chunkDEO4HWIAcjs = require('./chunk-DEO4HWIA.cjs');
|
|
@@ -278,7 +277,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
278
277
|
if (!workspaceRoot) {
|
|
279
278
|
throw new Error("Cannot find Nx workspace root");
|
|
280
279
|
}
|
|
281
|
-
const config = await
|
|
280
|
+
const config = await _chunkSCRZEL2Mcjs.getConfig.call(void 0, workspaceRoot.dir);
|
|
282
281
|
_chunkF665CCSScjs.writeDebug.call(void 0, " \u2699\uFE0F Resolving build options", config);
|
|
283
282
|
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, "Build options resolution");
|
|
284
283
|
const projectGraph = await _devkit.createProjectGraphAsync.call(void 0, {
|
|
@@ -295,14 +294,14 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
295
294
|
if (!_optionalChain([projectConfigurations, 'optionalAccess', _14 => _14.projects, 'optionalAccess', _15 => _15[projectName]])) {
|
|
296
295
|
throw new Error("The Build process failed because the project does not have a valid configuration in the project.json file. Check if the file exists in the root of the project.");
|
|
297
296
|
}
|
|
298
|
-
const options = _defu2.default.call(void 0, userOptions,
|
|
297
|
+
const options = _defu2.default.call(void 0, userOptions, _chunkSCRZEL2Mcjs.DEFAULT_BUILD_OPTIONS);
|
|
299
298
|
options.name ??= `${projectName}-${options.format}`;
|
|
300
|
-
options.target ??=
|
|
299
|
+
options.target ??= _chunkSCRZEL2Mcjs.DEFAULT_TARGET;
|
|
301
300
|
const packageJsonPath = _chunkXITTOHOGcjs.joinPaths.call(void 0, workspaceRoot.dir, options.projectRoot, "package.json");
|
|
302
301
|
if (!_fs.existsSync.call(void 0, packageJsonPath)) {
|
|
303
302
|
throw new Error("Cannot find package.json configuration");
|
|
304
303
|
}
|
|
305
|
-
const env =
|
|
304
|
+
const env = _chunkSCRZEL2Mcjs.getEnv.call(void 0, "esbuild", options);
|
|
306
305
|
const result = {
|
|
307
306
|
...options,
|
|
308
307
|
config,
|
|
@@ -314,16 +313,12 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
314
313
|
"module",
|
|
315
314
|
"main"
|
|
316
315
|
],
|
|
317
|
-
resolveExtensions: [
|
|
318
|
-
".ts",
|
|
319
|
-
".js",
|
|
320
|
-
".node"
|
|
321
|
-
],
|
|
322
316
|
...userOptions,
|
|
323
317
|
tsconfig: _chunkXITTOHOGcjs.joinPaths.call(void 0, projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
324
318
|
format: options.format || "cjs",
|
|
325
|
-
entryPoints: await
|
|
319
|
+
entryPoints: await _chunkSCRZEL2Mcjs.getEntryPoints.call(void 0, config, projectRoot, projectJson.sourceRoot, _nullishCoalesce(userOptions.entry, () => ( "./src/index.ts")), userOptions.emitOnAll === true),
|
|
326
320
|
outdir: userOptions.outputPath || _chunkXITTOHOGcjs.joinPaths.call(void 0, "dist", projectRoot),
|
|
321
|
+
distDir: userOptions.distDir || "dist",
|
|
327
322
|
plugins: [],
|
|
328
323
|
name: userOptions.name || projectName,
|
|
329
324
|
projectConfigurations,
|
|
@@ -344,8 +339,8 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
344
339
|
watch: userOptions.watch === true,
|
|
345
340
|
footer: userOptions.footer,
|
|
346
341
|
banner: {
|
|
347
|
-
js: options.banner ||
|
|
348
|
-
css: options.banner ||
|
|
342
|
+
js: options.banner || _chunkSCRZEL2Mcjs.DEFAULT_COMPILED_BANNER,
|
|
343
|
+
css: options.banner || _chunkSCRZEL2Mcjs.DEFAULT_COMPILED_BANNER
|
|
349
344
|
},
|
|
350
345
|
splitting: options.format === "iife" ? false : typeof options.splitting === "boolean" ? options.splitting : options.format === "esm",
|
|
351
346
|
treeShaking: options.format === "esm",
|
|
@@ -372,7 +367,7 @@ var resolveOptions = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, async
|
|
|
372
367
|
..._nullishCoalesce(options.inject, () => ( []))
|
|
373
368
|
].filter(Boolean)
|
|
374
369
|
};
|
|
375
|
-
result.plugins = _nullishCoalesce(userOptions.plugins, () => (
|
|
370
|
+
result.plugins = _nullishCoalesce(userOptions.plugins, () => ( _chunkSCRZEL2Mcjs.getDefaultBuildPlugins.call(void 0, userOptions, result)));
|
|
376
371
|
delete result.entry;
|
|
377
372
|
delete result.outputPath;
|
|
378
373
|
stopwatch();
|
|
@@ -391,11 +386,11 @@ async function generatePackageJson(context2) {
|
|
|
391
386
|
if (!packageJson) {
|
|
392
387
|
throw new Error("Cannot find package.json configuration file");
|
|
393
388
|
}
|
|
394
|
-
packageJson = await
|
|
395
|
-
packageJson = await
|
|
389
|
+
packageJson = await _chunkSCRZEL2Mcjs.addPackageDependencies.call(void 0, context2.options.config.workspaceRoot, context2.options.projectRoot, context2.options.projectName, packageJson);
|
|
390
|
+
packageJson = await _chunkSCRZEL2Mcjs.addWorkspacePackageJsonFields.call(void 0, context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
396
391
|
packageJson.exports ??= {};
|
|
397
392
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
398
|
-
packageJson.exports["."] ??=
|
|
393
|
+
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
399
394
|
let entryPoints = [
|
|
400
395
|
{
|
|
401
396
|
in: "./src/index.ts",
|
|
@@ -413,12 +408,15 @@ async function generatePackageJson(context2) {
|
|
|
413
408
|
const split = entryPoint.out.split(".");
|
|
414
409
|
split.pop();
|
|
415
410
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
416
|
-
packageJson.exports[`./${entry}`] ??=
|
|
411
|
+
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
417
412
|
}
|
|
418
413
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
414
|
+
if (context2.options.format === "esm") {
|
|
415
|
+
packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
|
|
416
|
+
} else {
|
|
417
|
+
packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
|
|
418
|
+
}
|
|
419
|
+
packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
|
|
422
420
|
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
423
421
|
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
424
422
|
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
@@ -460,6 +458,7 @@ async function executeEsBuild(context2) {
|
|
|
460
458
|
const options = {
|
|
461
459
|
...context2.options
|
|
462
460
|
};
|
|
461
|
+
options.outdir = _chunkXITTOHOGcjs.joinPaths.call(void 0, context2.options.outdir, context2.options.distDir);
|
|
463
462
|
delete options.env;
|
|
464
463
|
delete options.name;
|
|
465
464
|
delete options.assets;
|
|
@@ -470,6 +469,7 @@ async function executeEsBuild(context2) {
|
|
|
470
469
|
delete options.debug;
|
|
471
470
|
delete options.generatePackageJson;
|
|
472
471
|
delete options.emitOnAll;
|
|
472
|
+
delete options.distDir;
|
|
473
473
|
delete options.includeSrc;
|
|
474
474
|
delete options.verbose;
|
|
475
475
|
delete options.projectRoot;
|
|
@@ -494,7 +494,7 @@ async function copyBuildAssets(context2) {
|
|
|
494
494
|
if (_optionalChain([context2, 'access', _16 => _16.result, 'optionalAccess', _17 => _17.errors, 'access', _18 => _18.length]) === 0) {
|
|
495
495
|
_chunkF665CCSScjs.writeDebug.call(void 0, ` \u{1F4CB} Copying asset files to output directory: ${context2.options.outdir}`, context2.options.config);
|
|
496
496
|
const stopwatch = _chunkF665CCSScjs.getStopwatch.call(void 0, `${context2.options.name} asset copy`);
|
|
497
|
-
await
|
|
497
|
+
await _chunkSCRZEL2Mcjs.copyAssets.call(void 0, context2.options.config, _nullishCoalesce(context2.options.assets, () => ( [])), context2.options.outdir, context2.options.projectRoot, context2.options.sourceRoot, true, false);
|
|
498
498
|
stopwatch();
|
|
499
499
|
}
|
|
500
500
|
return context2;
|
|
@@ -229,26 +229,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ __name(async (config, projec
|
|
|
229
229
|
packageJson.repository.directory ??= projectRoot ? projectRoot : joinPaths("packages", projectName);
|
|
230
230
|
return packageJson;
|
|
231
231
|
}, "addWorkspacePackageJsonFields");
|
|
232
|
-
var addPackageJsonExport = /* @__PURE__ */ __name((file, type = "module", sourceRoot) => {
|
|
233
|
-
let entry = file.replaceAll("\\", "/");
|
|
234
|
-
if (sourceRoot) {
|
|
235
|
-
entry = entry.replace(sourceRoot, "");
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
import: {
|
|
239
|
-
types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
|
|
240
|
-
default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
|
|
241
|
-
},
|
|
242
|
-
require: {
|
|
243
|
-
types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
|
|
244
|
-
default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
|
|
245
|
-
},
|
|
246
|
-
default: {
|
|
247
|
-
types: `./dist/${entry}.d.ts`,
|
|
248
|
-
default: `./dist/${entry}.js`
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
}, "addPackageJsonExport");
|
|
252
232
|
|
|
253
233
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
254
234
|
import { loadConfig } from "c12";
|
|
@@ -880,6 +860,18 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
880
860
|
bundle: true,
|
|
881
861
|
clean: true,
|
|
882
862
|
debug: false,
|
|
863
|
+
resolveExtensions: [
|
|
864
|
+
".tsx",
|
|
865
|
+
".ts",
|
|
866
|
+
".cts",
|
|
867
|
+
".mts",
|
|
868
|
+
".jsx",
|
|
869
|
+
".js",
|
|
870
|
+
".cjs",
|
|
871
|
+
".mjs",
|
|
872
|
+
".css",
|
|
873
|
+
".json"
|
|
874
|
+
],
|
|
883
875
|
loader: {
|
|
884
876
|
".aac": "file",
|
|
885
877
|
".css": "file",
|
|
@@ -910,7 +902,6 @@ export {
|
|
|
910
902
|
copyAssets,
|
|
911
903
|
addPackageDependencies,
|
|
912
904
|
addWorkspacePackageJsonFields,
|
|
913
|
-
addPackageJsonExport,
|
|
914
905
|
getConfig,
|
|
915
906
|
getEntryPoints,
|
|
916
907
|
getEnv,
|
|
@@ -229,26 +229,6 @@ var addWorkspacePackageJsonFields = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.cal
|
|
|
229
229
|
packageJson.repository.directory ??= projectRoot ? projectRoot : _chunkXITTOHOGcjs.joinPaths.call(void 0, "packages", projectName);
|
|
230
230
|
return packageJson;
|
|
231
231
|
}, "addWorkspacePackageJsonFields");
|
|
232
|
-
var addPackageJsonExport = /* @__PURE__ */ _chunkBGYQAVKQcjs.__name.call(void 0, (file, type = "module", sourceRoot) => {
|
|
233
|
-
let entry = file.replaceAll("\\", "/");
|
|
234
|
-
if (sourceRoot) {
|
|
235
|
-
entry = entry.replace(sourceRoot, "");
|
|
236
|
-
}
|
|
237
|
-
return {
|
|
238
|
-
import: {
|
|
239
|
-
types: `./dist/${entry}.d.${type === "module" ? "ts" : "mts"}`,
|
|
240
|
-
default: `./dist/${entry}.${type === "module" ? "js" : "mjs"}`
|
|
241
|
-
},
|
|
242
|
-
require: {
|
|
243
|
-
types: `./dist/${entry}.d.${type === "commonjs" ? "ts" : "cts"}`,
|
|
244
|
-
default: `./dist/${entry}.${type === "commonjs" ? "js" : "cjs"}`
|
|
245
|
-
},
|
|
246
|
-
default: {
|
|
247
|
-
types: `./dist/${entry}.d.ts`,
|
|
248
|
-
default: `./dist/${entry}.js`
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
}, "addPackageJsonExport");
|
|
252
232
|
|
|
253
233
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
254
234
|
var _c12 = require('c12');
|
|
@@ -880,6 +860,18 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
880
860
|
bundle: true,
|
|
881
861
|
clean: true,
|
|
882
862
|
debug: false,
|
|
863
|
+
resolveExtensions: [
|
|
864
|
+
".tsx",
|
|
865
|
+
".ts",
|
|
866
|
+
".cts",
|
|
867
|
+
".mts",
|
|
868
|
+
".jsx",
|
|
869
|
+
".js",
|
|
870
|
+
".cjs",
|
|
871
|
+
".mjs",
|
|
872
|
+
".css",
|
|
873
|
+
".json"
|
|
874
|
+
],
|
|
883
875
|
loader: {
|
|
884
876
|
".aac": "file",
|
|
885
877
|
".css": "file",
|
|
@@ -915,5 +907,4 @@ var DEFAULT_BUILD_OPTIONS = {
|
|
|
915
907
|
|
|
916
908
|
|
|
917
909
|
|
|
918
|
-
|
|
919
|
-
exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.addPackageJsonExport = addPackageJsonExport; exports.getConfig = getConfig; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getDefaultBuildPlugins = getDefaultBuildPlugins; exports.DEFAULT_BUILD_OPTIONS = DEFAULT_BUILD_OPTIONS;
|
|
910
|
+
exports.DEFAULT_COMPILED_BANNER = DEFAULT_COMPILED_BANNER; exports.DEFAULT_TARGET = DEFAULT_TARGET; exports.copyAssets = copyAssets; exports.addPackageDependencies = addPackageDependencies; exports.addWorkspacePackageJsonFields = addWorkspacePackageJsonFields; exports.getConfig = getConfig; exports.getEntryPoints = getEntryPoints; exports.getEnv = getEnv; exports.getDefaultBuildPlugins = getDefaultBuildPlugins; exports.DEFAULT_BUILD_OPTIONS = DEFAULT_BUILD_OPTIONS;
|
|
@@ -6,14 +6,13 @@ import {
|
|
|
6
6
|
DEFAULT_COMPILED_BANNER,
|
|
7
7
|
DEFAULT_TARGET,
|
|
8
8
|
addPackageDependencies,
|
|
9
|
-
addPackageJsonExport,
|
|
10
9
|
addWorkspacePackageJsonFields,
|
|
11
10
|
copyAssets,
|
|
12
11
|
getConfig,
|
|
13
12
|
getDefaultBuildPlugins,
|
|
14
13
|
getEntryPoints,
|
|
15
14
|
getEnv
|
|
16
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RDDN3V2P.js";
|
|
17
16
|
import {
|
|
18
17
|
depsCheckPlugin
|
|
19
18
|
} from "./chunk-NCMOSDGN.js";
|
|
@@ -314,16 +313,12 @@ var resolveOptions = /* @__PURE__ */ __name(async (userOptions) => {
|
|
|
314
313
|
"module",
|
|
315
314
|
"main"
|
|
316
315
|
],
|
|
317
|
-
resolveExtensions: [
|
|
318
|
-
".ts",
|
|
319
|
-
".js",
|
|
320
|
-
".node"
|
|
321
|
-
],
|
|
322
316
|
...userOptions,
|
|
323
317
|
tsconfig: joinPaths(projectRoot, userOptions.tsconfig ? userOptions.tsconfig.replace(projectRoot, "") : "tsconfig.json"),
|
|
324
318
|
format: options.format || "cjs",
|
|
325
319
|
entryPoints: await getEntryPoints(config, projectRoot, projectJson.sourceRoot, userOptions.entry ?? "./src/index.ts", userOptions.emitOnAll === true),
|
|
326
320
|
outdir: userOptions.outputPath || joinPaths("dist", projectRoot),
|
|
321
|
+
distDir: userOptions.distDir || "dist",
|
|
327
322
|
plugins: [],
|
|
328
323
|
name: userOptions.name || projectName,
|
|
329
324
|
projectConfigurations,
|
|
@@ -395,7 +390,7 @@ async function generatePackageJson(context2) {
|
|
|
395
390
|
packageJson = await addWorkspacePackageJsonFields(context2.options.config, context2.options.projectRoot, context2.options.sourceRoot, context2.options.projectName, false, packageJson);
|
|
396
391
|
packageJson.exports ??= {};
|
|
397
392
|
packageJson.exports["./package.json"] ??= "./package.json";
|
|
398
|
-
packageJson.exports["."] ??=
|
|
393
|
+
packageJson.exports["."] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js`;
|
|
399
394
|
let entryPoints = [
|
|
400
395
|
{
|
|
401
396
|
in: "./src/index.ts",
|
|
@@ -413,12 +408,15 @@ async function generatePackageJson(context2) {
|
|
|
413
408
|
const split = entryPoint.out.split(".");
|
|
414
409
|
split.pop();
|
|
415
410
|
const entry = split.join(".").replaceAll("\\", "/");
|
|
416
|
-
packageJson.exports[`./${entry}`] ??=
|
|
411
|
+
packageJson.exports[`./${entry}`] ??= `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/${entry}.js`;
|
|
417
412
|
}
|
|
418
413
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
414
|
+
if (context2.options.format === "esm") {
|
|
415
|
+
packageJson.module = packageJson.type === "module" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.mjs`;
|
|
416
|
+
} else {
|
|
417
|
+
packageJson.main = packageJson.type === "commonjs" ? `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.js` : `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.cjs`;
|
|
418
|
+
}
|
|
419
|
+
packageJson.types = `.${context2.options.distDir ? `/${context2.options.distDir}` : ""}/index.d.ts`;
|
|
422
420
|
packageJson.exports = Object.keys(packageJson.exports).reduce((ret, key) => {
|
|
423
421
|
if (key.endsWith("/index") && !ret[key.replace("/index", "")]) {
|
|
424
422
|
ret[key.replace("/index", "")] = packageJson.exports[key];
|
|
@@ -460,6 +458,7 @@ async function executeEsBuild(context2) {
|
|
|
460
458
|
const options = {
|
|
461
459
|
...context2.options
|
|
462
460
|
};
|
|
461
|
+
options.outdir = joinPaths(context2.options.outdir, context2.options.distDir);
|
|
463
462
|
delete options.env;
|
|
464
463
|
delete options.name;
|
|
465
464
|
delete options.assets;
|
|
@@ -470,6 +469,7 @@ async function executeEsBuild(context2) {
|
|
|
470
469
|
delete options.debug;
|
|
471
470
|
delete options.generatePackageJson;
|
|
472
471
|
delete options.emitOnAll;
|
|
472
|
+
delete options.distDir;
|
|
473
473
|
delete options.includeSrc;
|
|
474
474
|
delete options.verbose;
|
|
475
475
|
delete options.projectRoot;
|
package/dist/clean.d.cts
CHANGED
|
@@ -40,15 +40,15 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
40
40
|
build: z.ZodDefault<z.ZodString>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
build: string;
|
|
43
|
+
config?: string | undefined;
|
|
43
44
|
cache?: string | undefined;
|
|
44
45
|
data?: string | undefined;
|
|
45
|
-
config?: string | undefined;
|
|
46
46
|
temp?: string | undefined;
|
|
47
47
|
log?: string | undefined;
|
|
48
48
|
}, {
|
|
49
|
+
config?: string | undefined;
|
|
49
50
|
cache?: string | undefined;
|
|
50
51
|
data?: string | undefined;
|
|
51
|
-
config?: string | undefined;
|
|
52
52
|
temp?: string | undefined;
|
|
53
53
|
log?: string | undefined;
|
|
54
54
|
build?: string | undefined;
|
|
@@ -795,6 +795,8 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
795
795
|
}>]>>]>]>;
|
|
796
796
|
extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
797
797
|
}, "strip", z.ZodTypeAny, {
|
|
798
|
+
logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
|
|
799
|
+
mode: "development" | "staging" | "production";
|
|
798
800
|
organization: string;
|
|
799
801
|
license: string;
|
|
800
802
|
homepage: string;
|
|
@@ -806,22 +808,20 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
806
808
|
name: string;
|
|
807
809
|
email: string;
|
|
808
810
|
};
|
|
809
|
-
mode: "development" | "staging" | "production";
|
|
810
811
|
workspaceRoot: string;
|
|
811
812
|
externalPackagePatterns: string[];
|
|
812
813
|
skipCache: boolean;
|
|
813
814
|
directories: {
|
|
814
815
|
build: string;
|
|
816
|
+
config?: string | undefined;
|
|
815
817
|
cache?: string | undefined;
|
|
816
818
|
data?: string | undefined;
|
|
817
|
-
config?: string | undefined;
|
|
818
819
|
temp?: string | undefined;
|
|
819
820
|
log?: string | undefined;
|
|
820
821
|
};
|
|
821
822
|
packageManager: "npm" | "yarn" | "pnpm" | "bun";
|
|
822
823
|
timezone: string;
|
|
823
824
|
locale: string;
|
|
824
|
-
logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
|
|
825
825
|
registry: {
|
|
826
826
|
npm?: string | undefined;
|
|
827
827
|
github?: string | undefined;
|
|
@@ -978,9 +978,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
978
978
|
};
|
|
979
979
|
}>;
|
|
980
980
|
extensions: Record<string, any>;
|
|
981
|
+
name?: string | undefined;
|
|
981
982
|
$schema?: string | null | undefined;
|
|
982
983
|
extends?: string | string[] | undefined;
|
|
983
|
-
name?: string | undefined;
|
|
984
984
|
namespace?: string | undefined;
|
|
985
985
|
repository?: string | undefined;
|
|
986
986
|
preid?: string | undefined;
|
|
@@ -991,9 +991,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
991
991
|
email?: string | undefined;
|
|
992
992
|
};
|
|
993
993
|
directories: {
|
|
994
|
+
config?: string | undefined;
|
|
994
995
|
cache?: string | undefined;
|
|
995
996
|
data?: string | undefined;
|
|
996
|
-
config?: string | undefined;
|
|
997
997
|
temp?: string | undefined;
|
|
998
998
|
log?: string | undefined;
|
|
999
999
|
build?: string | undefined;
|
|
@@ -1145,9 +1145,11 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1145
1145
|
background?: string | undefined;
|
|
1146
1146
|
};
|
|
1147
1147
|
}>;
|
|
1148
|
+
logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
|
|
1149
|
+
name?: string | undefined;
|
|
1150
|
+
mode?: "development" | "staging" | "production" | undefined;
|
|
1148
1151
|
$schema?: string | null | undefined;
|
|
1149
1152
|
extends?: string | string[] | undefined;
|
|
1150
|
-
name?: string | undefined;
|
|
1151
1153
|
namespace?: string | undefined;
|
|
1152
1154
|
organization?: string | undefined;
|
|
1153
1155
|
repository?: string | undefined;
|
|
@@ -1158,14 +1160,12 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1158
1160
|
branch?: string | undefined;
|
|
1159
1161
|
preid?: string | undefined;
|
|
1160
1162
|
owner?: string | undefined;
|
|
1161
|
-
mode?: "development" | "staging" | "production" | undefined;
|
|
1162
1163
|
workspaceRoot?: string | undefined;
|
|
1163
1164
|
externalPackagePatterns?: string[] | undefined;
|
|
1164
1165
|
skipCache?: boolean | undefined;
|
|
1165
1166
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1166
1167
|
timezone?: string | undefined;
|
|
1167
1168
|
locale?: string | undefined;
|
|
1168
|
-
logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
|
|
1169
1169
|
skipConfigLogging?: boolean | undefined;
|
|
1170
1170
|
registry?: {
|
|
1171
1171
|
npm?: string | undefined;
|
package/dist/clean.d.ts
CHANGED
|
@@ -40,15 +40,15 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
40
40
|
build: z.ZodDefault<z.ZodString>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
42
|
build: string;
|
|
43
|
+
config?: string | undefined;
|
|
43
44
|
cache?: string | undefined;
|
|
44
45
|
data?: string | undefined;
|
|
45
|
-
config?: string | undefined;
|
|
46
46
|
temp?: string | undefined;
|
|
47
47
|
log?: string | undefined;
|
|
48
48
|
}, {
|
|
49
|
+
config?: string | undefined;
|
|
49
50
|
cache?: string | undefined;
|
|
50
51
|
data?: string | undefined;
|
|
51
|
-
config?: string | undefined;
|
|
52
52
|
temp?: string | undefined;
|
|
53
53
|
log?: string | undefined;
|
|
54
54
|
build?: string | undefined;
|
|
@@ -795,6 +795,8 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
795
795
|
}>]>>]>]>;
|
|
796
796
|
extensions: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
797
797
|
}, "strip", z.ZodTypeAny, {
|
|
798
|
+
logLevel: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all";
|
|
799
|
+
mode: "development" | "staging" | "production";
|
|
798
800
|
organization: string;
|
|
799
801
|
license: string;
|
|
800
802
|
homepage: string;
|
|
@@ -806,22 +808,20 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
806
808
|
name: string;
|
|
807
809
|
email: string;
|
|
808
810
|
};
|
|
809
|
-
mode: "development" | "staging" | "production";
|
|
810
811
|
workspaceRoot: string;
|
|
811
812
|
externalPackagePatterns: string[];
|
|
812
813
|
skipCache: boolean;
|
|
813
814
|
directories: {
|
|
814
815
|
build: string;
|
|
816
|
+
config?: string | undefined;
|
|
815
817
|
cache?: string | undefined;
|
|
816
818
|
data?: string | undefined;
|
|
817
|
-
config?: string | undefined;
|
|
818
819
|
temp?: string | undefined;
|
|
819
820
|
log?: string | undefined;
|
|
820
821
|
};
|
|
821
822
|
packageManager: "npm" | "yarn" | "pnpm" | "bun";
|
|
822
823
|
timezone: string;
|
|
823
824
|
locale: string;
|
|
824
|
-
logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
|
|
825
825
|
registry: {
|
|
826
826
|
npm?: string | undefined;
|
|
827
827
|
github?: string | undefined;
|
|
@@ -978,9 +978,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
978
978
|
};
|
|
979
979
|
}>;
|
|
980
980
|
extensions: Record<string, any>;
|
|
981
|
+
name?: string | undefined;
|
|
981
982
|
$schema?: string | null | undefined;
|
|
982
983
|
extends?: string | string[] | undefined;
|
|
983
|
-
name?: string | undefined;
|
|
984
984
|
namespace?: string | undefined;
|
|
985
985
|
repository?: string | undefined;
|
|
986
986
|
preid?: string | undefined;
|
|
@@ -991,9 +991,9 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
991
991
|
email?: string | undefined;
|
|
992
992
|
};
|
|
993
993
|
directories: {
|
|
994
|
+
config?: string | undefined;
|
|
994
995
|
cache?: string | undefined;
|
|
995
996
|
data?: string | undefined;
|
|
996
|
-
config?: string | undefined;
|
|
997
997
|
temp?: string | undefined;
|
|
998
998
|
log?: string | undefined;
|
|
999
999
|
build?: string | undefined;
|
|
@@ -1145,9 +1145,11 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1145
1145
|
background?: string | undefined;
|
|
1146
1146
|
};
|
|
1147
1147
|
}>;
|
|
1148
|
+
logLevel?: "debug" | "silent" | "fatal" | "error" | "warn" | "success" | "info" | "trace" | "all" | undefined;
|
|
1149
|
+
name?: string | undefined;
|
|
1150
|
+
mode?: "development" | "staging" | "production" | undefined;
|
|
1148
1151
|
$schema?: string | null | undefined;
|
|
1149
1152
|
extends?: string | string[] | undefined;
|
|
1150
|
-
name?: string | undefined;
|
|
1151
1153
|
namespace?: string | undefined;
|
|
1152
1154
|
organization?: string | undefined;
|
|
1153
1155
|
repository?: string | undefined;
|
|
@@ -1158,14 +1160,12 @@ declare const StormConfigSchema: z.ZodObject<{
|
|
|
1158
1160
|
branch?: string | undefined;
|
|
1159
1161
|
preid?: string | undefined;
|
|
1160
1162
|
owner?: string | undefined;
|
|
1161
|
-
mode?: "development" | "staging" | "production" | undefined;
|
|
1162
1163
|
workspaceRoot?: string | undefined;
|
|
1163
1164
|
externalPackagePatterns?: string[] | undefined;
|
|
1164
1165
|
skipCache?: boolean | undefined;
|
|
1165
1166
|
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
1166
1167
|
timezone?: string | undefined;
|
|
1167
1168
|
locale?: string | undefined;
|
|
1168
|
-
logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
|
|
1169
1169
|
skipConfigLogging?: boolean | undefined;
|
|
1170
1170
|
registry?: {
|
|
1171
1171
|
npm?: string | undefined;
|
package/dist/config.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkSCRZEL2Mcjs = require('./chunk-SCRZEL2M.cjs');
|
|
5
5
|
require('./chunk-S6M44SSZ.cjs');
|
|
6
6
|
require('./chunk-WRBUO7H6.cjs');
|
|
7
7
|
require('./chunk-I2FH4C27.cjs');
|
|
@@ -15,4 +15,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
18
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkSCRZEL2Mcjs.DEFAULT_BUILD_OPTIONS; exports.getDefaultBuildPlugins = _chunkSCRZEL2Mcjs.getDefaultBuildPlugins;
|
package/dist/config.d.cts
CHANGED
|
@@ -6,6 +6,6 @@ import 'rollup';
|
|
|
6
6
|
import 'source-map';
|
|
7
7
|
|
|
8
8
|
declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
|
|
9
|
-
declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "loader" | "banner" | "logLevel">>;
|
|
9
|
+
declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "resolveExtensions" | "loader" | "banner" | "logLevel">>;
|
|
10
10
|
|
|
11
11
|
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins };
|
package/dist/config.d.ts
CHANGED
|
@@ -6,6 +6,6 @@ import 'rollup';
|
|
|
6
6
|
import 'source-map';
|
|
7
7
|
|
|
8
8
|
declare const getDefaultBuildPlugins: (options: ESBuildOptions, resolvedOptions: ESBuildResolvedOptions) => esbuild.Plugin[];
|
|
9
|
-
declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "loader" | "banner" | "logLevel">>;
|
|
9
|
+
declare const DEFAULT_BUILD_OPTIONS: Required<Pick<ESBuildOptions, "format" | "platform" | "target" | "external" | "tsconfig" | "mode" | "keepNames" | "metafile" | "injectShims" | "color" | "watch" | "bundle" | "clean" | "debug" | "resolveExtensions" | "loader" | "banner" | "logLevel">>;
|
|
10
10
|
|
|
11
11
|
export { DEFAULT_BUILD_OPTIONS, getDefaultBuildPlugins };
|
package/dist/config.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkNQQNULA5cjs = require('./chunk-NQQNULA5.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ var _chunkDITM26C7cjs = require('./chunk-DITM26C7.cjs');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkSCRZEL2Mcjs = require('./chunk-SCRZEL2M.cjs');
|
|
19
19
|
require('./chunk-S6M44SSZ.cjs');
|
|
20
20
|
require('./chunk-WRBUO7H6.cjs');
|
|
21
21
|
require('./chunk-I2FH4C27.cjs');
|
|
@@ -41,4 +41,4 @@ require('./chunk-BGYQAVKQ.cjs');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.DEFAULT_BUILD_OPTIONS =
|
|
44
|
+
exports.DEFAULT_BUILD_OPTIONS = _chunkSCRZEL2Mcjs.DEFAULT_BUILD_OPTIONS; exports.Filter = _chunkNQQNULA5cjs.Filter; exports.Mapper = _chunkNQQNULA5cjs.Mapper; exports.build = _chunkNQQNULA5cjs.build; exports.clean = _chunkDITM26C7cjs.clean; exports.cleanDirectories = _chunkDITM26C7cjs.cleanDirectories; exports.cleanOutputPath = _chunkNQQNULA5cjs.cleanOutputPath; exports.getDefaultBuildPlugins = _chunkSCRZEL2Mcjs.getDefaultBuildPlugins; exports.handle = _chunkNQQNULA5cjs.handle; exports.pipe = _chunkNQQNULA5cjs.pipe; exports.skip = _chunkNQQNULA5cjs.skip; exports.transduce = _chunkNQQNULA5cjs.transduce;
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
pipe,
|
|
8
8
|
skip,
|
|
9
9
|
transduce
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V7VKJTC6.js";
|
|
11
11
|
import {
|
|
12
12
|
clean,
|
|
13
13
|
cleanDirectories
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_BUILD_OPTIONS,
|
|
17
17
|
getDefaultBuildPlugins
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RDDN3V2P.js";
|
|
19
19
|
import "./chunk-T5272PC2.js";
|
|
20
20
|
import "./chunk-LYDEMC26.js";
|
|
21
21
|
import "./chunk-YWKYHSIN.js";
|
package/dist/types.d.cts
CHANGED
|
@@ -21,6 +21,7 @@ type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension"
|
|
|
21
21
|
emitTypes?: boolean;
|
|
22
22
|
injectShims?: boolean;
|
|
23
23
|
renderers?: Renderer[];
|
|
24
|
+
distDir?: string;
|
|
24
25
|
};
|
|
25
26
|
type ESBuildResult = BuildResult;
|
|
26
27
|
type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap" | "outExtension"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
|
|
@@ -31,6 +32,7 @@ type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "f
|
|
|
31
32
|
entryPoints: string[];
|
|
32
33
|
renderers?: Renderer[];
|
|
33
34
|
format: Format;
|
|
35
|
+
distDir: string;
|
|
34
36
|
};
|
|
35
37
|
type ESBuildCLIOptions = AdditionalCLIOptions & Pick<ESBuildOptions, "name" | "entry" | "outputPath" | "platform" | "format" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "emitOnAll" | "metafile" | "minify" | "includeSrc" | "verbose" | "emitTypes" | "injectShims">;
|
|
36
38
|
type ESBuildContext = {
|
package/dist/types.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ type ESBuildOptions = Omit<BuildOptions, "outbase" | "outfile" | "outExtension"
|
|
|
21
21
|
emitTypes?: boolean;
|
|
22
22
|
injectShims?: boolean;
|
|
23
23
|
renderers?: Renderer[];
|
|
24
|
+
distDir?: string;
|
|
24
25
|
};
|
|
25
26
|
type ESBuildResult = BuildResult;
|
|
26
27
|
type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "footer" | "target" | "format" | "sourcemap" | "outExtension"> & Pick<BuildOptions, "loader" | "inject" | "metafile" | "keepNames" | "target" | "color" | "banner" | "footer" | "sourcemap"> & {
|
|
@@ -31,6 +32,7 @@ type ESBuildResolvedOptions = Omit<TypeScriptBuildResolvedOptions, "banner" | "f
|
|
|
31
32
|
entryPoints: string[];
|
|
32
33
|
renderers?: Renderer[];
|
|
33
34
|
format: Format;
|
|
35
|
+
distDir: string;
|
|
34
36
|
};
|
|
35
37
|
type ESBuildCLIOptions = AdditionalCLIOptions & Pick<ESBuildOptions, "name" | "entry" | "outputPath" | "platform" | "format" | "bundle" | "target" | "watch" | "clean" | "debug" | "banner" | "footer" | "splitting" | "treeShaking" | "generatePackageJson" | "emitOnAll" | "metafile" | "minify" | "includeSrc" | "verbose" | "emitTypes" | "injectShims">;
|
|
36
38
|
type ESBuildContext = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
"@microsoft/api-extractor": "^7.48.1",
|
|
173
173
|
"@nx/devkit": "^20.3.1",
|
|
174
174
|
"@nx/js": "^20.3.1",
|
|
175
|
-
"@storm-software/build-tools": "0.
|
|
176
|
-
"@storm-software/config": "1.106.
|
|
177
|
-
"@storm-software/config-tools": "1.158.
|
|
175
|
+
"@storm-software/build-tools": "0.142.0",
|
|
176
|
+
"@storm-software/config": "1.106.1",
|
|
177
|
+
"@storm-software/config-tools": "1.158.1",
|
|
178
178
|
"@types/node": "^22.10.2",
|
|
179
179
|
"rollup": "4.29.1",
|
|
180
180
|
"spdx-exceptions": "^2.5.0",
|