-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
60 lines (60 loc) · 2.18 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"name": "use-view-transitions",
"version": "1.0.16",
"description": "A React hook for CSS view transitions",
"scripts": {
"build:examples": "vite build examples",
"build:packages": "npm run build:packages:cjs && npm run build:packages:esm && npm run build:types",
"build:packages:cjs": "esbuild --external:react --external:react-dom --format=cjs --bundle --outdir=dist/cjs --sourcemap=external ./src/*",
"build:packages:esm": "esbuild --external:react --external:react-dom --format=esm --bundle --outdir=dist/esm --sourcemap=external ./src/*",
"build:types": "tsc --emitDeclarationOnly",
"build": "npm run build:packages && jsdoc -R README.md src/",
"build:watch": "esbuild --external:react --external:react-dom --format=cjs --bundle --outdir=dist/cjs --loader:.ts=tsx --sourcemap=inline --watch ./src/*",
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite build --watch examples & vite preview examples"
},
"author": "Noam Rosenthal <[email protected]>",
"repository": "noamr/use-view-transitions",
"license": "MIT",
"peerDependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"exports": {
"./react": {
"require": "./dist/cjs/react-vt.js",
"import": "./dist/esm/react-vt.js",
"types": "./dist/react-vt.d.ts"
},
"./next": {
"require": "./dist/cjs/next-vt.js",
"import": "./dist/esm/next-vt.js",
"types": "./dist/next-vt.d.ts"
}
},
"devDependencies": {
"@types/node": "^20.5.0",
"@types/react": "^18.2.8",
"@types/react-dom": "^18.2.4",
"@typescript-eslint/eslint-plugin": "^6.4.0",
"@typescript-eslint/parser": "^6.4.0",
"@vitejs/plugin-react": "^4.0.0",
"esbuild": "^0.17.19",
"eslint": "^8.42.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "0.4.3",
"jsdoc": "^4.0.2",
"react-refresh": "0.14.0",
"typescript": "^5.1.6",
"vite": "^4.3.9"
},
"files": [
"dist/cjs/next-vt.js",
"dist/cjs/react-vt.js",
"dist/esm/next-vt.js",
"dist/esm/react-vt.js",
"dist/next-vt.d.ts",
"dist/react-vt.d.ts"
]
}