-
Notifications
You must be signed in to change notification settings - Fork 35
/
package.json
34 lines (34 loc) · 1.09 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
{
"name": "badgen",
"version": "3.2.3",
"description": "Fast svg badge generator.",
"repository": "amio/badgen",
"author": "Amio <amio.cn@gmail.com>",
"license": "MIT",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"unpkg": "dist/index.browser.js",
"scripts": {
"bench": "node bench/index.js",
"preview": "node preview/serve.js",
"snaptests": "TAP_SNAPSHOT=1 npm test",
"pretest": "npm run build",
"test": "tap --no-check-coverage",
"prebuild": "rm -rf dist",
"esbuild": "esbuild src/index.ts --bundle --minify --sourcemap",
"build:types": "tsc --emitDeclarationOnly",
"build:browser": "npm run esbuild -- --outfile=dist/index.browser.js",
"build:node": "npm run esbuild -- --platform=node --outfile=dist/index.js",
"build": "npm run build:browser && npm run build:node",
"postbuild": "npm run build:types",
"prepack": "npm run build"
},
"devDependencies": {
"@types/node": "^14.0.14",
"benchmark": "^2.1.4",
"esbuild": "^0.14.38",
"serve-marked": "^3.1.0",
"tap": "^16.1.0",
"typescript": "^4.1.2"
}
}