51 lines
1.6 KiB
JSON
51 lines
1.6 KiB
JSON
{
|
|
"name": "@tryghost/errors",
|
|
"version": "1.3.2",
|
|
"repository": "https://github.com/TryGhost/framework/tree/main/packages/errors",
|
|
"author": "Ghost Foundation",
|
|
"license": "MIT",
|
|
"main": "cjs/index.js",
|
|
"module": "es/index.js",
|
|
"types": "types/index.d.ts",
|
|
"source": "src/index.ts",
|
|
"sideEffects": false,
|
|
"scripts": {
|
|
"dev": "echo \"Implement me!\"",
|
|
"prepare": "NODE_ENV=production yarn build",
|
|
"pretest": "NODE_ENV=production yarn build",
|
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
"build:cjs": "esbuild src/*.ts --target=es2020 --outdir=cjs --format=cjs",
|
|
"build:es": "esbuild src/*.ts --target=es2020 --outdir=es --format=esm",
|
|
"build:types": "tsc --emitDeclarationOnly --declaration --declarationMap --outDir types",
|
|
"test": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\" }' NODE_ENV=testing c8 --check-coverage --all -n src --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'",
|
|
"lint": "eslint . --ext .js --cache",
|
|
"posttest": "yarn lint"
|
|
},
|
|
"files": [
|
|
"cjs",
|
|
"es",
|
|
"types",
|
|
"src"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"devDependencies": {
|
|
"@types/lodash": "^4.14.200",
|
|
"@types/mocha": "^10.0.3",
|
|
"@types/uuid": "^9.0.6",
|
|
"c8": "9.1.0",
|
|
"esbuild": "^0.19.5",
|
|
"lodash": "^4.17.21",
|
|
"mocha": "10.4.0",
|
|
"should": "13.2.3",
|
|
"ts-node": "^10.9.1",
|
|
"typescript": "5.2.2"
|
|
},
|
|
"dependencies": {
|
|
"@stdlib/utils-copy": "^0.0.7",
|
|
"uuid": "^9.0.0"
|
|
},
|
|
"gitHead": "77c5215535f391c2a10fcf275a16bfc79f70109d"
|
|
}
|