-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
35 lines (35 loc) · 1.28 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
{
"name": "@xplive/synceddb",
"version": "1.0.19",
"description": "No-bullshit indexedDB wrapper functions with promises, iterators and shortcuts.",
"types": "dest/synceddb.d.ts",
"module": "dest/synceddb.js",
"browser": "dest/synceddb.js",
"main": "dest/synceddb.js",
"type": "module",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/xpectme/synceddb"
},
"scripts": {
"ts-types": " tsc --emitDeclarationOnly",
"replaceDts": "find dest -type f -name \"*.d.ts\" -exec sh -c 'sed \"s/\\.ts/\\.d.ts/g\" \"$0\" > \"$0.tmp\" && mv \"$0.tmp\" \"$0\"' {} \\;",
"bundleDts": "echo \"$(grep -o '\".*\"' dest/types/main.d.ts | sed 's/\"//g' | xargs -I{} cat dest/types/{})\" > dest/synceddb.d.ts",
"unimportDts": "echo \"$(grep -vE '^import\\s.*;' dest/synceddb.d.ts)\" > dest/synceddb.d.ts",
"dts": "npm run ts-types && npm run replaceDts && npm run bundleDts && npm run unimportDts && rimraf dest/types",
"build": "rimraf dest && node ./esbuild.js && npm run dts"
},
"keywords": [],
"author": "Mario Stöcklein <mstoecklein@xp.live>",
"license": "MIT",
"devDependencies": {
"esbuild": "^0.18.11",
"rimraf": "^5.0.1",
"typescript": "^5.1.6"
},
"dependencies": {
"idbatch": "^0.0.1",
"idbx": "^2.1.0"
}
}