|
1 | 1 | { |
2 | 2 | "name": "opencode-pty", |
3 | | - "module": "index.ts", |
| 3 | + "main": "dist/index.js", |
| 4 | + "types": "dist/index.d.ts", |
| 5 | + "module": "dist/index.js", |
4 | 6 | "version": "0.3.2", |
5 | 7 | "description": "OpenCode plugin for interactive PTY management - run background processes, send input, read output with regex filtering", |
6 | 8 | "author": "shekohex", |
|
26 | 28 | }, |
27 | 29 | "homepage": "https://github.com/shekohex/opencode-pty#readme", |
28 | 30 | "files": [ |
29 | | - "index.ts", |
30 | | - "src", |
31 | 31 | "dist" |
32 | 32 | ], |
33 | 33 | "license": "MIT", |
34 | 34 | "type": "module", |
35 | 35 | "exports": { |
36 | | - "./server": "./index.ts", |
37 | | - "./*": "./src/*.ts", |
38 | | - "./*/*": "./src/*/*.ts", |
39 | | - "./*/*/*": "./src/*/*/*.ts", |
40 | | - "./*/*/*/*": "./src/*/*/*/*.ts", |
41 | | - "./*/*/*/*/*": "./src/*/*/*/*/*.ts" |
| 36 | + "./server": { |
| 37 | + "types": "./dist/index.d.ts", |
| 38 | + "default": "./dist/index.js" |
| 39 | + }, |
| 40 | + ".": { |
| 41 | + "types": "./dist/index.d.ts", |
| 42 | + "default": "./dist/index.js" |
| 43 | + }, |
| 44 | + "./*": { |
| 45 | + "types": "./dist/src/*.d.ts", |
| 46 | + "default": "./dist/src/*.js" |
| 47 | + }, |
| 48 | + "./*/*": { |
| 49 | + "types": "./dist/src/*/*.d.ts", |
| 50 | + "default": "./dist/src/*/*.js" |
| 51 | + }, |
| 52 | + "./*/*/*": { |
| 53 | + "types": "./dist/src/*/*/*.d.ts", |
| 54 | + "default": "./dist/src/*/*/*.js" |
| 55 | + }, |
| 56 | + "./*/*/*/*": { |
| 57 | + "types": "./dist/src/*/*/*/*.d.ts", |
| 58 | + "default": "./dist/src/*/*/*/*.js" |
| 59 | + } |
42 | 60 | }, |
43 | 61 | "scripts": { |
44 | 62 | "typecheck": "tsc --noEmit", |
45 | 63 | "unittest": "bun test", |
46 | 64 | "test:e2e": "PW_DISABLE_TS_ESM=1 NODE_ENV=test bun --bun playwright test", |
47 | 65 | "test:all": "bun unittest && bun test:e2e", |
48 | | - "build:dev": "bun clean && vite build --mode development", |
49 | | - "build:prod": "bun clean && vite build --mode production", |
| 66 | + "build:plugin": "tsc -p tsconfig.build.json && bun x copyfiles -u 0 \"src/**/*.txt\" dist", |
| 67 | + "build:dev": "bun clean && bun build:plugin && vite build --mode development", |
| 68 | + "build:prod": "bun clean && bun build:plugin && vite build --mode production", |
50 | 69 | "prepack": "bun build:prod", |
51 | 70 | "clean": "rm -rf dist playwright-report test-results", |
52 | 71 | "lint": "biome lint .", |
|
0 commit comments