@storm-software/esbuild 0.53.11 → 0.53.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 +49 -98
- package/package.json +7 -7
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
|
@@ -10720,122 +10720,73 @@ async function createProgram(config) {
|
|
|
10720
10720
|
const program = new import_commander.Command("storm-esbuild");
|
|
10721
10721
|
program.version("1.0.0", "-v --version", "display CLI version");
|
|
10722
10722
|
program.description("\u26A1 Run the Storm ESBuild pipeline").showHelpAfterError().showSuggestionAfterError();
|
|
10723
|
-
|
|
10723
|
+
program.command("build", { isDefault: true }).alias("bundle").description(
|
|
10724
|
+
"Run a TypeScript build using ESBuild, API-Extractor, and TSC (for type generation)."
|
|
10725
|
+
).option("-n --name <value>", "The name of the project to build").option(
|
|
10724
10726
|
"-p --project-root <path>",
|
|
10725
10727
|
"The path to the root of the project to build. This path is defined relative to the workspace root."
|
|
10726
|
-
).
|
|
10727
|
-
const sourceRootOption = new import_commander.Option(
|
|
10728
|
+
).option(
|
|
10728
10729
|
"-s --source-root <path>",
|
|
10729
10730
|
"The path of the project's source folder to build"
|
|
10730
|
-
)
|
|
10731
|
-
const nameOption = new import_commander.Option(
|
|
10732
|
-
"-n --name <value>",
|
|
10733
|
-
"The name of the project to build"
|
|
10734
|
-
);
|
|
10735
|
-
const outputPathOption = new import_commander.Option(
|
|
10731
|
+
).option(
|
|
10736
10732
|
"-o --output-path <path>",
|
|
10737
|
-
"The path of the project's source folder to build"
|
|
10738
|
-
|
|
10739
|
-
|
|
10733
|
+
"The path of the project's source folder to build",
|
|
10734
|
+
"dist/{projectRoot}"
|
|
10735
|
+
).option(
|
|
10740
10736
|
"-p --platform <value>",
|
|
10741
|
-
"The platform to build the distribution for"
|
|
10742
|
-
|
|
10743
|
-
|
|
10737
|
+
"The platform to build the distribution for",
|
|
10738
|
+
"node"
|
|
10739
|
+
).option(
|
|
10744
10740
|
"-f, --format <value...>",
|
|
10745
|
-
"The format to build the distribution in"
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10741
|
+
"The format to build the distribution in",
|
|
10742
|
+
(value, previous) => {
|
|
10743
|
+
if (previous === void 0) {
|
|
10744
|
+
return [value];
|
|
10745
|
+
} else if (Array.isArray(previous) && !previous.includes(value)) {
|
|
10746
|
+
previous.push(value);
|
|
10747
|
+
}
|
|
10748
|
+
return previous;
|
|
10749
|
+
},
|
|
10750
|
+
["esm"]
|
|
10751
|
+
).option(
|
|
10752
|
+
"-t --target <value>",
|
|
10753
|
+
"The target to build the distribution for",
|
|
10754
|
+
"ESNext"
|
|
10755
|
+
).option("-b --bundle", "Should the output be bundled", true).option("--no-bundle", "Should the output be bundled").option(
|
|
10755
10756
|
"-c --clean",
|
|
10756
|
-
"Should the output directory be cleaned before building"
|
|
10757
|
-
|
|
10758
|
-
|
|
10757
|
+
"Should the output directory be cleaned before building",
|
|
10758
|
+
true
|
|
10759
|
+
).option(
|
|
10759
10760
|
"--no-clean",
|
|
10760
10761
|
"Should the output directory be cleaned before building"
|
|
10761
|
-
).
|
|
10762
|
-
const bundleOption = new import_commander.Option(
|
|
10763
|
-
"-b --bundle",
|
|
10764
|
-
"Should the output be bundled"
|
|
10765
|
-
).default(true);
|
|
10766
|
-
const noBundleOption = new import_commander.Option(
|
|
10767
|
-
"--no-bundle",
|
|
10768
|
-
"Should the output be bundled"
|
|
10769
|
-
).default(false);
|
|
10770
|
-
const targetOption = new import_commander.Option(
|
|
10771
|
-
"-t --target <value>",
|
|
10772
|
-
"The target to build the distribution for"
|
|
10773
|
-
).choices([
|
|
10774
|
-
"ESNext",
|
|
10775
|
-
"ES2015",
|
|
10776
|
-
"ES2016",
|
|
10777
|
-
"ES2017",
|
|
10778
|
-
"ES2018",
|
|
10779
|
-
"ES2019",
|
|
10780
|
-
"ES2020",
|
|
10781
|
-
"ES2021",
|
|
10782
|
-
"ES2022",
|
|
10783
|
-
"ES2023"
|
|
10784
|
-
]).default("ESNext");
|
|
10785
|
-
const watchOption = new import_commander.Option(
|
|
10786
|
-
"-w --watch",
|
|
10787
|
-
"Should the build process watch for changes"
|
|
10788
|
-
).default(false);
|
|
10789
|
-
const modeOption = new import_commander.Option(
|
|
10762
|
+
).option("-w --watch", "Should the build process watch for changes").option(
|
|
10790
10763
|
"-m --mode",
|
|
10791
|
-
"What mode should the build process run in"
|
|
10792
|
-
|
|
10793
|
-
|
|
10794
|
-
"--banner <value>",
|
|
10795
|
-
"The banner to prepend to the output"
|
|
10796
|
-
);
|
|
10797
|
-
const footerOption = new import_commander.Option(
|
|
10798
|
-
"--footer <value>",
|
|
10799
|
-
"The footer to prepend to the output"
|
|
10800
|
-
);
|
|
10801
|
-
const splittingOption = new import_commander.Option(
|
|
10764
|
+
"What mode should the build process run in",
|
|
10765
|
+
"production"
|
|
10766
|
+
).option("--banner <value>", "The banner to prepend to the output").option("--footer <value>", "The footer to prepend to the output").option(
|
|
10802
10767
|
"--splitting",
|
|
10803
|
-
"Should the output be split into multiple files"
|
|
10804
|
-
|
|
10805
|
-
|
|
10806
|
-
"--treeshake",
|
|
10807
|
-
"Should tree shaking be enabled"
|
|
10808
|
-
).default(true);
|
|
10809
|
-
const generatePackageJsonOption = new import_commander.Option(
|
|
10768
|
+
"Should the output be split into multiple files",
|
|
10769
|
+
true
|
|
10770
|
+
).option("--treeshake", "Should tree shaking be enabled", true).option(
|
|
10810
10771
|
"--generate-package-json",
|
|
10811
|
-
"Should a package.json be generated for the output"
|
|
10812
|
-
|
|
10813
|
-
|
|
10772
|
+
"Should a package.json be generated for the output",
|
|
10773
|
+
true
|
|
10774
|
+
).option(
|
|
10814
10775
|
"--metafile",
|
|
10815
|
-
"Should a metafile be generated for the output"
|
|
10816
|
-
|
|
10817
|
-
|
|
10818
|
-
"--minify",
|
|
10819
|
-
"Should the output be minified"
|
|
10820
|
-
).default(true);
|
|
10821
|
-
const includeSrcOption = new import_commander.Option(
|
|
10776
|
+
"Should a metafile be generated for the output",
|
|
10777
|
+
true
|
|
10778
|
+
).option("--minify", "Should the output be minified", true).option(
|
|
10822
10779
|
"--include-src",
|
|
10823
|
-
"Should the source files be included in the output"
|
|
10824
|
-
|
|
10825
|
-
|
|
10826
|
-
"--shims",
|
|
10827
|
-
"Should shims be injected into the output"
|
|
10828
|
-
).default(true);
|
|
10829
|
-
const dtsOption = new import_commander.Option(
|
|
10780
|
+
"Should the source files be included in the output",
|
|
10781
|
+
false
|
|
10782
|
+
).option("--shims", "Should shims be injected into the output", true).option(
|
|
10830
10783
|
"--dts",
|
|
10831
|
-
"Should typescript type declarations be emitted for the output"
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
"Run a TypeScript build using ESBuild, API-Extractor, and TSC (for type generation)."
|
|
10835
|
-
).addOption(nameOption).addOption(projectRootOption).addOption(sourceRootOption).addOption(outputPathOption).addOption(platformOption).addOption(formatOption).addOption(targetOption).addOption(bundleOption).addOption(noBundleOption).addOption(cleanOption).addOption(noCleanOption).addOption(watchOption).addOption(modeOption).addOption(bannerOption).addOption(footerOption).addOption(splittingOption).addOption(treeShakingOption).addOption(generatePackageJsonOption).addOption(metafileOption).addOption(minifyOption).addOption(includeSrcOption).addOption(injectShimsOption).addOption(dtsOption).action(buildAction(config));
|
|
10784
|
+
"Should typescript type declarations be emitted for the output",
|
|
10785
|
+
true
|
|
10786
|
+
).action(buildAction(config));
|
|
10836
10787
|
program.command("clean").alias("clear").description(
|
|
10837
10788
|
"Clean the output directory of the project. This command will remove the 'dist' folder."
|
|
10838
|
-
).
|
|
10789
|
+
).option("-n --name <value>", "The name of the project to build").action(cleanAction(config));
|
|
10839
10790
|
return program;
|
|
10840
10791
|
} catch (e) {
|
|
10841
10792
|
(0, import_console7.writeFatal)(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/esbuild",
|
|
3
|
-
"version": "0.53.
|
|
3
|
+
"version": "0.53.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing `esbuild` utilities for building Storm Software libraries and applications",
|
|
6
6
|
"repository": {
|
|
@@ -186,14 +186,14 @@
|
|
|
186
186
|
"dependencies": {
|
|
187
187
|
"@nx/devkit": "^21.4.1",
|
|
188
188
|
"@nx/js": "^21.4.1",
|
|
189
|
-
"@storm-software/build-tools": "^0.158.
|
|
190
|
-
"@storm-software/config": "^1.134.
|
|
191
|
-
"@storm-software/config-tools": "^1.188.
|
|
192
|
-
"@storm-software/tsup": "^0.2.
|
|
189
|
+
"@storm-software/build-tools": "^0.158.12",
|
|
190
|
+
"@storm-software/config": "^1.134.12",
|
|
191
|
+
"@storm-software/config-tools": "^1.188.12",
|
|
192
|
+
"@storm-software/tsup": "^0.2.10",
|
|
193
193
|
"chokidar": "^4.0.3",
|
|
194
194
|
"commander": "^12.1.0",
|
|
195
195
|
"defu": "6.1.4",
|
|
196
|
-
"es-toolkit": "^1.
|
|
196
|
+
"es-toolkit": "^1.41.0",
|
|
197
197
|
"esbuild": "^0.25.0",
|
|
198
198
|
"globby": "^14.1.0"
|
|
199
199
|
},
|
|
@@ -204,5 +204,5 @@
|
|
|
204
204
|
},
|
|
205
205
|
"publishConfig": { "access": "public" },
|
|
206
206
|
"sideEffects": false,
|
|
207
|
-
"gitHead": "
|
|
207
|
+
"gitHead": "f8f8eb9bb43ef672370e0dfcba1cf80f7e009934"
|
|
208
208
|
}
|