@twobirds/microcomponents 0.13.2 → 0.13.3

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/cli/dev.d.ts CHANGED
@@ -79,7 +79,8 @@ export declare function createDevServer(projectRoot: string, options: {
79
79
  }): Server;
80
80
  /**
81
81
  * CLI entry for `mc dev`: mirror companions, start the server, and run `tsc -w`
82
- * for the lifetime of the process.
82
+ * for the lifetime of the process. The watch runs with `--preserveWatchOutput`, so
83
+ * the screen is not cleared on each rebuild and the printed server URL stays visible.
83
84
  *
84
85
  * @param projectRoot Project root (defaults to the current directory).
85
86
  * @param minJs Path of `microcomponents.min.js` (defaults to this package's `dist/`).
@@ -1 +1 @@
1
- {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cli/dev.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAAsC,KAAK,MAAM,EAAuB,MAAM,WAAW,CAAC;AASjG;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAO5C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAO/F;AAkCD;;;;;;;;;;;;GAYG;AACH,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAW/F;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC9B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACtC,MAAM,CAKR;AAED;;;;;;;;;;GAUG;AAEH,wBAAsB,MAAM,CAC3B,WAAW,GAAE,MAAsB,EACnC,KAAK,GAAE,MAAuE,EAC9E,IAAI,GAAE,MAAa,EACnB,IAAI,GAAE,MAAoB,GACxB,OAAO,CAAC,MAAM,CAAC,CAiCjB"}
1
+ {"version":3,"file":"dev.d.ts","sourceRoot":"","sources":["../../src/cli/dev.ts"],"names":[],"mappings":"AACA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAAsC,KAAK,MAAM,EAAuB,MAAM,WAAW,CAAC;AASjG;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAO5C;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAO/F;AAkCD;;;;;;;;;;;;GAYG;AACH,wBAAsB,UAAU,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAAC,CAW/F;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC9B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACtC,MAAM,CAKR;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,MAAM,CAC3B,WAAW,GAAE,MAAsB,EACnC,KAAK,GAAE,MAAuE,EAC9E,IAAI,GAAE,MAAa,EACnB,IAAI,GAAE,MAAoB,GACxB,OAAO,CAAC,MAAM,CAAC,CAoCjB"}
package/dist/cli/index.js CHANGED
@@ -267,7 +267,7 @@ function packageJson(namespace) {
267
267
  typecheck: "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.test.json",
268
268
  test: "vitest run"
269
269
  },
270
- dependencies: { "@twobirds/microcomponents": "^0.13.2" },
270
+ dependencies: { "@twobirds/microcomponents": "^0.13.3" },
271
271
  devDependencies: {
272
272
  typescript: "^6.0.3",
273
273
  vitest: "^4.1.10",
@@ -1462,7 +1462,8 @@ function createDevServer(projectRoot, options) {
1462
1462
  }
1463
1463
  /**
1464
1464
  * CLI entry for `mc dev`: mirror companions, start the server, and run `tsc -w`
1465
- * for the lifetime of the process.
1465
+ * for the lifetime of the process. The watch runs with `--preserveWatchOutput`, so
1466
+ * the screen is not cleared on each rebuild and the printed server URL stays visible.
1466
1467
  *
1467
1468
  * @param projectRoot Project root (defaults to the current directory).
1468
1469
  * @param minJs Path of `microcomponents.min.js` (defaults to this package's `dist/`).
@@ -1471,7 +1472,6 @@ function createDevServer(projectRoot, options) {
1471
1472
  * not reachable off the machine. Pass an interface address to serve the LAN.
1472
1473
  * @returns The process exit code (the server keeps running until killed).
1473
1474
  */
1474
- /* v8 ignore start — the long-running server + tsc watch is exercised by hand, not in the suite */
1475
1475
  async function runDev(projectRoot = process.cwd(), minJs = path.join(import.meta.dirname, "..", "microcomponents.min.js"), port = 5173, host = "127.0.0.1") {
1476
1476
  const sourceRoot = path.join(projectRoot, "src");
1477
1477
  const buildRoot = path.join(projectRoot, "build");
@@ -1479,6 +1479,7 @@ async function runDev(projectRoot = process.cwd(), minJs = path.join(import.meta
1479
1479
  const tsc = spawn("npx", [
1480
1480
  "tsc",
1481
1481
  "-w",
1482
+ "--preserveWatchOutput",
1482
1483
  "-p",
1483
1484
  "tsconfig.json"
1484
1485
  ], {
@@ -1506,7 +1507,6 @@ async function runDev(projectRoot = process.cwd(), minJs = path.join(import.meta
1506
1507
  });
1507
1508
  });
1508
1509
  }
1509
- /* v8 ignore end */
1510
1510
  //#endregion
1511
1511
  //#region src/cli/preview.ts
1512
1512
  /**
@@ -57,7 +57,9 @@ on demand through `autoload()` — nothing is bundled, and a new component is pi
57
57
  without restarting. The server rewrites the `@twobirds/microcomponents` specifier in the
58
58
  JS it serves to the `/microcomponents.min.js` it answers, so the page carries no import
59
59
  map, and it mirrors the files `tsc` does not compile — companion assets and plain `.js`
60
- components — into `build/` next to the compiled component.
60
+ components — into `build/` next to the compiled component. The watch runs with
61
+ `--preserveWatchOutput`, so `tsc` does not clear the screen on each rebuild and the
62
+ server URL the process prints stays visible.
61
63
 
62
64
  ```sh
63
65
  mc dev # dev server on port 5173, bound to 127.0.0.1
@@ -110,7 +112,7 @@ mc check
110
112
  Reports the version of the installed library, not the version of the project it runs in.
111
113
 
112
114
  ```sh
113
- mc --version # 0.13.2
115
+ mc --version # 0.13.3
114
116
  ```
115
117
 
116
118
  ## mc --help
@@ -1 +1 @@
1
- {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/docs/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0HE"}
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/docs/cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4HE"}
package/dist/mcp/api.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "libraryVersion": "0.13.2",
2
+ "libraryVersion": "0.13.3",
3
3
  "exportedCount": 59,
4
4
  "entries": {
5
5
  "MC": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twobirds/microcomponents",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "Micro Components",
5
5
  "keywords": [
6
6
  "PWA",