@lingjingai/script-editor 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/INTEGRATION.md +1 -6
  2. package/package.json +2 -6
package/INTEGRATION.md CHANGED
@@ -20,12 +20,7 @@
20
20
  ```ts
21
21
  import "@lingjingai/script-editor/style.css";
22
22
  ```
23
- - **构建条件**:
24
- - 默认走 `dist`(`tsup` 产物,编译好的 JS + d.ts),消费方无需编译包内 TS。
25
- - 想直接吃 `src` + HMR(monorepo 开发)→ 打包器加 `development` 解析条件。Vite:
26
- ```ts
27
- resolve: { conditions: ["development"] }
28
- ```
23
+ - **构建产物**:消费方一律走 `dist`(`tsup` 编译好的 JS + d.ts + style.css + paper-fibers.png),无需编译包内 TS。`exports` 不带 `development` 条件(早期版本带过,会让 Vite **dev 模式**去找未发布的 `src/` 而报 `Failed to resolve import .../style.css` —— `0.1.1+` 已修)。
29
24
 
30
25
  ---
31
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingjingai/script-editor",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Pure, business-decoupled screenplay (剧本) editor: value:ScriptProject + onEdit(patch); dual-format (standard/asian), virtualized single-stream, click-to-edit; bundled CSS, business injected via adapters.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -14,13 +14,9 @@
14
14
  "exports": {
15
15
  ".": {
16
16
  "types": "./dist/index.d.ts",
17
- "development": "./src/index.ts",
18
17
  "default": "./dist/index.js"
19
18
  },
20
- "./style.css": {
21
- "development": "./src/styles.css",
22
- "default": "./dist/style.css"
23
- }
19
+ "./style.css": "./dist/style.css"
24
20
  },
25
21
  "main": "./dist/index.js",
26
22
  "types": "./dist/index.d.ts",