@bigbinary/neeto-commons-frontend 4.13.77 → 4.13.78
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/configs/esbuild/utils.js +12 -3
- package/package.json +1 -1
package/configs/esbuild/utils.js
CHANGED
|
@@ -2,6 +2,7 @@ const esbuild = require("esbuild");
|
|
|
2
2
|
const path = require("path");
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const { execSync, spawn } = require("child_process");
|
|
5
|
+
const { pick } = require("ramda");
|
|
5
6
|
|
|
6
7
|
// colors for console output
|
|
7
8
|
const consoleColors = {
|
|
@@ -64,11 +65,19 @@ const build = async config => {
|
|
|
64
65
|
`${consoleColors.info}[esbuild]${consoleColors.reset} Building...`
|
|
65
66
|
);
|
|
66
67
|
|
|
67
|
-
const
|
|
68
|
+
const entrypoint = process.argv.includes("--entrypoint")
|
|
69
|
+
? process.argv[process.argv.indexOf("--entrypoint") + 1]
|
|
70
|
+
: null;
|
|
71
|
+
|
|
72
|
+
const buildConfig = entrypoint
|
|
73
|
+
? { ...config, entryPoints: pick([entrypoint], config.entryPoints) }
|
|
74
|
+
: config;
|
|
75
|
+
|
|
76
|
+
const result = await esbuild.build(buildConfig);
|
|
68
77
|
|
|
69
78
|
if (result.metafile) {
|
|
70
|
-
const metaFilePath = writeMetafile(result.metafile,
|
|
71
|
-
await generateBundleReport(metaFilePath,
|
|
79
|
+
const metaFilePath = writeMetafile(result.metafile, buildConfig.outdir);
|
|
80
|
+
await generateBundleReport(metaFilePath, buildConfig.outdir);
|
|
72
81
|
}
|
|
73
82
|
|
|
74
83
|
console.info(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.78",
|
|
4
4
|
"description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|