chore: update devDependencies and add husky

This commit is contained in:
typicode
2024-01-26 17:28:10 +01:00
parent 8fa80f3bc5
commit ae82c360d4
2 changed files with 5 additions and 9 deletions

1
.husky/pre-commit Normal file
View File

@ -0,0 +1 @@
npm test

View File

@ -9,21 +9,17 @@
"types": "lib", "types": "lib",
"files": [ "files": [
"lib", "lib",
"public",
"views" "views"
], ],
"engines": { "engines": {
"node": ">=18.3" "node": ">=18.3"
}, },
"scripts": { "scripts": {
"css": "tailwindcss -i ./views/input.css -o ./public/output.css", "dev": "tsx watch src/bin.ts fixtures/db.json",
"watch-ts": "tsx watch src/bin.ts fixtures/db.json", "build": "rm -rf lib && tsc",
"watch-css": "npm run css -- --watch", "test": "node --import tsx/esm --test src/*.test.ts",
"dev": "concurrently npm:watch-*",
"build": "rm -rf lib && tsc && npm run css",
"test": "npm run css && node --import tsx/esm --test src/*.test.ts",
"lint": "eslint src --ext .ts --ignore-path .gitignore", "lint": "eslint src --ext .ts --ignore-path .gitignore",
"prepare": "husky install", "prepare": "husky",
"prepublishOnly": "npm run build" "prepublishOnly": "npm run build"
}, },
"keywords": [], "keywords": [],
@ -37,7 +33,6 @@
"concurrently": "^8.2.2", "concurrently": "^8.2.2",
"get-port": "^7.0.0", "get-port": "^7.0.0",
"husky": "^9.0.6", "husky": "^9.0.6",
"tailwindcss": "^3.4.1",
"tempy": "^3.1.0", "tempy": "^3.1.0",
"tsx": "^4.7.0", "tsx": "^4.7.0",
"type-fest": "^4.10.1", "type-fest": "^4.10.1",