Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
103 lines (103 loc) · 3.13 KB
/
Copy pathpackage.json
File metadata and controls
103 lines (103 loc) · 3.13 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"name": "react-clear-browser-cache",
"version": "1.0.0",
"author": {
"name": "Maksym Synenko",
"url": "https://devmaxxx.github.io/"
},
"description": "Detect new deploys of a React app, clear Cache Storage and reload, or ask the user first. Recovers from missing lazy chunks.",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/devmaxxx/react-clear-browser-cache.git"
},
"homepage": "https://devmaxxx.github.io/react-clear-browser-cache/",
"bugs": "https://github.com/devmaxxx/react-clear-browser-cache/issues",
"type": "commonjs",
"sideEffects": false,
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"bin": {
"generate-build-meta": "bin/cli.js"
},
"files": [
"bin",
"dist"
],
"engines": {
"node": ">=18.3"
},
"keywords": [
"cache",
"browser cache",
"clear cache",
"refresh cache",
"react",
"cache-busting",
"chunk-load-error",
"deploy",
"reload",
"next.js",
"vite",
"webpack"
],
"packageManager": "pnpm@10.23.0",
"scripts": {
"build": "tsdown",
"dev": "tsdown --watch",
"prepack": "pnpm run build",
"typecheck": "tsc --noEmit && tsc --noEmit -p example && tsc --noEmit -p e2e",
"lint": "eslint . && prettier --check . && pnpm run lint:html",
"lint:html": "html-validate example/index.html",
"test": "pnpm run lint && pnpm run build && pnpm run typecheck && pnpm run test:unit && playwright test",
"test:unit": "vitest run",
"test:watch": "vitest",
"test:e2e": "pnpm run build && playwright test",
"example:dev": "pnpm --filter react-clear-browser-cache-example dev",
"example:build": "pnpm --filter react-clear-browser-cache-example build",
"demo:dev": "VITE_DEMO=1 pnpm run example:dev",
"demo:build": "VITE_DEMO=1 BASE_PATH=/react-clear-browser-cache/ pnpm --filter react-clear-browser-cache-example exec vite build --outDir dist-demo",
"demo:preview": "BASE_PATH=/react-clear-browser-cache/ pnpm --filter react-clear-browser-cache-example preview --outDir dist-demo"
},
"peerDependencies": {
"react": ">=18.0.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.64.1",
"@testing-library/dom": "^10.4.2",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@types/node": "^22.20.5",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"eslint": "^10.13.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-react-hooks": "^7.1.1",
"globals": "^17.13.0",
"html-validate": "^11.16.2",
"jsdom": "^30.1.3",
"prettier": "^3.9.10",
"publint": "^0.3.25",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"tsdown": "^0.23.1",
"typescript": "~6.0.3",
"typescript-eslint": "^8.71.2",
"vitest": "^5.0.5"
}
}