-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
38 lines (38 loc) · 1.05 KB
/
package.json
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
{
"name": "starlark-wasm",
"private": false,
"version": "0.0.4",
"type": "module",
"main": "dist/starlark.cjs.js",
"module": "dist/starlark.es.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/starlark.es.js",
"require": "./dist/starlark.cjs.js",
"umd": "./dist/starlark.umd.js",
"types": "./dist/index.d.ts"
},
"./wasm": {
"import": "./dist/starlark.wasm",
"require": "./dist/starlark.wasm",
"umd": "./dist/starlark.wasm"
}
},
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview",
"build-go": "cd go && GOOS=js GOARCH=wasm go build -ldflags \"-s -w\" -o ../public/starlark.wasm ./main.go",
"build-go-dev": "cd go && GOOS=js GOARCH=wasm go build -o ../public/starlark.wasm ./main.go",
"release": "rm -rf ./dist && npm run build-go && npm run build && npm publish --access public"
},
"files": [
"dist"
],
"devDependencies": {
"typescript": "~5.6.2",
"vite": "^6.0.1",
"vite-plugin-dts": "^4.3.0"
}
}