-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
37 lines (37 loc) · 1.23 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
{
"name": "@biscuit-auth/biscuit-wasm",
"description": "WebAssembly wrapper for Biscuit authorization tokens",
"version": "0.5.0",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/biscuit-auth/biscuit-wasm"
},
"scripts": {
"build": "wasm-pack build --target bundler --out-dir module --out-name biscuit --scope biscuit-auth && npm run append-snippets",
"format": "prettier -w ./snippets",
"check-format": "prettier -c ./snippets",
"append-snippets": "npm run check-format && cat ./snippets/*.js >> module/biscuit.js && cat ./snippets/definitions/*.d.ts >> module/biscuit.d.ts",
"remove-pkg-cruft": "rm module/package.json module/.gitignore module/README.md",
"prepare-package": "npm run build && npm run remove-pkg-cruft",
"prepublishOnly": "npm run prepare-package"
},
"files": [
"module/biscuit_bg.wasm",
"module/biscuit.js",
"module/biscuit_bg.js",
"module/biscuit.d.ts",
"module/snippets"
],
"main": "module/biscuit.js",
"type": "module",
"exports": {
"import": "./module/biscuit.js"
},
"module": "module/biscuit.js",
"sideEffects": "false",
"types": "module/biscuit.d.ts",
"devDependencies": {
"prettier": "^2.8.6"
}
}