badgen/package.json

35 wiersze
1.1 KiB
JSON

{
"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"
}
}