-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
40 lines (40 loc) · 1.33 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
"name": "@nkzw/use-relative-time",
"version": "1.1.0",
"author": "Christoph Nakazawa <christoph.pojer@gmail.com>",
"description": "A zero-dependency React hook for formatting relative dates.",
"repository": {
"type": "git",
"url": "https://github.com/nkzw-tech/use-relative-time.git"
},
"license": "MIT",
"main": "lib/use-relative-time.js",
"type": "module",
"keywords": [
"date",
"react",
"relative",
"time"
],
"peerDependencies": {
"react": "^18.2.0"
},
"devDependencies": {
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
"@nkzw/eslint-config": "^1.14.0",
"@testing-library/react-hooks": "^8.0.1",
"@types/react": "^18.2.65",
"esbuild": "^0.20.1",
"eslint": "^8.57.0",
"happy-dom": "^13.7.8",
"prettier": "^3.2.5",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^5.4.2",
"vitest": "^1.3.1"
},
"scripts": {
"build": "mkdir -p lib && rm -rf lib/*; tsc --declaration --emitDeclarationOnly --noEmit false && mv lib/src/*.d.ts lib/ && rmdir lib/src && rm -rf lib/test && prettier --ignore-path '' --write lib/use-relative-time.d.ts && esbuild --target=es2017 --format=esm --outfile=lib/use-relative-time.js --external:react --bundle ./src/use-relative-time.tsx",
"test": "tsc && eslint . && prettier --check . && vitest run"
}
}