-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
167 lines (167 loc) · 5.5 KB
/
package.json
File metadata and controls
167 lines (167 loc) · 5.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"name": "tywrap",
"version": "0.2.1",
"description": "Generate type-safe TypeScript wrappers for any Python library — Node.js, Deno, Bun, and browsers via Pyodide.",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./node": {
"import": "./dist/runtime/node.js",
"types": "./dist/runtime/node.d.ts"
},
"./pyodide": {
"import": "./dist/runtime/pyodide.js",
"types": "./dist/runtime/pyodide.d.ts"
},
"./http": {
"import": "./dist/runtime/http.js",
"types": "./dist/runtime/http.d.ts"
},
"./runtime": {
"import": "./dist/runtime/index.js",
"types": "./dist/runtime/index.d.ts"
}
},
"files": [
"dist",
"runtime",
"src",
"README.md"
],
"scripts": {
"build": "tsc && npm run build:tools",
"build:tools": "tsc -p tsconfig.tools.json",
"dev": "tsc --watch",
"typecheck": "tsc --noEmit",
"test": "vitest --run",
"test:watch": "vitest",
"test:bun": "LC_ALL=C LANG=C bun run vitest --run test/runtime_bun.test.ts",
"test:coverage": "vitest --run --coverage",
"test:types": "tsd",
"test:python:suite:core": "npm run build:tools && node dist/tools/python_suite.js core",
"test:python:suite:data": "npm run build:tools && node dist/tools/python_suite.js data",
"test:python:suite:ml": "npm run build:tools && node dist/tools/python_suite.js ml",
"test:python:suite:all": "npm run build:tools && node dist/tools/python_suite.js all",
"lint": "eslint src test --ext .ts,.tsx",
"lint:fix": "eslint src test --ext .ts,.tsx --fix",
"format": "prettier --write src test",
"format:check": "prettier --check src test",
"prepare": "npm run build",
"check:node": "node --check dist/index.js",
"check:deno": "deno check src/index.ts",
"check:bun": "bun run --dry-run src/index.ts",
"check:all": "npm run format:check && npm run lint && npm run build && npm run test:types && npm run test",
"cli:build": "tsc && node dist/cli.js generate --config examples/tywrap.config.json",
"example:living-app:generate": "cd examples/living-app && node ../../dist/cli.js generate --config tywrap.config.ts",
"example:living-app:build": "tsc -p examples/living-app/tsconfig.json",
"example:living-app:run": "node examples/living-app/dist/src/index.js",
"example:living-app:run:arrow": "node examples/living-app/dist/src/index.js --arrow",
"example:living-app:run:json": "node examples/living-app/dist/src/index.js --json",
"example:living-app:smoke": "npm run build && npm run example:living-app:generate && npm run example:living-app:build && npm run example:living-app:run",
"example:living-app:smoke:arrow": "npm run example:living-app:smoke",
"example:living-app:smoke:json": "npm run build && npm run example:living-app:generate && npm run example:living-app:build && npm run example:living-app:run:json",
"fix:all": "npm run format && npm run lint:fix",
"matrix": "node -e \"import('./tools/matrix.js').then(m=>m.run()).catch(e=>{console.error(e);process.exit(1)})\"",
"release": "node scripts/release.mjs",
"act": "node scripts/act.mjs",
"act:clean": "node scripts/act.mjs --clean",
"act:serial": "node scripts/act-matrix.mjs",
"docker:npm": "node scripts/node-docker.mjs npm",
"docs:sync-llms": "node scripts/generate-llms-full.mjs",
"docs:dev": "vitepress dev docs",
"docs:build": "npm run docs:sync-llms && vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"keywords": [
"typescript",
"python",
"bridge",
"type-safety",
"interop",
"pyodide",
"ast",
"code-generation",
"node",
"deno",
"bun",
"codegen",
"ffi",
"bindings",
"wrapper",
"numpy",
"pandas",
"scipy",
"python-wrapper",
"rpc",
"subprocess"
],
"author": "tywrap contributors",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/bbopen/tywrap.git"
},
"bugs": {
"url": "https://github.com/bbopen/tywrap/issues"
},
"homepage": "https://bbopen.github.io/tywrap",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"dependencies": {
"@babel/parser": "^7.25.6",
"@babel/types": "^7.25.6",
"tree-sitter": "^0.25.0",
"tree-sitter-python": "^0.25.0",
"typescript": "^5.6.2",
"web-tree-sitter": "^0.21.0",
"yargs": "^18.0.0"
},
"devDependencies": {
"@types/bun": "^1.3.10",
"@types/node": "^25.5.0",
"@types/three": "^0.183.1",
"@types/yargs": "^17.0.35",
"@typescript-eslint/eslint-plugin": "^8.57.1",
"@typescript-eslint/parser": "^8.5.0",
"@vitest/coverage-v8": "^4.1.0",
"@vitest/eslint-plugin": "^1.6.12",
"apache-arrow": "^21.1.0",
"eslint": "^9.10.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-security": "^3.0.1",
"fast-check": "^4.6.0",
"prettier": "^3.8.1",
"tsd": "^0.33.0",
"vite": "^7.3.0",
"vitepress": "^1.6.4",
"vitest": "^4.0.16",
"three": "^0.183.2",
"postprocessing": "^6.38.3"
},
"peerDependencies": {
"pyodide": ">=0.28.0"
},
"engines": {
"node": ">=20.0.0",
"deno": ">=1.46.0",
"bun": ">=1.1.0"
},
"trustedDependencies": [
"pyodide"
],
"overrides": {
"@types/react": "^18.3.0",
"@types/prop-types": "^15.7.0"
},
"bin": {
"tywrap": "dist/cli.js"
}
}