@hewel/zgui-build 0.1.0 → 0.1.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/README.md CHANGED
@@ -5,15 +5,22 @@ Build, watch, develop, and preview native zgui applications from Bun (≥ 1.4.4)
5
5
  ## Build and watch
6
6
 
7
7
  ```ts
8
- import { buildApplication, resolveApplication, watchApplication } from "@hewel/zgui-build";
8
+ import {
9
+ buildApplication,
10
+ resolveApplication,
11
+ syncCssModuleTypes,
12
+ watchApplication,
13
+ } from "@hewel/zgui-build";
9
14
 
10
15
  const app = await resolveApplication("./my-app");
11
16
  const options = {
12
17
  ...app,
13
18
  extraCapabilities: { namedSockets: ["status"] },
14
19
  capabilitiesFile: "./generated/plugin-capabilities.json",
20
+ cssModuleInclude: ["../../packages/sdk/src", "../../plugins/*/src"],
15
21
  };
16
22
 
23
+ await syncCssModuleTypes({ project: "./my-app/tsconfig.json", include: options.cssModuleInclude });
17
24
  const { dist, manifest } = await buildApplication(app.app, options);
18
25
  console.log(dist, manifest.id, manifest.buildId);
19
26
 
@@ -67,6 +74,14 @@ Each source is validated independently. `shellSurfaces` and `controlChannel` are
67
74
 
68
75
  **Only the app's base `package.json` can declare `sessionLock: true`.** Either overlay source specifying it as `true` rejects the build even if the base already grants it. `false` or omission neither grants nor revokes the base declaration.
69
76
 
77
+ Build-time overlays may grant `shellSurfaces: true`. The runtime `--extensions-overlay`
78
+ is stricter: it cannot add either `shellSurfaces` or `sessionLock` authority.
79
+
80
+ `buildApplication(app, { bytecode: true })` resolves a compatible host through the
81
+ same prebuilt/Cargo lookup as `devApplication`. `packageApplication` compiles with
82
+ the same verified executable it ships. `resolveNativeHost` returns the absolute
83
+ `runRoot` for invoking the executable.
84
+
70
85
  ```sh
71
86
  zgui-js build ./my-app --watch --capabilities-file ./generated/plugin-capabilities.json
72
87
  ```
@@ -75,7 +90,16 @@ zgui-js build ./my-app --watch --capabilities-file ./generated/plugin-capabiliti
75
90
 
76
91
  Install or link the build package and SDK dependencies in the consumer repository. Declare `@hewel/zgui` and, if used, `@hewel/zgui-services` in the app. The app owns `src/main.tsx`, `tsconfig.json` (which can extend `@hewel/zgui/tsconfig.native.json`), `package.json`, and optional assets. Pass `appDirectory` or use `resolveApplication` to select it. No workspace-wide `node_modules` link is needed.
77
92
 
78
- `root` selects the SDK's default preview inputs and `bun.lock`/`Cargo.lock` provenance, not the app's working directory. The default is the SDK checkout for a linked build package or the shipped SDK resources for an installed tarball. Install a compatible host separately: an installed tarball contains no Cargo workspace or executable. Pass a matching checkout as `hostRoot` for dev/preview, or pass its prebuilt native host as `hostExecutable`. The checkout and binary must match the package's host API and `lightningcss-v1` style profile.
93
+ `root` selects the SDK's default preview inputs and `bun.lock`/`Cargo.lock` provenance, not the app's working directory. The default is the SDK checkout for a linked build package or the shipped SDK resources for an installed tarball.
94
+
95
+ On Linux `x86_64` (`glibc >= 2.39`), installing `@hewel/zgui-cli` automatically pulls the matching prebuilt `@hewel/zgui-host-linux-x64` binary via `optionalDependencies`, so `dev`, `preview`, and `package` resolve `zgui-host` with no Rust toolchain or explicit host flags. Host selection runs in deterministic precedence order:
96
+
97
+ 1. `--host-executable` / `ZGUI_JS_HOST_EXECUTABLE`
98
+ 2. Explicit `--host-root` (`hostRoot`)
99
+ 3. Verified installed platform package (`@hewel/zgui-host-<os>-<arch>`)
100
+ 4. Autodetected local Cargo checkout containing `crates/zgui-host`
101
+
102
+ For custom host builds or platforms without a prebuilt host package, pass a matching checkout as `hostRoot` (or `--host-root <dir>`) to compile via Cargo, or pass a prebuilt binary as `hostExecutable` (or `--host-executable <path>`). The checkout and binary must match the package's host API and `lightningcss-v1` style profile.
79
103
 
80
104
  For either CLI command, `--host-root <dir>` selects the checkout used to build the host and the working directory used to run it. `--host-executable <path>` skips Cargo and runs a prebuilt host; it can be combined with `--host-root` to set the host's working directory. Relative flag values resolve from the caller's current directory.
81
105
 
@@ -83,3 +107,20 @@ For either CLI command, `--host-root <dir>` selects the checkout used to build t
83
107
  zgui-js dev ./my-app --host-root ../zgui-js
84
108
  zgui-js preview ./my-app --watch --host-executable ../zgui-js/target/debug/zgui-host
85
109
  ```
110
+
111
+ ### Local two-repo edit loop (`link:`)
112
+
113
+ When actively developing `zgui-js` alongside an external consumer repo (such as a Wayland desktop shell):
114
+
115
+ 1. Install `zgui-js` dependencies in the checkout (`bun install --frozen-lockfile`).
116
+ 2. In the consumer repository, temporarily point `@hewel/zgui` and `@hewel/zgui-services` (plus `@hewel/zgui-build` if invoked programmatically, e.g. from a composer workspace package) at `link:../zgui-js/packages/<pkg>` across every workspace `package.json` that declares them, then run `bun install`. Leave `@hewel/zgui-cli` installed from npm or run `bun ../zgui-js/packages/cli/src/cli.ts ...` directly (its manifest uses `workspace:*` for internal packaging). Keep machine-local `link:` and lockfile edits uncommitted.
117
+ 3. Because a linked `@hewel/zgui-build` (or checkout CLI) sets `workspaceRoot` to the checkout, `buildApplication` rebuilds checkout `packages/ui/dist` and `packages/services/dist` on demand and `watchApplication` / `zgui-js dev` watches `packages/{ui,services}/src` for hot reloads.
118
+ 4. Select the local Rust host explicitly with `--host-root ../zgui-js` or `--host-executable` / `ZGUI_JS_HOST_EXECUTABLE` (`zgui-js doctor --json` reports the active executable and resolution source).
119
+ 5. **Single Solid runtime rule:** import reactive APIs through `@hewel/zgui` (which uses a single physical `solid-js` tree inside the checkout). If an app or third-party dependency bare-imports another installed copy of `solid-js`, the compiler rejects the duplicate graph and prints the conflicting paths; switch to packed `.tgz` tarballs in that case rather than weakening singleton validation.
120
+
121
+ ### Snapshot and pre-release verification (`.tgz` tarballs)
122
+
123
+ To verify exact npm-installed packaging without publishing to npmjs.org:
124
+
125
+ - **SDK-only snapshot:** run `bun pm pack --filename /tmp/zgui-local/zgui.tgz` inside `packages/ui` (and `packages/services` as needed) to run `prepack` builds cleanly and install those `.tgz` files into the consumer.
126
+ - **Full 6-package matrix:** run `cargo build -p zgui-host` then `bun run release:pack -- --out /tmp/zgui-local --host-binary ./target/debug/zgui-host`, and point consumer `dependencies`/`overrides` to the generated tarballs. Use distinct filenames or `bun install --force` when repacking the same SemVer version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hewel/zgui-build",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "Programmatic compiler, Lightning CSS Modules pipeline, tsrs typechecker, host resolver, and app packager for zgui-js",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/sdk/Cargo.lock CHANGED
@@ -1646,7 +1646,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1646
1646
 
1647
1647
  [[package]]
1648
1648
  name = "host-services"
1649
- version = "0.1.0"
1649
+ version = "0.1.3"
1650
1650
  dependencies = [
1651
1651
  "bytes",
1652
1652
  "flate2",
@@ -2060,7 +2060,7 @@ dependencies = [
2060
2060
 
2061
2061
  [[package]]
2062
2062
  name = "js-runtime"
2063
- version = "0.1.0"
2063
+ version = "0.1.3"
2064
2064
  dependencies = [
2065
2065
  "rquickjs",
2066
2066
  ]
@@ -4623,7 +4623,7 @@ dependencies = [
4623
4623
 
4624
4624
  [[package]]
4625
4625
  name = "ui-bridge"
4626
- version = "0.1.0"
4626
+ version = "0.1.3"
4627
4627
  dependencies = [
4628
4628
  "js-runtime",
4629
4629
  "roxmltree 0.21.2",
@@ -6119,7 +6119,7 @@ dependencies = [
6119
6119
 
6120
6120
  [[package]]
6121
6121
  name = "zgui-host"
6122
- version = "0.1.0"
6122
+ version = "0.1.3"
6123
6123
  dependencies = [
6124
6124
  "accesskit",
6125
6125
  "accesskit_consumer",
@@ -6278,6 +6278,7 @@ dependencies = [
6278
6278
  "wayland-scanner",
6279
6279
  "zbus",
6280
6280
  "zgui-geom",
6281
+ "zgui-layout",
6281
6282
  "zgui-platform",
6282
6283
  "zgui-profile",
6283
6284
  "zgui-vocab",
package/sdk/bun.lock CHANGED
@@ -8,6 +8,7 @@
8
8
  "@hewel/zgui": "workspace:*",
9
9
  "@hewel/zgui-build": "workspace:*",
10
10
  "@hewel/zgui-services": "workspace:*",
11
+ "eslint-plugin-solid": "0.20.1",
11
12
  "oxfmt": "0.79.0",
12
13
  "oxlint": "1.94.0",
13
14
  "solid-js": "2.0.1",
@@ -160,7 +161,7 @@
160
161
  },
161
162
  "packages/build": {
162
163
  "name": "@hewel/zgui-build",
163
- "version": "0.1.0",
164
+ "version": "0.1.3",
164
165
  "dependencies": {
165
166
  "@solidjs/compiler": "2.0.1",
166
167
  "lightningcss": "1.33.0",
@@ -175,7 +176,7 @@
175
176
  },
176
177
  "packages/cli": {
177
178
  "name": "@hewel/zgui-cli",
178
- "version": "0.1.0",
179
+ "version": "0.1.3",
179
180
  "bin": {
180
181
  "zgui-js": "./src/cli.ts",
181
182
  },
@@ -191,7 +192,7 @@
191
192
  },
192
193
  "packages/create-zgui-js": {
193
194
  "name": "create-zgui-js",
194
- "version": "0.1.0",
195
+ "version": "0.1.3",
195
196
  "bin": {
196
197
  "create-zgui-js": "./src/cli.ts",
197
198
  },
@@ -204,27 +205,36 @@
204
205
  },
205
206
  "packages/host-linux-arm64": {
206
207
  "name": "@hewel/zgui-host-linux-arm64",
207
- "version": "0.1.0",
208
+ "version": "0.1.3",
208
209
  },
209
210
  "packages/host-linux-x64": {
210
211
  "name": "@hewel/zgui-host-linux-x64",
211
- "version": "0.1.0",
212
+ "version": "0.1.3",
212
213
  },
213
214
  "packages/services": {
214
215
  "name": "@hewel/zgui-services",
215
- "version": "0.1.0",
216
+ "version": "0.1.3",
216
217
  "dependencies": {
217
218
  "solid-js": "2.0.1",
218
219
  },
219
220
  },
220
221
  "packages/ui": {
221
222
  "name": "@hewel/zgui",
222
- "version": "0.1.0",
223
+ "version": "0.1.3",
223
224
  "dependencies": {
224
225
  "@solidjs/signals": "2.0.1",
225
226
  "@solidjs/universal": "2.0.1",
226
227
  "solid-js": "2.0.1",
227
228
  },
229
+ "devDependencies": {
230
+ "oxlint": "1.94.0",
231
+ },
232
+ "peerDependencies": {
233
+ "eslint-plugin-solid": "^0.20.0",
234
+ },
235
+ "optionalPeers": [
236
+ "eslint-plugin-solid",
237
+ ],
228
238
  },
229
239
  },
230
240
  "packages": {
@@ -482,8 +492,26 @@
482
492
 
483
493
  "detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
484
494
 
495
+ "entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="],
496
+
497
+ "eslint-plugin-solid": ["eslint-plugin-solid@0.20.1", "", { "dependencies": { "eslint-visitor-keys": "^3.4.3", "estraverse": "^5.3.0", "is-html": "^2.0.0", "kebab-case": "^1.0.2", "known-css-properties": "^0.30.0", "parse5": "^7.3.0", "style-to-object": "^1.0.6", "validate-html-nesting": "^1.2.4" }, "peerDependencies": { "eslint": "^9.0.0 || ^10.0.0" }, "optionalPeers": ["eslint"] }, "sha512-HPBVDgkGCOqXpfMQUyMP273AXo/VUwm/hqvTWWovVSJKPBzrKhq7w04Yn0PtTgj9g+7ZdlcAAJ9dwgBGeJQ4Gg=="],
498
+
499
+ "eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="],
500
+
501
+ "estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="],
502
+
485
503
  "example-css-modules": ["example-css-modules@workspace:apps/examples/css-modules"],
486
504
 
505
+ "html-tags": ["html-tags@3.3.1", "", {}, "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ=="],
506
+
507
+ "inline-style-parser": ["inline-style-parser@0.2.7", "", {}, "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA=="],
508
+
509
+ "is-html": ["is-html@2.0.0", "", { "dependencies": { "html-tags": "^3.0.0" } }, "sha512-S+OpgB5i7wzIue/YSE5hg0e5ZYfG3hhpNh9KGl6ayJ38p7ED6wxQLd1TV91xHpcTvw90KMJ9EwN3F/iNflHBVg=="],
510
+
511
+ "kebab-case": ["kebab-case@1.0.2", "", {}, "sha512-7n6wXq4gNgBELfDCpzKc+mRrZFs7D+wgfF5WRFLNAr4DA/qtr9Js8uOAVAfHhuLMfAcQ0pRKqbpjx+TcJVdE1Q=="],
512
+
513
+ "known-css-properties": ["known-css-properties@0.30.0", "", {}, "sha512-VSWXYUnsPu9+WYKkfmJyLKtIvaRJi1kXUqVmBACORXZQxT5oZDsoZ2vQP+bQFDnWtpI/4eq3MLoRMjI2fnLzTQ=="],
514
+
487
515
  "lightningcss": ["lightningcss@1.33.0", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-android-arm64": "1.33.0", "lightningcss-darwin-arm64": "1.33.0", "lightningcss-darwin-x64": "1.33.0", "lightningcss-freebsd-x64": "1.33.0", "lightningcss-linux-arm-gnueabihf": "1.33.0", "lightningcss-linux-arm64-gnu": "1.33.0", "lightningcss-linux-arm64-musl": "1.33.0", "lightningcss-linux-x64-gnu": "1.33.0", "lightningcss-linux-x64-musl": "1.33.0", "lightningcss-win32-arm64-msvc": "1.33.0", "lightningcss-win32-x64-msvc": "1.33.0" } }, "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA=="],
488
516
 
489
517
  "lightningcss-android-arm64": ["lightningcss-android-arm64@1.33.0", "", { "os": "android", "cpu": "arm64" }, "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg=="],
@@ -512,6 +540,8 @@
512
540
 
513
541
  "oxlint": ["oxlint@1.94.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.94.0", "@oxlint/binding-android-arm64": "1.94.0", "@oxlint/binding-darwin-arm64": "1.94.0", "@oxlint/binding-darwin-x64": "1.94.0", "@oxlint/binding-freebsd-x64": "1.94.0", "@oxlint/binding-linux-arm-gnueabihf": "1.94.0", "@oxlint/binding-linux-arm-musleabihf": "1.94.0", "@oxlint/binding-linux-arm64-gnu": "1.94.0", "@oxlint/binding-linux-arm64-musl": "1.94.0", "@oxlint/binding-linux-ppc64-gnu": "1.94.0", "@oxlint/binding-linux-riscv64-gnu": "1.94.0", "@oxlint/binding-linux-riscv64-musl": "1.94.0", "@oxlint/binding-linux-s390x-gnu": "1.94.0", "@oxlint/binding-linux-x64-gnu": "1.94.0", "@oxlint/binding-linux-x64-musl": "1.94.0", "@oxlint/binding-openharmony-arm64": "1.94.0", "@oxlint/binding-win32-arm64-msvc": "1.94.0", "@oxlint/binding-win32-ia32-msvc": "1.94.0", "@oxlint/binding-win32-x64-msvc": "1.94.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2007", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-Fnt+3wSKRhtLmvgRfxgRX0excSPCoyiXRol4eWKZLtXxWMQtwQ3KjKQUYXOw5loyinfnZfGzh4RCYf7opfL0vw=="],
514
542
 
543
+ "parse5": ["parse5@7.3.0", "", { "dependencies": { "entities": "^6.0.0" } }, "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw=="],
544
+
515
545
  "rolldown": ["rolldown@1.3.2", "", { "dependencies": { "@oxc-project/types": "=0.158.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.3.2", "@rolldown/binding-android-arm64": "1.3.2", "@rolldown/binding-darwin-arm64": "1.3.2", "@rolldown/binding-darwin-x64": "1.3.2", "@rolldown/binding-freebsd-x64": "1.3.2", "@rolldown/binding-linux-arm-gnueabihf": "1.3.2", "@rolldown/binding-linux-arm64-gnu": "1.3.2", "@rolldown/binding-linux-arm64-musl": "1.3.2", "@rolldown/binding-linux-ppc64-gnu": "1.3.2", "@rolldown/binding-linux-s390x-gnu": "1.3.2", "@rolldown/binding-linux-x64-gnu": "1.3.2", "@rolldown/binding-linux-x64-musl": "1.3.2", "@rolldown/binding-openharmony-arm64": "1.3.2", "@rolldown/binding-wasm32-wasi": "1.3.2", "@rolldown/binding-win32-arm64-msvc": "1.3.2", "@rolldown/binding-win32-x64-msvc": "1.3.2" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA=="],
516
546
 
517
547
  "seroval": ["seroval@1.8.1", "", {}, "sha512-7z9x1flFYfZBz+LfDkXNfm5UIhZJ/97ASaV8Q1wctoVkeqVfv+tLPsWebeMXBNw6XprvwxDE5wC5Ylqmr+iSrA=="],
@@ -520,6 +550,8 @@
520
550
 
521
551
  "solid-js": ["solid-js@2.0.1", "", { "dependencies": { "@solidjs/signals": "^2.0.1", "seroval": "^1.8.0", "seroval-plugins": "^1.8.0" } }, "sha512-5bBwRCblIZ672y2H2aB5KIOfeP/N+acx1YoCjNCWYFc4ZI/Y7y7n/6N1kei8AgWmcJJQ1m5SV90rs3V8CPAnYQ=="],
522
552
 
553
+ "style-to-object": ["style-to-object@1.0.14", "", { "dependencies": { "inline-style-parser": "0.2.7" } }, "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw=="],
554
+
523
555
  "tinypool": ["tinypool@2.2.0", "", {}, "sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ=="],
524
556
 
525
557
  "tslib": ["tslib@2.9.1", "", {}, "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA=="],
@@ -530,6 +562,8 @@
530
562
 
531
563
  "undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="],
532
564
 
565
+ "validate-html-nesting": ["validate-html-nesting@1.2.4", "", {}, "sha512-doQi7e8EJ2OWneSG1aZpJluS6A49aZM0+EICXWKm1i6WvqTLmq0tpUcImc4KTWG50mORO0C4YDBtOCSYvElftw=="],
566
+
533
567
  "@rolldown/binding-wasm32-wasi/@emnapi/core": ["@emnapi/core@2.0.0-beta.2", "", { "dependencies": { "@emnapi/wasi-threads": "2.2.0", "tslib": "^2.4.0" } }, "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A=="],
534
568
 
535
569
  "@rolldown/binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@2.0.0-beta.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw=="],
package/sdk/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zgui-js",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "license": "Apache-2.0",
5
5
  "private": true,
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "bun": ">=1.4.4"
21
21
  },
22
22
  "scripts": {
23
- "prepare": "bun tools/build-packages.ts --quiet",
23
+ "prepare": "git config core.hooksPath .githooks 2>/dev/null || true; bun tools/build-packages.ts --quiet",
24
24
  "build:packages": "bun tools/build-packages.ts",
25
25
  "release:check": "bun tools/release.ts check",
26
26
  "release:version": "bun tools/release.ts version",
@@ -28,7 +28,7 @@
28
28
  "release:publish": "bun tools/release.ts publish",
29
29
  "fmt": "bun --bun run oxfmt",
30
30
  "fmt:check": "bun --bun run oxfmt --check",
31
- "lint": "bun --bun run oxlint --deny-warnings",
31
+ "lint": "bun tools/build-packages.ts --if-stale --quiet && bun --bun run oxlint --deny-warnings",
32
32
  "typecheck": "bun packages/build/src/typecheck.ts",
33
33
  "typecheck:smoke": "bun --bun run tsrs --project packages/build/tsconfig.smoke.json",
34
34
  "test:build": "bun test --parallel --timeout=30000 tests/build/*.test.mjs",
@@ -51,6 +51,7 @@
51
51
  "@hewel/zgui": "workspace:*",
52
52
  "@hewel/zgui-build": "workspace:*",
53
53
  "@hewel/zgui-services": "workspace:*",
54
+ "eslint-plugin-solid": "0.20.1",
54
55
  "oxfmt": "0.79.0",
55
56
  "oxlint": "1.94.0",
56
57
  "solid-js": "2.0.1",