@sigx/lynx 0.4.0 → 0.4.2

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/index.js CHANGED
@@ -1,6 +1,20 @@
1
- import "@sigx/lynx-runtime";
2
- import { setCurrentInstance as e } from "@sigx/runtime-core/internals";
3
- export * from "@sigx/lynx-runtime";
4
- export * from "@sigx/reactivity";
5
- export * from "@sigx/runtime-core";
6
- export { e as __setCurrentInstanceForHMR };
1
+ /// <reference types="@sigx/lynx-runtime" />
2
+ // Side-effect import: registers lynxMount as the default mount, installs
3
+ // the platform model processor, augments PlatformTypes with ShadowElement,
4
+ // and adds the global JSX intrinsic element types for <view>, <text>, etc.
5
+ import '@sigx/lynx-runtime';
6
+ // Re-export the public surface so users only need a single import:
7
+ //
8
+ // import { component, signal, defineApp, type Define } from '@sigx/lynx';
9
+ //
10
+ // Mirrors the layering of `sigx` (web meta) and `@sigx/terminal` (terminal meta).
11
+ export * from '@sigx/reactivity';
12
+ export * from '@sigx/runtime-core';
13
+ export * from '@sigx/lynx-runtime';
14
+ // Internal-use re-export, needed by the HMR loader. The loader injects an
15
+ // import of `__setCurrentInstanceForHMR` alongside `__registerComponentPlugin`
16
+ // so the HMR runtime can push the current ctx onto the renderer's instance
17
+ // stack before re-running a screen's setup function. Without this, hooks
18
+ // like `useNav()` that resolve through provide/inject throw during the HMR
19
+ // re-execution because the active instance is `null`.
20
+ export { setCurrentInstance as __setCurrentInstanceForHMR } from '@sigx/runtime-core/internals';
@@ -1,2 +1 @@
1
- import { Fragment as e, jsxDEV as t } from "@sigx/runtime-core";
2
- export { e as Fragment, t as jsxDEV };
1
+ export { jsxDEV, Fragment } from '@sigx/runtime-core';
@@ -1,2 +1 @@
1
- import { Fragment as e, jsx as t, jsxs as n } from "@sigx/runtime-core";
2
- export { e as Fragment, t as jsx, n as jsxs };
1
+ export { jsx, jsxs, Fragment } from '@sigx/runtime-core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sigx/lynx",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "sigx-lynx framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -38,15 +38,13 @@
38
38
  "LICENSE"
39
39
  ],
40
40
  "dependencies": {
41
- "@sigx/reactivity": "^0.4.3",
42
- "@sigx/runtime-core": "^0.4.3",
43
- "@sigx/lynx-runtime": "^0.4.0"
41
+ "@sigx/reactivity": "^0.4.8",
42
+ "@sigx/runtime-core": "^0.4.8",
43
+ "@sigx/lynx-runtime": "^0.4.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@sigx/vite": "^0.4.3",
47
- "@typescript/native-preview": "7.0.0-dev.20260511.1",
48
- "typescript": "^6.0.3",
49
- "vite": "^8.0.12"
46
+ "@typescript/native-preview": "7.0.0-dev.20260521.1",
47
+ "typescript": "^6.0.3"
50
48
  },
51
49
  "publishConfig": {
52
50
  "access": "public"
@@ -64,8 +62,8 @@
64
62
  "author": "Andreas Ekdahl",
65
63
  "license": "MIT",
66
64
  "scripts": {
67
- "build": "vite build && tsgo --emitDeclarationOnly && node ../../scripts/copy-assets.mjs src/client.d.ts dist/client.d.ts",
68
- "dev": "vite build --watch",
69
- "clean": "rm -rf dist .turbo *.tsbuildinfo"
65
+ "build": "node ../../scripts/clean.mjs dist && tsgo && node ../../scripts/copy-assets.mjs src/client.d.ts dist/client.d.ts",
66
+ "dev": "tsgo --watch",
67
+ "clean": "node ../../scripts/clean.mjs dist .turbo"
70
68
  }
71
69
  }