@sendevia/pi-ask-author 1.0.1 → 1.0.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sendevia/pi-ask-author",
3
- "version": "1.0.1",
4
- "description": "面向文字创作者的创作决策询问 Pi 扩展:交互式双栏 TUI 问卷、Markdown 草稿预览与题目/选项两级批注",
3
+ "version": "1.0.2",
4
+ "description": "面向文字创作者的决策询问 Pi 扩展",
5
5
  "keywords": [
6
6
  "pi-package",
7
7
  "pi-extension",
@@ -17,21 +17,20 @@
17
17
  "license": "MIT",
18
18
  "author": "sendevia",
19
19
  "type": "module",
20
- "main": "./src/index.ts",
21
- "types": "./src/index.ts",
20
+ "main": "./dist/index.js",
21
+ "types": "./dist/index.d.ts",
22
22
  "files": [
23
- "src",
24
- "package.json",
25
- "README.md",
26
- "LICENSE",
27
- "tsconfig.json"
23
+ "dist"
28
24
  ],
29
25
  "scripts": {
26
+ "build": "tsc --emitDeclarationOnly --declaration --outDir dist && esbuild src/index.ts --bundle --format=esm --platform=node --target=ESNext --external:@earendil-works/* --external:typebox --minify --tree-shaking=true --legal-comments=none --drop:debugger --drop:console --outfile=dist/index.js",
27
+ "prepack": "pnpm build",
30
28
  "check": "tsc --noEmit -p tsconfig.json"
31
29
  },
32
30
  "devDependencies": {
33
31
  "@earendil-works/pi-coding-agent": "^0.85.1",
34
32
  "@earendil-works/pi-tui": "^0.85.1",
33
+ "esbuild": "^0.28.2",
35
34
  "typebox": "^1.3.31",
36
35
  "typescript": "^7.0.2"
37
36
  },
@@ -42,7 +41,7 @@
42
41
  },
43
42
  "pi": {
44
43
  "extensions": [
45
- "./src/index.ts"
44
+ "./dist/index.js"
46
45
  ]
47
46
  }
48
47
  }