-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathpackage.json
More file actions
75 lines (75 loc) · 2.97 KB
/
package.json
File metadata and controls
75 lines (75 loc) · 2.97 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
{
"name": "spl.js",
"version": "1.0.1",
"description": "SpatiaLite and friends - sqlite, geos, proj, rttopo - for node and browser.",
"type": "module",
"exports": {
".": {
"node": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
},
"browser": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"main": "./dist/index.js",
"browser": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"scripts": {
"test:node": "node test/node.js",
"test:electron": "node test/electron.js",
"test:chrome": "browserify --plugin esmify test/browser.js | tape-run --static test --browser chrome --keep-open",
"test:firefox": "browserify --plugin esmify test/browser.js | tape-run --static test --browser firefox --keep-open",
"test:libspatialite": "make libspatialite-tests",
"build:em": "make node && make worker",
"build:node": "rollup -c rollup.config.node.js --bundleConfigAsCjs",
"build:node:debug": "rollup -c rollup.config.node.js --configDebug --bundleConfigAsCjs",
"build:web": "npm run build:worker && node scripts/stringify && rollup -c rollup.config.web.js --bundleConfigAsCjs",
"build:web:debug": "npm run build:worker -- --configDebug && node scripts/stringify && rollup -c rollup.config.web.js --bundleConfigAsCjs --configDebug",
"build:worker": "rollup -c rollup.config.worker.js --bundleConfigAsCjs",
"build:types": "tsc --declaration --emitDeclarationOnly --allowJs --skipLibCheck --outDir dist src/spl-web.js src/spl-node.mjs src/typedefs.js && mv dist/spl-web.d.ts dist/index.d.ts && mv dist/spl-node.d.mts dist/index.d.mts && rm -f dist/spl.d.ts dist/result.d.ts && rm -rf dist/build && sed -i 's/^import type/export type/' dist/index.d.ts dist/index.d.mts",
"build:all": "make em && npm run build:em && npm run build:web && npm run build:node && npm run build:types",
"format": "prettier --write \"src/**/*.{js,mjs}\" \"test/**/*.js\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/jvail/spl.js.git"
},
"keywords": [
"spatialite",
"sqlite",
"geos",
"proj",
"rttopo"
],
"author": "Jan Vaillant",
"license": "GPLv3",
"bugs": {
"url": "https://github.com/jvail/spl.js/issues"
},
"homepage": "https://github.com/jvail/spl.js#readme",
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-terser": "^0.4.3",
"browserify": "^17.0.0",
"esmify": "^2.1.1",
"prettier": "^3.7.4",
"rollup": "^3.28.1",
"rollup-plugin-copy": "^3.4.0",
"tape": "^5.2.2",
"tape-run": "^11.0.0",
"typescript": "^5.9.3"
},
"dependencies": {
"pako": "^2.1.0"
}
}