-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
20 lines (20 loc) · 964 Bytes
/
package.json
File metadata and controls
20 lines (20 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"name": "@ladybugdb/wasm-shell",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"predev": "pnpm run build:wasm",
"build:wasm": "cp node_modules/@ladybugdb/wasm-core/index.js lib/index.js && cp node_modules/@ladybugdb/wasm-core/lbug_wasm_worker.js lib/lbug_wasm_worker.js && cp node_modules/@ladybugdb/wasm-core/sync/index.js sync/index.js",
"dev": "vite",
"build": "pnpm run build:wasm && vite build && pnpm run copy:lib",
"copy:lib": "node -e \"const {copyFileSync,mkdirSync,existsSync}=require('fs');const d='dist/lib';if(!existsSync(d))mkdirSync(d,{recursive:true});['index.js','lbug_wasm_worker.js'].forEach(f=>copyFileSync('lib/'+f,d+'/'+f));const s='dist/sync';if(!existsSync(s))mkdirSync(s,{recursive:true});copyFileSync('sync/index.js',s+'/index.js')\"",
"preview": "vite preview"
},
"dependencies": {
"@ladybugdb/wasm-core": "^0.15.1"
},
"devDependencies": {
"vite": "^5.0.0"
}
}