@clary-so/measure 0.4.3 → 0.4.4
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/dist/bin-bundled.js +59453 -0
- package/esbuild-bin.mjs +26 -0
- package/package.json +3 -3
package/esbuild-bin.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as esbuild from "esbuild";
|
|
2
|
+
|
|
3
|
+
await esbuild.build({
|
|
4
|
+
absWorkingDir: new URL(".", import.meta.url).pathname,
|
|
5
|
+
entryPoints: ["dist/server/bin.js"],
|
|
6
|
+
bundle: true,
|
|
7
|
+
platform: "node",
|
|
8
|
+
target: "node18",
|
|
9
|
+
outfile: "dist/bin-bundled.js",
|
|
10
|
+
banner: { js: "#!/usr/bin/env node" },
|
|
11
|
+
// Bundle react, ink, and react-reconciler so they share one instance
|
|
12
|
+
// Keep other node_modules as external (express, socket.io, etc.)
|
|
13
|
+
external: [
|
|
14
|
+
"express",
|
|
15
|
+
"cors",
|
|
16
|
+
"socket.io",
|
|
17
|
+
"commander",
|
|
18
|
+
"@clary-so/*",
|
|
19
|
+
"yoga-wasm-web",
|
|
20
|
+
],
|
|
21
|
+
define: {
|
|
22
|
+
"process.env.NODE_ENV": '"production"',
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
console.log("Bundled bin-bundled.js");
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clary-so/measure",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Almouro",
|
|
6
6
|
"email": "alexandrem@bam.tech"
|
|
7
7
|
},
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"bin": {
|
|
10
|
-
"perf-profiler-measure": "dist/
|
|
10
|
+
"perf-profiler-measure": "dist/bin-bundled.js"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@clary-so/e2e": "^0.11.3",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"supertest": "^6.3.4"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
|
-
"build": "yarn parcel build src/webapp/index.html",
|
|
41
|
+
"build": "yarn parcel build src/webapp/index.html && node esbuild-bin.mjs",
|
|
42
42
|
"start": "yarn parcel src/webapp/index.html"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|