-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
67 lines (67 loc) · 2.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
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
{
"name": "blockstore-opfs",
"version": "0.1.0",
"module": "./dist/blockstore-opfs.js",
"type": "module",
"keywords": [],
"author": "dozyio",
"license": "MIT",
"description": "OPFS Blockstore for IPFS / Helia",
"types": "./dist/src/index.d.ts",
"files": [
"!src/index-webworker-WIP.ts",
"src",
"dist",
"!playwright.config.js",
"!src/setup.ts",
"!dist/test",
"!**/*.tsbuildinfo",
"!.gitignore",
"!.prettierignore"
],
"exports": {
".": {
"import": "./dist/blockstore-opfs.js",
"types": "./dist/src/index.d.ts"
}
},
"eslintConfig": {
"extends": "ipfs",
"parserOptions": {
"project": true,
"sourceType": "module"
}
},
"scripts": {
"dev": "vite",
"test": "npm run test:aegir && npm run test:pw",
"test:pw": "npm run build && playwright test test/blockstore.spec.ts",
"test:aegir": "npm run test:aegir:chromium && npm run test:aegir:firefox && npm run test:aegir:webkit",
"test:aegir:firefox": "aegir test -- --browser firefox",
"test:aegir:chromium": "aegir test -- --browser chromium",
"test:aegir:webkit": "aegir test -- --browser webkit",
"build:worker": "rm -rf dist-worker && tsc && vite build --config vite.worker.config.js && sed '1s/^/export const workerScript = `/; 1!s/\\\\/\\\\\\\\/g; 1!s/`/\\\\`/g; 1!s/\\${/\\\\${/g; $s/$/`;/' dist-worker/opfs-worker.js > src/opfs-worker.ts",
"build": "rm -rf dist && npm run build:worker && vite build --config vite.config.js",
"lint": "aegir lint --fix"
},
"dependencies": {
"interface-blockstore": "^5.3.1",
"interface-store": "^6.0.2",
"it-map": "^3.1.1",
"it-parallel-batch": "^3.0.6",
"multiformats": "^13.3.0"
},
"devDependencies": {
"@playwright/test": "^1.48.0",
"@types/mocha": "^10.0.9",
"aegir": "^44.1.4",
"globals": "^15.11.0",
"interface-blockstore-tests": "^7.0.1",
"playwright": "^1.48.0",
"simple-worker-vite": "^0.3.0",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
"vite": "^5.4.9",
"vite-plugin-dts": "^4.2.4"
}
}