87 lines
2.5 KiB
JSON
87 lines
2.5 KiB
JSON
{
|
|
"name": "watchdog",
|
|
"version": "0.9.2",
|
|
"description": "An Timer used to Detect and Recover from Malfunctions",
|
|
"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": {
|
|
"build": "tsc && tsc -p tsconfig.cjs.json",
|
|
"clean": "shx rm -fr dist/* bundles/*",
|
|
"dist": "npm-run-all clean build dist:commonjs",
|
|
"dist:commonjs": "jq -n \"{ type: \\\"commonjs\\\" }\" > dist/cjs/package.json",
|
|
"lint": "npm-run-all lint:es lint:ts lint:md",
|
|
"dist:es6to5": "tsc --out ./bundles/watchdog.umd.js --target es5 --allowJs bundles/watchdog.es6.umd.js --lib es6,dom",
|
|
"doc": "npm run dist && echo '# Watchdog v'$(jq -r .version package.json)' Documentation\n' > docs/index.md && jsdoc2md dist/watchdog.js >> docs/index.md",
|
|
"demo": "ts-node examples/demo",
|
|
"example": "npm run dmeo",
|
|
"lint:md": "markdownlint README.md",
|
|
"lint:es": "eslint --ignore-pattern tests/fixtures/ '{bin,examples,scripts,src,tests}/**/*.ts'",
|
|
"lint:ts": "tsc --isolatedModules --noEmit",
|
|
"rollup": "rollup -c",
|
|
"test": "npm run lint && npm run 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"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/huan/watchdog.git"
|
|
},
|
|
"keywords": [
|
|
"watchdog",
|
|
"timer"
|
|
],
|
|
"author": "Huan LI <zixia@zixia.net>",
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/huan/watchdog/issues"
|
|
},
|
|
"homepage": "https://github.com/huan/watchdog#readme",
|
|
"devDependencies": {
|
|
"@chatie/eslint-config": "^0.14.1",
|
|
"@chatie/git-scripts": "^0.6.1",
|
|
"@chatie/semver": "^0.4.7",
|
|
"@chatie/tsconfig": "^0.20.2",
|
|
"brolog": "^1.3.3",
|
|
"cross-env": "^7.0.3",
|
|
"jsdoc-to-markdown": "^7.0.0",
|
|
"npm-run-all": "^4.1.5",
|
|
"pkg-jq": "^0.2.4",
|
|
"rollup": "^2.0.0",
|
|
"rollup-plugin-json": "^4.0.0",
|
|
"shx": "^0.3.0",
|
|
"source-map-support": "^0.5.0",
|
|
"tstest": "^0.7.3"
|
|
},
|
|
"peerDependencies": {},
|
|
"dependencies": {
|
|
"brolog": "^1.3.3"
|
|
},
|
|
"files": [
|
|
"bin/",
|
|
"bundles/",
|
|
"dist/",
|
|
"src/"
|
|
],
|
|
"tap": {
|
|
"check-coverage": false
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"tag": "next"
|
|
},
|
|
"git": {
|
|
"scripts": {
|
|
"pre-push": "npx git-scripts-pre-push"
|
|
}
|
|
}
|
|
} |