preact-components/package.json

75 lines
1.5 KiB
JSON

{
"name": "@holllo/preact-components",
"description": "Holllo's Preact component library.",
"license": "AGPL-3.0-or-later",
"version": "0.2.3",
"author": "Holllo <helllo@holllo.org>",
"repository": {
"type": "git",
"url": "https://git.bauke.xyz/Holllo/preact-components"
},
"scripts": {
"build": "tsc",
"prepublishOnly": "pnpm test && pnpm build",
"test": "xo && tsc --noEmit && c8 ava",
"test:snapshots": "ava --update-snapshots"
},
"devDependencies": {
"@happy-dom/global-registrator": "^6.0.4",
"ava": "^4.3.3",
"c8": "^7.12.0",
"htm": "^3.1.1",
"preact": "^10.11.0",
"preact-render-to-string": "^5.2.4",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"xo": "^0.52.3"
},
"peerDependencies": {
"htm": "3.x",
"preact": "10.x"
},
"type": "module",
"main": "build/source/index.js",
"types": "build/source/index.d.ts",
"files": [
"build/source/",
"package.json",
"LICENSE",
"README.md"
],
"ava": {
"extensions": {
"ts": "module"
},
"files": [
"tests/**/*.test.ts"
],
"nodeArguments": [
"--loader=ts-node/esm",
"--no-warnings"
]
},
"c8": {
"100": true,
"all": true,
"include": [
"source",
"tests"
],
"reportDir": "coverage",
"reporter": [
"text",
"html"
]
},
"xo": {
"prettier": true,
"rules": {
"@typescript-eslint/consistent-type-imports": "off",
"n/file-extension-in-import": "off"
},
"space": true
}
}