@ereo/cli 0.1.32 → 0.1.33
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CA2C5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAcH;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+CAA+C;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED;;GAEG;AACH,wBAAsB,GAAG,CAAC,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAuQjE"}
|
package/dist/index.js
CHANGED
|
@@ -1435,7 +1435,6 @@ var exports_build = {};
|
|
|
1435
1435
|
__export(exports_build, {
|
|
1436
1436
|
build: () => build
|
|
1437
1437
|
});
|
|
1438
|
-
import { build as bundlerBuild, printBuildReport } from "@ereo/bundler";
|
|
1439
1438
|
async function build(options = {}) {
|
|
1440
1439
|
const root = process.cwd();
|
|
1441
1440
|
console.log(`
|
|
@@ -1454,6 +1453,7 @@ async function build(options = {}) {
|
|
|
1454
1453
|
console.log(` Target: ${buildOptions.target}`);
|
|
1455
1454
|
console.log(` Output: ${buildOptions.outDir}`);
|
|
1456
1455
|
console.log("");
|
|
1456
|
+
const { build: bundlerBuild, printBuildReport } = await import("@ereo/bundler");
|
|
1457
1457
|
const result = await bundlerBuild(buildOptions);
|
|
1458
1458
|
if (result.success) {
|
|
1459
1459
|
printBuildReport(result);
|
|
@@ -1485,13 +1485,6 @@ import {
|
|
|
1485
1485
|
} from "@ereo/core";
|
|
1486
1486
|
import { initFileRouter } from "@ereo/router";
|
|
1487
1487
|
import { createServer } from "@ereo/server";
|
|
1488
|
-
import {
|
|
1489
|
-
createHMRServer,
|
|
1490
|
-
createHMRWatcher,
|
|
1491
|
-
createHMRWebSocket,
|
|
1492
|
-
HMR_CLIENT_CODE,
|
|
1493
|
-
ERROR_OVERLAY_SCRIPT
|
|
1494
|
-
} from "@ereo/bundler";
|
|
1495
1488
|
async function dev(options = {}) {
|
|
1496
1489
|
const root = process.cwd();
|
|
1497
1490
|
console.log(`
|
|
@@ -1528,6 +1521,13 @@ async function dev(options = {}) {
|
|
|
1528
1521
|
watch: true
|
|
1529
1522
|
});
|
|
1530
1523
|
await router.loadAllModules();
|
|
1524
|
+
const {
|
|
1525
|
+
createHMRServer,
|
|
1526
|
+
createHMRWatcher,
|
|
1527
|
+
createHMRWebSocket,
|
|
1528
|
+
HMR_CLIENT_CODE,
|
|
1529
|
+
ERROR_OVERLAY_SCRIPT
|
|
1530
|
+
} = await import("@ereo/bundler");
|
|
1531
1531
|
const hmr = createHMRServer();
|
|
1532
1532
|
const hmrWatcher = createHMRWatcher(hmr);
|
|
1533
1533
|
hmrWatcher.watch(join2(root, "app"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ereo/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.33",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Ereo Team",
|
|
6
6
|
"homepage": "https://ereo.dev",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"typecheck": "tsc --noEmit"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@ereo/core": "^0.1.
|
|
39
|
-
"@ereo/router": "^0.1.
|
|
40
|
-
"@ereo/server": "^0.1.
|
|
41
|
-
"@ereo/
|
|
42
|
-
"@ereo/trace": "^0.1.32"
|
|
38
|
+
"@ereo/core": "^0.1.33",
|
|
39
|
+
"@ereo/router": "^0.1.33",
|
|
40
|
+
"@ereo/server": "^0.1.33",
|
|
41
|
+
"@ereo/trace": "^0.1.33"
|
|
43
42
|
},
|
|
44
43
|
"devDependencies": {
|
|
44
|
+
"@ereo/bundler": "^0.1.33",
|
|
45
45
|
"@types/bun": "^1.1.0",
|
|
46
46
|
"typescript": "^5.4.0"
|
|
47
47
|
}
|