badgen/package.json

35 wiersze
1.1 KiB
JSON

{
"name": "badgen",
"version": "3.2.1",
"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 test/*.spec.ts",
"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.8.17",
"serve-marked": "^3.1.0",
"tap": "^14.10.7",
"typescript": "^4.1.2"
}
}