Update README.md and package.json

This commit is contained in:
typicode
2023-12-26 00:13:21 +01:00
parent 45f75f169b
commit 5e64cd1f3c
2 changed files with 5 additions and 5 deletions

View File

@ -15,12 +15,12 @@ Create a `db.json` file or run `json-server db.json` to create one with some def
```json
{
"posts": [
{ "id": "1", "title": "string" },
{ "id": "2", "title": "some post" }
{ "id": "1", "title": "a title" },
{ "id": "2", "title": "another title" }
],
"comments": [
{ "id": "1", "text": "some text", "postId": "1" },
{ "id": "2", "text": "some text", "postId": "1" }
{ "id": "1", "text": "a comment about post 1", "postId": "1" },
{ "id": "2", "text": "another comment about post 1", "postId": "1" }
]
}
```

View File

@ -15,7 +15,7 @@
"watch-css": "npm run css -- --watch",
"dev": "concurrently npm:watch-*",
"build": "rm -rf lib && tsc && npm run css",
"test": "node --import tsx/esm --test src/**/*.test.ts",
"test": "npm run css && node --import tsx/esm --test src/*.test.ts",
"lint": "eslint src --ext .ts --ignore-path .gitignore",
"prepare": "husky install",
"prepublishOnly": "npm run build"