66 lines
1.7 KiB
JSON
66 lines
1.7 KiB
JSON
{
|
|
"name": "gerror",
|
|
"version": "1.0.16",
|
|
"description": "Mixer for gRPC Error & ECMAScript Error",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"import": "./dist/esm/src/mod.js",
|
|
"require": "./dist/cjs/src/mod.js"
|
|
}
|
|
},
|
|
"typings": "./dist/esm/src/mod.d.ts",
|
|
"engines": {
|
|
"node": ">=16",
|
|
"npm": ">=7"
|
|
},
|
|
"scripts": {
|
|
"clean": "shx rm -fr dist/*",
|
|
"dist": "npm-run-all clean build dist:commonjs",
|
|
"build": "tsc && tsc -p tsconfig.cjs.json",
|
|
"dist:commonjs": "jq -n \"{ type: \\\"commonjs\\\" }\" > dist/cjs/package.json",
|
|
"lint": "npm run lint:es && npm run lint:ts",
|
|
"lint:ts": "tsc --isolatedModules --noEmit",
|
|
"test": "npm-run-all lint test:unit",
|
|
"test:unit": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" tap \"src/**/*.spec.ts\" \"tests/*.spec.ts\"",
|
|
"test:pack": "bash -x scripts/npm-pack-testing.sh",
|
|
"lint:es": "eslint --ignore-pattern fixtures/ \"src/**/*.ts\" \"tests/**/*.ts\""
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/huan/gerror.git"
|
|
},
|
|
"keywords": [
|
|
"error",
|
|
"grpc",
|
|
"ecma",
|
|
"status",
|
|
"protocol buffer"
|
|
],
|
|
"author": "Huan LI <zixia@zixia.net>",
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/huan/gerror/issues"
|
|
},
|
|
"homepage": "https://github.com/huan/gerror#readme",
|
|
"devDependencies": {
|
|
"@chatie/eslint-config": "^1.0.2",
|
|
"@chatie/git-scripts": "^0.6.2",
|
|
"@chatie/semver": "^0.4.7",
|
|
"@chatie/tsconfig": "^0.20.6"
|
|
},
|
|
"dependencies": {},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"tag": "latest"
|
|
},
|
|
"git": {
|
|
"scripts": {
|
|
"pre-push": "npx git-scripts-pre-push"
|
|
}
|
|
}
|
|
} |