create-packer 1.50.14 → 1.50.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-packer",
3
- "version": "1.50.14",
3
+ "version": "1.50.16",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/kevily/create-packer",
6
6
  "author": "1k <bug_zero@163.com>",
@@ -1,91 +1,91 @@
1
- {
2
- "name": "renderer",
3
- "private": true,
4
- "version": "0.0.0",
5
- "main": "dist/main/main.js",
6
- "scripts": {
7
- "prepare": "husky",
8
- "start": "electron .",
9
- "dev": "pnpm clean && concurrently \"pnpm dev:preload\" \"pnpm dev:renderer\" \"pnpm dev:main\"",
10
- "dev:renderer": "rsbuild dev -c ./configs/rsbuild.renderer.config.ts",
11
- "dev:preload": "rsbuild dev -c ./configs/rsbuild.preload.config.ts",
12
- "dev:main": "rsbuild dev -c ./configs/rsbuild.main.config.ts",
13
- "build": "pnpm clean && pnpm build:preload && pnpm build:renderer && pnpm build:main",
14
- "build:renderer": "rsbuild build -c ./configs/rsbuild.renderer.config.ts",
15
- "build:preload": "rsbuild build -c ./configs/rsbuild.preload.config.ts",
16
- "build:main": "rsbuild build -c ./configs/rsbuild.main.config.ts",
17
- "build:analyse": "rsbuild build --env-mode analyse",
18
- "build:rsdoctor": "cross-env RSDOCTOR=true rsbuild build",
19
- "package": "rimraf build && electron-builder -c ./build.config.js",
20
- "clean": "rimraf dist",
21
- "preview": "rsbuild preview",
22
- "up:rsbuild": "pnpm up @rsbuild/* -L",
23
- "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
24
- "lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
25
- "lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
26
- "cz": "cz",
27
- "push": "npm run commit && git push",
28
- "commit": "git add . && npm run cz",
29
- "up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L"
30
- },
31
- "dependencies": {
32
- "@tanstack/react-query": "5.51.15",
33
- "axios": "1.16.0",
34
- "define-zustand": "4.0.2",
35
- "electron-debug": "^4.1.0",
36
- "es-toolkit": "1.46.1",
37
- "immer": "10.0.1",
38
- "qs": "6.11.2",
39
- "react": "18.3.1",
40
- "react-dom": "18.3.1",
41
- "react-router": "7.18.1",
42
- "react-use": "17.5.0",
43
- "type-fest": "5.6.0",
44
- "zustand": "5.0.3"
45
- },
46
- "devDependencies": {
47
- "@commitlint/cli": "17.6.1",
48
- "@commitlint/config-conventional": "17.6.1",
49
- "@commitlint/cz-commitlint": "17.5.0",
50
- "@eslint/js": "9.15.0",
51
- "@rsbuild/core": "2.0.5",
52
- "@rsbuild/plugin-eslint": "1.3.0",
53
- "@rsbuild/plugin-react": "2.0.0",
54
- "@rsbuild/plugin-svgr": "2.0.2",
55
- "@rsbuild/plugin-type-check": "1.3.4",
56
- "@rsdoctor/rspack-plugin": "1.5.10",
57
- "@tailwindcss/postcss": "4.1.4",
58
- "@types/node": "20.19.0",
59
- "@types/qs": "6.9.7",
60
- "@types/react": "18.3.31",
61
- "@types/react-dom": "18.3.7",
62
- "autoprefixer": "10.4.14",
63
- "commitizen": "4.3.0",
64
- "concurrently": "9.2.1",
65
- "cross-env": "7.0.3",
66
- "cssnano": "6.0.0",
67
- "electron": "38.1.2",
68
- "electron-builder": "26.0.12",
69
- "eslint": "9.17.0",
70
- "eslint-import-resolver-typescript": "4.4.4",
71
- "eslint-plugin-import": "2.31.0",
72
- "eslint-plugin-react": "7.37.2",
73
- "eslint-plugin-react-hooks": "5.1.0",
74
- "globals": "15.12.0",
75
- "husky": "9.1.6",
76
- "postcss": "8.4.35",
77
- "postcss-import": "16.0.1",
78
- "postcss-nesting": "12.0.3",
79
- "postcss-styled-syntax": "0.6.4",
80
- "prettier": "3.2.5",
81
- "stylelint": "16.10.0",
82
- "stylelint-config-standard": "36.0.1",
83
- "stylelint-webpack-plugin": "5.0.0",
84
- "typescript": "6.0.3"
85
- },
86
- "config": {
87
- "commitizen": {
88
- "path": "@commitlint/cz-commitlint"
89
- }
90
- }
91
- }
1
+ {
2
+ "name": "renderer",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "main": "dist/main/main.js",
6
+ "scripts": {
7
+ "prepare": "husky",
8
+ "start": "electron .",
9
+ "dev": "pnpm clean && concurrently \"pnpm dev:preload\" \"pnpm dev:renderer\" \"pnpm dev:main\"",
10
+ "dev:renderer": "rsbuild dev -c ./configs/rsbuild.renderer.config.ts",
11
+ "dev:preload": "rsbuild dev -c ./configs/rsbuild.preload.config.ts",
12
+ "dev:main": "rsbuild dev -c ./configs/rsbuild.main.config.ts",
13
+ "build": "pnpm clean && pnpm build:preload && pnpm build:renderer && pnpm build:main",
14
+ "build:renderer": "rsbuild build -c ./configs/rsbuild.renderer.config.ts",
15
+ "build:preload": "rsbuild build -c ./configs/rsbuild.preload.config.ts",
16
+ "build:main": "rsbuild build -c ./configs/rsbuild.main.config.ts",
17
+ "build:analyse": "rsbuild build --env-mode analyse",
18
+ "build:rsdoctor": "cross-env RSDOCTOR=true rsbuild build",
19
+ "package": "rimraf build && electron-builder -c ./build.config.js",
20
+ "clean": "rimraf dist",
21
+ "preview": "rsbuild preview",
22
+ "up:rsbuild": "pnpm up @rsbuild/* -L",
23
+ "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
24
+ "lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
25
+ "lint:fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
26
+ "cz": "cz",
27
+ "push": "npm run commit && git push",
28
+ "commit": "git add . && npm run cz",
29
+ "up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L"
30
+ },
31
+ "dependencies": {
32
+ "@tanstack/react-query": "5.51.15",
33
+ "axios": "1.16.0",
34
+ "define-zustand": "4.0.2",
35
+ "electron-debug": "^4.1.0",
36
+ "es-toolkit": "1.46.1",
37
+ "immer": "10.0.1",
38
+ "qs": "6.11.2",
39
+ "react": "19.2.8",
40
+ "react-dom": "19.2.8",
41
+ "react-router": "7.18.1",
42
+ "react-use": "17.6.1",
43
+ "type-fest": "5.6.0",
44
+ "zustand": "5.0.3"
45
+ },
46
+ "devDependencies": {
47
+ "@commitlint/cli": "17.6.1",
48
+ "@commitlint/config-conventional": "17.6.1",
49
+ "@commitlint/cz-commitlint": "17.5.0",
50
+ "@eslint/js": "9.15.0",
51
+ "@rsbuild/core": "2.0.5",
52
+ "@rsbuild/plugin-eslint": "1.3.0",
53
+ "@rsbuild/plugin-react": "2.0.0",
54
+ "@rsbuild/plugin-svgr": "2.0.2",
55
+ "@rsbuild/plugin-type-check": "1.3.4",
56
+ "@rsdoctor/rspack-plugin": "1.5.10",
57
+ "@tailwindcss/postcss": "4.1.4",
58
+ "@types/node": "20.19.0",
59
+ "@types/qs": "6.9.7",
60
+ "@types/react": "19.2.18",
61
+ "@types/react-dom": "19.2.4",
62
+ "autoprefixer": "10.4.14",
63
+ "commitizen": "4.3.0",
64
+ "concurrently": "9.2.1",
65
+ "cross-env": "7.0.3",
66
+ "cssnano": "6.0.0",
67
+ "electron": "38.1.2",
68
+ "electron-builder": "26.0.12",
69
+ "eslint": "9.17.0",
70
+ "eslint-import-resolver-typescript": "4.4.4",
71
+ "eslint-plugin-import": "2.31.0",
72
+ "eslint-plugin-react": "7.37.2",
73
+ "eslint-plugin-react-hooks": "5.1.0",
74
+ "globals": "15.12.0",
75
+ "husky": "9.1.6",
76
+ "postcss": "8.4.35",
77
+ "postcss-import": "16.0.1",
78
+ "postcss-nesting": "12.0.3",
79
+ "postcss-styled-syntax": "0.6.4",
80
+ "prettier": "3.2.5",
81
+ "stylelint": "16.10.0",
82
+ "stylelint-config-standard": "36.0.1",
83
+ "stylelint-webpack-plugin": "5.0.0",
84
+ "typescript": "6.0.3"
85
+ },
86
+ "config": {
87
+ "commitizen": {
88
+ "path": "@commitlint/cz-commitlint"
89
+ }
90
+ }
91
+ }
@@ -1,85 +1,85 @@
1
- {
2
- "name": "renderer",
3
- "private": true,
4
- "version": "0.0.0",
5
- "main": "dist/main/main.js",
6
- "scripts": {
7
- "prepare": "husky",
8
- "start": "electron .",
9
- "dev": "pnpm clean && concurrently \"pnpm dev:preload\" \"pnpm dev:renderer\" \"pnpm dev:main\"",
10
- "dev:renderer": "rsbuild dev -c ./configs/rsbuild.renderer.config.ts",
11
- "dev:preload": "rsbuild dev -c ./configs/rsbuild.preload.config.ts",
12
- "dev:main": "rsbuild dev -c ./configs/rsbuild.main.config.ts",
13
- "build": "pnpm clean && pnpm build:preload && pnpm build:renderer && pnpm build:main",
14
- "build:renderer": "rsbuild build -c ./configs/rsbuild.renderer.config.ts",
15
- "build:preload": "rsbuild build -c ./configs/rsbuild.preload.config.ts",
16
- "build:main": "rsbuild build -c ./configs/rsbuild.main.config.ts",
17
- "build:analyse": "rsbuild build --env-mode analyse",
18
- "build:rsdoctor": "cross-env RSDOCTOR=true rsbuild build",
19
- "package": "rimraf build && electron-builder -c ./build.config.js",
20
- "clean": "rimraf dist",
21
- "preview": "rsbuild preview",
22
- "up:rsbuild": "pnpm up @rsbuild/* -L",
23
- "format": "prettier -- \"**/*.{vue,ts,js,tsx,jsx,json,css,scss,less}\"",
24
- "lint": "vue-tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less}",
25
- "lint:fix": "eslint --fix && stylelint **/*.{css,scss,less} --fix",
26
- "cz": "cz",
27
- "push": "npm run commit && git push",
28
- "commit": "git add . && npm run cz",
29
- "up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L"
30
- },
31
- "dependencies": {
32
- "axios": "1.16.0",
33
- "electron-debug": "4.1.0",
34
- "es-toolkit": "1.46.1",
35
- "pinia": "3.0.4",
36
- "tailwindcss": "4.1.4",
37
- "type-fest": "5.6.0",
38
- "vue": "3.5.20",
39
- "vue-router": "4.5.1"
40
- },
41
- "devDependencies": {
42
- "@commitlint/cli": "17.6.1",
43
- "@commitlint/config-conventional": "17.6.1",
44
- "@commitlint/cz-commitlint": "17.5.0",
45
- "@eslint/js": "9.15.0",
46
- "@rsbuild/core": "2.0.5",
47
- "@rsbuild/plugin-eslint": "1.3.0",
48
- "@rsbuild/plugin-type-check": "1.3.4",
49
- "@rsbuild/plugin-vue": "1.2.8",
50
- "@rsdoctor/rspack-plugin": "1.5.10",
51
- "@tailwindcss/postcss": "4.1.4",
52
- "@types/node": "20.19.0",
53
- "@types/qs": "6.9.7",
54
- "@types/react": "18.3.31",
55
- "@types/react-dom": "18.3.7",
56
- "autoprefixer": "10.4.14",
57
- "commitizen": "4.3.0",
58
- "concurrently": "9.2.1",
59
- "cross-env": "7.0.3",
60
- "cssnano": "6.0.0",
61
- "electron": "38.1.2",
62
- "electron-builder": "26.0.12",
63
- "eslint": "9.17.0",
64
- "eslint-import-resolver-typescript": "4.4.4",
65
- "eslint-plugin-import": "2.31.0",
66
- "eslint-plugin-vue": "9.32.0",
67
- "globals": "15.12.0",
68
- "husky": "9.1.6",
69
- "postcss": "8.4.35",
70
- "postcss-import": "16.0.1",
71
- "postcss-nesting": "12.0.3",
72
- "postcss-styled-syntax": "0.6.4",
73
- "prettier": "3.2.5",
74
- "stylelint": "16.10.0",
75
- "stylelint-config-standard": "36.0.1",
76
- "stylelint-webpack-plugin": "5.0.0",
77
- "typescript": "6.0.3",
78
- "vue-tsc": "3.0.6"
79
- },
80
- "config": {
81
- "commitizen": {
82
- "path": "@commitlint/cz-commitlint"
83
- }
84
- }
85
- }
1
+ {
2
+ "name": "renderer",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "main": "dist/main/main.js",
6
+ "scripts": {
7
+ "prepare": "husky",
8
+ "start": "electron .",
9
+ "dev": "pnpm clean && concurrently \"pnpm dev:preload\" \"pnpm dev:renderer\" \"pnpm dev:main\"",
10
+ "dev:renderer": "rsbuild dev -c ./configs/rsbuild.renderer.config.ts",
11
+ "dev:preload": "rsbuild dev -c ./configs/rsbuild.preload.config.ts",
12
+ "dev:main": "rsbuild dev -c ./configs/rsbuild.main.config.ts",
13
+ "build": "pnpm clean && pnpm build:preload && pnpm build:renderer && pnpm build:main",
14
+ "build:renderer": "rsbuild build -c ./configs/rsbuild.renderer.config.ts",
15
+ "build:preload": "rsbuild build -c ./configs/rsbuild.preload.config.ts",
16
+ "build:main": "rsbuild build -c ./configs/rsbuild.main.config.ts",
17
+ "build:analyse": "rsbuild build --env-mode analyse",
18
+ "build:rsdoctor": "cross-env RSDOCTOR=true rsbuild build",
19
+ "package": "rimraf build && electron-builder -c ./build.config.js",
20
+ "clean": "rimraf dist",
21
+ "preview": "rsbuild preview",
22
+ "up:rsbuild": "pnpm up @rsbuild/* -L",
23
+ "format": "prettier -- \"**/*.{vue,ts,js,tsx,jsx,json,css,scss,less}\"",
24
+ "lint": "vue-tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less}",
25
+ "lint:fix": "eslint --fix && stylelint **/*.{css,scss,less} --fix",
26
+ "cz": "cz",
27
+ "push": "npm run commit && git push",
28
+ "commit": "git add . && npm run cz",
29
+ "up:vite": "pnpm up vite @vitejs/* vite-plugin-* -L"
30
+ },
31
+ "dependencies": {
32
+ "axios": "1.16.0",
33
+ "electron-debug": "4.1.0",
34
+ "es-toolkit": "1.46.1",
35
+ "pinia": "3.0.4",
36
+ "tailwindcss": "4.1.4",
37
+ "type-fest": "5.6.0",
38
+ "vue": "3.5.20",
39
+ "vue-router": "4.5.1"
40
+ },
41
+ "devDependencies": {
42
+ "@commitlint/cli": "17.6.1",
43
+ "@commitlint/config-conventional": "17.6.1",
44
+ "@commitlint/cz-commitlint": "17.5.0",
45
+ "@eslint/js": "9.15.0",
46
+ "@rsbuild/core": "2.0.5",
47
+ "@rsbuild/plugin-eslint": "1.3.0",
48
+ "@rsbuild/plugin-type-check": "1.3.4",
49
+ "@rsbuild/plugin-vue": "1.2.8",
50
+ "@rsdoctor/rspack-plugin": "1.5.10",
51
+ "@tailwindcss/postcss": "4.1.4",
52
+ "@types/node": "20.19.0",
53
+ "@types/qs": "6.9.7",
54
+ "@types/react": "19.2.18",
55
+ "@types/react-dom": "19.2.4",
56
+ "autoprefixer": "10.4.14",
57
+ "commitizen": "4.3.0",
58
+ "concurrently": "9.2.1",
59
+ "cross-env": "7.0.3",
60
+ "cssnano": "6.0.0",
61
+ "electron": "38.1.2",
62
+ "electron-builder": "26.0.12",
63
+ "eslint": "9.17.0",
64
+ "eslint-import-resolver-typescript": "4.4.4",
65
+ "eslint-plugin-import": "2.31.0",
66
+ "eslint-plugin-vue": "9.32.0",
67
+ "globals": "15.12.0",
68
+ "husky": "9.1.6",
69
+ "postcss": "8.4.35",
70
+ "postcss-import": "16.0.1",
71
+ "postcss-nesting": "12.0.3",
72
+ "postcss-styled-syntax": "0.6.4",
73
+ "prettier": "3.2.5",
74
+ "stylelint": "16.10.0",
75
+ "stylelint-config-standard": "36.0.1",
76
+ "stylelint-webpack-plugin": "5.0.0",
77
+ "typescript": "6.0.3",
78
+ "vue-tsc": "3.0.6"
79
+ },
80
+ "config": {
81
+ "commitizen": {
82
+ "path": "@commitlint/cz-commitlint"
83
+ }
84
+ }
85
+ }
@@ -36,6 +36,8 @@
36
36
  "@commitlint/config-conventional": "17.6.6",
37
37
  "@commitlint/cz-commitlint": "17.5.0",
38
38
  "commitizen": "4.3.0",
39
+ "react": "^19.2.8",
40
+ "react-dom": "^19.2.8",
39
41
  "rimraf": "5.0.1"
40
42
  },
41
43
  "devDependencies": {
@@ -46,6 +48,8 @@
46
48
  "@svgr/rollup": "8.1.0",
47
49
  "@tsdown/css": "0.22.13",
48
50
  "@types/node": "20.19.0",
51
+ "@types/react": "^19.2.18",
52
+ "@types/react-dom": "^19.2.4",
49
53
  "autoprefixer": "10.5.4",
50
54
  "chalk": "5.6.2",
51
55
  "cssnano": "8.0.2",
@@ -1,37 +1,37 @@
1
- {
2
- "name": "react-lib",
3
- "version": "1.0.0",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "sideEffects": [
8
- "*.css",
9
- "*.scss"
10
- ],
11
- "scripts": {
12
- "lint": "tsc --noEmit",
13
- "test": "echo \"Error: no test specified\" && exit 1",
14
- "storybook": "storybook dev -p 6006",
15
- "build-storybook": "storybook build",
16
- "up:storybook": "pnpm up storybook eslint-plugin-storybook @storybook/* -L"
17
- },
18
- "files": [
19
- "dist"
20
- ],
21
- "keywords": [],
22
- "author": "",
23
- "license": "ISC",
24
- "peerDependencies": {
25
- "react": "18.2.0",
26
- "react-dom": "18.2.0"
27
- },
28
- "devDependencies": {
29
- "@types/react": "18.3.3",
30
- "@types/react-dom": "18.3.0",
31
- "globals": "15.12.0",
32
- "prettier": "3.2.5",
33
- "react": "18.2.0",
34
- "react-dom": "18.2.0",
35
- "typescript": "6.0.3"
36
- }
37
- }
1
+ {
2
+ "name": "react-lib",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "sideEffects": [
8
+ "*.css",
9
+ "*.scss"
10
+ ],
11
+ "scripts": {
12
+ "lint": "tsc --noEmit",
13
+ "test": "echo \"Error: no test specified\" && exit 1",
14
+ "storybook": "storybook dev -p 6006",
15
+ "build-storybook": "storybook build",
16
+ "up:storybook": "pnpm up storybook eslint-plugin-storybook @storybook/* -L"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "keywords": [],
22
+ "author": "",
23
+ "license": "ISC",
24
+ "peerDependencies": {
25
+ "react": "18.2.0",
26
+ "react-dom": "18.2.0"
27
+ },
28
+ "devDependencies": {
29
+ "@types/react": "19.2.18",
30
+ "@types/react-dom": "19.2.4",
31
+ "globals": "15.12.0",
32
+ "prettier": "3.2.5",
33
+ "react": "19.2.8",
34
+ "react-dom": "19.2.8",
35
+ "typescript": "6.0.3"
36
+ }
37
+ }
@@ -1,79 +1,79 @@
1
- {
2
- "name": "react-rsbuild",
3
- "private": true,
4
- "version": "0.0.0",
5
- "type": "module",
6
- "scripts": {
7
- "prepare": "husky",
8
- "dev": "rsbuild dev",
9
- "build": "rsbuild build",
10
- "build-rsdoctor": "cross-env RSDOCTOR=true rsbuild build",
11
- "preview": "rsbuild preview",
12
- "up-rsbuild": "pnpm up @rsbuild/* -L",
13
- "up-tailwind": "pnpm up tailwindcss @tailwindcss/* -L",
14
- "up-react": "pnpm up react react-dom -L",
15
- "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
16
- "lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
17
- "lint-fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
18
- "cz": "cz",
19
- "push": "npm run commit && git push",
20
- "commit": "git add . && npm run cz"
21
- },
22
- "dependencies": {
23
- "@tanstack/react-query": "5.51.15",
24
- "axios": "1.16.0",
25
- "define-zustand": "4.0.2",
26
- "es-toolkit": "1.46.1",
27
- "immer": "10.0.1",
28
- "qs": "6.11.2",
29
- "react": "18.3.1",
30
- "react-dom": "18.3.1",
31
- "react-router": "7.5.0",
32
- "react-use": "17.5.0",
33
- "tailwindcss": "4.1.4",
34
- "type-fest": "5.6.0",
35
- "zustand": "5.0.3"
36
- },
37
- "devDependencies": {
38
- "@commitlint/cli": "17.6.1",
39
- "@commitlint/config-conventional": "17.6.1",
40
- "@commitlint/cz-commitlint": "17.5.0",
41
- "@eslint/js": "9.15.0",
42
- "@rsbuild/core": "2.0.5",
43
- "@rsbuild/plugin-eslint": "1.3.0",
44
- "@rsbuild/plugin-react": "2.0.0",
45
- "@rsbuild/plugin-svgr": "2.0.2",
46
- "@rsbuild/plugin-type-check": "1.3.4",
47
- "@rsdoctor/rspack-plugin": "1.5.10",
48
- "@tailwindcss/postcss": "4.1.4",
49
- "@types/node": "18.16.0",
50
- "@types/qs": "6.9.7",
51
- "@types/react": "18.3.3",
52
- "@types/react-dom": "18.3.0",
53
- "autoprefixer": "10.4.14",
54
- "commitizen": "4.3.0",
55
- "cross-env": "7.0.3",
56
- "cssnano": "6.0.0",
57
- "eslint": "9.17.0",
58
- "eslint-import-resolver-typescript": "4.4.4",
59
- "eslint-plugin-import": "2.31.0",
60
- "eslint-plugin-react": "7.37.2",
61
- "eslint-plugin-react-hooks": "5.1.0",
62
- "globals": "15.12.0",
63
- "husky": "9.1.6",
64
- "postcss": "8.4.35",
65
- "postcss-import": "16.0.1",
66
- "postcss-nesting": "12.0.3",
67
- "postcss-styled-syntax": "0.6.4",
68
- "prettier": "3.2.5",
69
- "stylelint": "16.10.0",
70
- "stylelint-config-standard": "36.0.1",
71
- "stylelint-webpack-plugin": "5.0.0",
72
- "typescript": "6.0.3"
73
- },
74
- "config": {
75
- "commitizen": {
76
- "path": "@commitlint/cz-commitlint"
77
- }
78
- }
79
- }
1
+ {
2
+ "name": "react-rsbuild",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "prepare": "husky",
8
+ "dev": "rsbuild dev",
9
+ "build": "rsbuild build",
10
+ "build-rsdoctor": "cross-env RSDOCTOR=true rsbuild build",
11
+ "preview": "rsbuild preview",
12
+ "up-rsbuild": "pnpm up @rsbuild/* -L",
13
+ "up-tailwind": "pnpm up tailwindcss @tailwindcss/* -L",
14
+ "up-react": "pnpm up react react-dom -L",
15
+ "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
16
+ "lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
17
+ "lint-fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
18
+ "cz": "cz",
19
+ "push": "npm run commit && git push",
20
+ "commit": "git add . && npm run cz"
21
+ },
22
+ "dependencies": {
23
+ "@tanstack/react-query": "5.51.15",
24
+ "axios": "1.16.0",
25
+ "define-zustand": "4.0.2",
26
+ "es-toolkit": "1.46.1",
27
+ "immer": "10.0.1",
28
+ "qs": "6.11.2",
29
+ "react": "19.2.8",
30
+ "react-dom": "19.2.8",
31
+ "react-router": "7.5.0",
32
+ "react-use": "17.6.1",
33
+ "tailwindcss": "4.1.4",
34
+ "type-fest": "5.6.0",
35
+ "zustand": "5.0.3"
36
+ },
37
+ "devDependencies": {
38
+ "@commitlint/cli": "17.6.1",
39
+ "@commitlint/config-conventional": "17.6.1",
40
+ "@commitlint/cz-commitlint": "17.5.0",
41
+ "@eslint/js": "9.15.0",
42
+ "@rsbuild/core": "2.0.5",
43
+ "@rsbuild/plugin-eslint": "1.3.0",
44
+ "@rsbuild/plugin-react": "2.0.0",
45
+ "@rsbuild/plugin-svgr": "2.0.2",
46
+ "@rsbuild/plugin-type-check": "1.3.4",
47
+ "@rsdoctor/rspack-plugin": "1.5.10",
48
+ "@tailwindcss/postcss": "4.1.4",
49
+ "@types/node": "18.16.0",
50
+ "@types/qs": "6.9.7",
51
+ "@types/react": "19.2.18",
52
+ "@types/react-dom": "19.2.4",
53
+ "autoprefixer": "10.4.14",
54
+ "commitizen": "4.3.0",
55
+ "cross-env": "7.0.3",
56
+ "cssnano": "6.0.0",
57
+ "eslint": "9.17.0",
58
+ "eslint-import-resolver-typescript": "4.4.4",
59
+ "eslint-plugin-import": "2.31.0",
60
+ "eslint-plugin-react": "7.37.2",
61
+ "eslint-plugin-react-hooks": "5.1.0",
62
+ "globals": "15.12.0",
63
+ "husky": "9.1.6",
64
+ "postcss": "8.4.35",
65
+ "postcss-import": "16.0.1",
66
+ "postcss-nesting": "12.0.3",
67
+ "postcss-styled-syntax": "0.6.4",
68
+ "prettier": "3.2.5",
69
+ "stylelint": "16.10.0",
70
+ "stylelint-config-standard": "36.0.1",
71
+ "stylelint-webpack-plugin": "5.0.0",
72
+ "typescript": "6.0.3"
73
+ },
74
+ "config": {
75
+ "commitizen": {
76
+ "path": "@commitlint/cz-commitlint"
77
+ }
78
+ }
79
+ }
@@ -1,4 +1,4 @@
1
- import { RefObject, startTransition, useEffect, useRef } from 'react'
1
+ import { RefObject, useEffect, useRef } from 'react'
2
2
  import { useIntersection } from 'react-use'
3
3
  import { useSyncState } from './useSyncState'
4
4
 
@@ -8,11 +8,14 @@ interface optionsType extends IntersectionObserverInit {
8
8
  }
9
9
  export function useLazyRender(ref: RefObject<HTMLElement>, options: optionsType) {
10
10
  const emptyRef = useRef(null)
11
- const intersection = useIntersection(options.isClose ? emptyRef : ref, {
12
- root: options.root,
13
- rootMargin: options.rootMargin,
14
- threshold: options.threshold
15
- })
11
+ const intersection = useIntersection(
12
+ (options.isClose ? emptyRef : ref) as RefObject<HTMLElement>,
13
+ {
14
+ root: options.root,
15
+ rootMargin: options.rootMargin,
16
+ threshold: options.threshold
17
+ }
18
+ )
16
19
  const [isRenderRef, isRender, setIsRender] = useSyncState(false)
17
20
 
18
21
  useEffect(() => {
@@ -1,79 +1,79 @@
1
- {
2
- "name": "react-vite",
3
- "private": true,
4
- "version": "0.0.0",
5
- "type": "module",
6
- "scripts": {
7
- "prepare": "husky",
8
- "dev": "vite",
9
- "build": "tsc --noEmit && vite build",
10
- "build-analyse": "tsc --noEmit && vite build --mode analyse",
11
- "preview": "vite preview",
12
- "up-vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
13
- "up-tailwind": "pnpm up tailwindcss @tailwindcss/* -L",
14
- "up-react": "pnpm up react react-dom -L",
15
- "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
16
- "lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
17
- "lint-fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
18
- "cz": "cz",
19
- "push": "npm run commit && git push",
20
- "commit": "git add . && npm run cz"
21
- },
22
- "dependencies": {
23
- "@tanstack/react-query": "5.51.15",
24
- "axios": "1.16.0",
25
- "define-zustand": "4.0.2",
26
- "es-toolkit": "1.46.1",
27
- "immer": "10.0.1",
28
- "qs": "6.11.2",
29
- "react": "18.3.1",
30
- "react-dom": "18.3.1",
31
- "react-router": "7.13.2",
32
- "react-use": "17.5.0",
33
- "tailwindcss": "4.1.4",
34
- "type-fest": "5.6.0",
35
- "zustand": "5.0.3"
36
- },
37
- "devDependencies": {
38
- "@commitlint/cli": "17.6.1",
39
- "@commitlint/config-conventional": "17.6.1",
40
- "@commitlint/cz-commitlint": "17.5.0",
41
- "@eslint/js": "9.15.0",
42
- "@faker-js/faker": "8.4.1",
43
- "@tailwindcss/vite": "^4.1.18",
44
- "@types/node": "18.16.0",
45
- "@types/qs": "6.9.7",
46
- "@types/react": "18.3.3",
47
- "@types/react-dom": "18.3.0",
48
- "@vitejs/plugin-react": "6.0.1",
49
- "autoprefixer": "10.4.14",
50
- "commitizen": "4.3.0",
51
- "cssnano": "6.0.0",
52
- "eslint": "9.17.0",
53
- "eslint-import-resolver-typescript": "4.4.4",
54
- "eslint-plugin-import": "2.31.0",
55
- "eslint-plugin-react": "7.37.2",
56
- "eslint-plugin-react-hooks": "5.1.0",
57
- "globals": "15.12.0",
58
- "husky": "9.1.6",
59
- "inquirer": "8.1.2",
60
- "postcss": "8.4.35",
61
- "postcss-import": "16.0.1",
62
- "postcss-nesting": "12.0.3",
63
- "prettier": "3.2.5",
64
- "rollup-plugin-visualizer": "5.12.0",
65
- "stylelint": "16.10.0",
66
- "stylelint-config-standard": "36.0.1",
67
- "typescript": "6.0.3",
68
- "typescript-eslint": "8.59.2",
69
- "vite": "8.0.11",
70
- "vite-plugin-checker": "0.13.0",
71
- "vite-plugin-mock-dev-server": "2.2.0",
72
- "vite-plugin-svgr": "5.2.0"
73
- },
74
- "config": {
75
- "commitizen": {
76
- "path": "@commitlint/cz-commitlint"
77
- }
78
- }
79
- }
1
+ {
2
+ "name": "react-vite",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "prepare": "husky",
8
+ "dev": "vite",
9
+ "build": "tsc --noEmit && vite build",
10
+ "build-analyse": "tsc --noEmit && vite build --mode analyse",
11
+ "preview": "vite preview",
12
+ "up-vite": "pnpm up vite @vitejs/* vite-plugin-* -L",
13
+ "up-tailwind": "pnpm up tailwindcss @tailwindcss/* -L",
14
+ "up-react": "pnpm up react react-dom @types/react @types/react-dom -L",
15
+ "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
16
+ "lint": "tsc --noEmit && eslint --no-error-on-unmatched-pattern && stylelint **/*.{css,scss,less,ts,tsx}",
17
+ "lint-fix": "eslint --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
18
+ "cz": "cz",
19
+ "push": "npm run commit && git push",
20
+ "commit": "git add . && npm run cz"
21
+ },
22
+ "dependencies": {
23
+ "@tanstack/react-query": "5.51.15",
24
+ "axios": "1.16.0",
25
+ "define-zustand": "4.0.2",
26
+ "es-toolkit": "1.46.1",
27
+ "immer": "10.0.1",
28
+ "qs": "6.11.2",
29
+ "react": "19.2.8",
30
+ "react-dom": "19.2.8",
31
+ "react-router": "8.3.0",
32
+ "react-use": "17.6.1",
33
+ "tailwindcss": "4.1.4",
34
+ "type-fest": "5.6.0",
35
+ "zustand": "5.0.3"
36
+ },
37
+ "devDependencies": {
38
+ "@commitlint/cli": "17.6.1",
39
+ "@commitlint/config-conventional": "17.6.1",
40
+ "@commitlint/cz-commitlint": "17.5.0",
41
+ "@eslint/js": "9.15.0",
42
+ "@faker-js/faker": "8.4.1",
43
+ "@tailwindcss/vite": "^4.1.18",
44
+ "@types/node": "18.16.0",
45
+ "@types/qs": "6.9.7",
46
+ "@types/react": "19.2.18",
47
+ "@types/react-dom": "19.2.4",
48
+ "@vitejs/plugin-react": "6.0.1",
49
+ "autoprefixer": "10.4.14",
50
+ "commitizen": "4.3.0",
51
+ "cssnano": "6.0.0",
52
+ "eslint": "9.17.0",
53
+ "eslint-import-resolver-typescript": "4.4.4",
54
+ "eslint-plugin-import": "2.31.0",
55
+ "eslint-plugin-react": "7.37.2",
56
+ "eslint-plugin-react-hooks": "5.1.0",
57
+ "globals": "15.12.0",
58
+ "husky": "9.1.6",
59
+ "inquirer": "8.1.2",
60
+ "postcss": "8.4.35",
61
+ "postcss-import": "16.0.1",
62
+ "postcss-nesting": "12.0.3",
63
+ "prettier": "3.2.5",
64
+ "rollup-plugin-visualizer": "5.12.0",
65
+ "stylelint": "16.10.0",
66
+ "stylelint-config-standard": "36.0.1",
67
+ "typescript": "6.0.3",
68
+ "typescript-eslint": "8.59.2",
69
+ "vite": "8.0.11",
70
+ "vite-plugin-checker": "0.13.0",
71
+ "vite-plugin-mock-dev-server": "2.2.0",
72
+ "vite-plugin-svgr": "5.2.0"
73
+ },
74
+ "config": {
75
+ "commitizen": {
76
+ "path": "@commitlint/cz-commitlint"
77
+ }
78
+ }
79
+ }
@@ -8,11 +8,14 @@ interface optionsType extends IntersectionObserverInit {
8
8
  }
9
9
  export function useLazyRender(ref: RefObject<HTMLElement>, options: optionsType) {
10
10
  const emptyRef = useRef(null)
11
- const intersection = useIntersection(options.isClose ? emptyRef : ref, {
12
- root: options.root,
13
- rootMargin: options.rootMargin,
14
- threshold: options.threshold
15
- })
11
+ const intersection = useIntersection(
12
+ (options.isClose ? emptyRef : ref) as RefObject<HTMLElement>,
13
+ {
14
+ root: options.root,
15
+ rootMargin: options.rootMargin,
16
+ threshold: options.threshold
17
+ }
18
+ )
16
19
  const [isRenderRef, isRender, setIsRender] = useSyncState(false)
17
20
 
18
21
  useEffect(() => {
@@ -1,85 +1,85 @@
1
- {
2
- "name": "web-extension",
3
- "private": true,
4
- "version": "0.0.0",
5
- "type": "module",
6
- "scripts": {
7
- "prepare": "husky",
8
- "dev": "wxt",
9
- "dev:firefox": "wxt -b firefox",
10
- "build": "wxt build",
11
- "build_dev": "wxt build --mode dev",
12
- "build:firefox": "wxt build -b firefox",
13
- "build_dev:firefox": "wxt build -b firefox --mode dev",
14
- "zip": "wxt zip",
15
- "zip_dev": "wxt zip --mode dev",
16
- "zip:firefox": "wxt zip -b firefox",
17
- "zip_dev:firefox": "wxt zip -b firefox --mode dev",
18
- "postinstall": "wxt prepare",
19
- "up:vite": "pnpm up vite @vitejs/* -L",
20
- "up:wxt": "pnpm up wxt @webext-core/* -L",
21
- "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
22
- "lint": "tsc --noEmit && eslint **/*.{tsx,ts} && stylelint **/*.{css,scss,less,ts,tsx}",
23
- "lint:fix": "eslint **/*.{tsx,ts} --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
24
- "cz": "cz",
25
- "push": "npm run commit && git push",
26
- "commit": "git add . && npm run cz"
27
- },
28
- "dependencies": {
29
- "@tanstack/react-query": "5.51.15",
30
- "@webext-core/messaging": "2.3.0",
31
- "axios": "1.16.0",
32
- "define-zustand": "4.0.2",
33
- "es-toolkit": "1.46.1",
34
- "immer": "10.0.1",
35
- "qs": "6.11.2",
36
- "react": "18.3.1",
37
- "react-dom": "18.3.1",
38
- "styled-components": "6.2.0",
39
- "type-fest": "5.6.0",
40
- "zustand": "5.0.3"
41
- },
42
- "devDependencies": {
43
- "@commitlint/cli": "17.6.1",
44
- "@commitlint/config-conventional": "17.6.1",
45
- "@commitlint/cz-commitlint": "17.5.0",
46
- "@eslint/js": "9.15.0",
47
- "@types/chrome": "0.0.254",
48
- "@types/node": "18.16.0",
49
- "@types/qs": "6.9.7",
50
- "@types/react": "18.3.3",
51
- "@types/react-dom": "18.3.0",
52
- "@vitejs/plugin-react": "6.0.1",
53
- "autoprefixer": "10.4.14",
54
- "commitizen": "4.3.0",
55
- "cssnano": "6.0.0",
56
- "eslint": "9.17.0",
57
- "eslint-import-resolver-typescript": "4.4.4",
58
- "eslint-plugin-import": "2.31.0",
59
- "eslint-plugin-react": "7.37.2",
60
- "eslint-plugin-react-hooks": "5.1.0",
61
- "globals": "15.12.0",
62
- "husky": "9.1.6",
63
- "inquirer": "8.1.2",
64
- "postcss": "8.4.31",
65
- "postcss-import": "15.1.0",
66
- "postcss-nesting": "11.2.2",
67
- "postcss-scss": "4.0.9",
68
- "postcss-styled-syntax": "0.6.4",
69
- "prettier": "3.2.5",
70
- "rimraf": "5.0.1",
71
- "sass": "1.97.1",
72
- "stylelint": "16.10.0",
73
- "stylelint-config-standard": "36.0.1",
74
- "typescript": "6.0.3",
75
- "typescript-eslint": "8.59.2",
76
- "vite": "8.0.11",
77
- "vite-plugin-svgr": "5.2.0",
78
- "wxt": "0.20.20"
79
- },
80
- "config": {
81
- "commitizen": {
82
- "path": "@commitlint/cz-commitlint"
83
- }
84
- }
85
- }
1
+ {
2
+ "name": "web-extension",
3
+ "private": true,
4
+ "version": "0.0.0",
5
+ "type": "module",
6
+ "scripts": {
7
+ "prepare": "husky",
8
+ "dev": "wxt",
9
+ "dev:firefox": "wxt -b firefox",
10
+ "build": "wxt build",
11
+ "build_dev": "wxt build --mode dev",
12
+ "build:firefox": "wxt build -b firefox",
13
+ "build_dev:firefox": "wxt build -b firefox --mode dev",
14
+ "zip": "wxt zip",
15
+ "zip_dev": "wxt zip --mode dev",
16
+ "zip:firefox": "wxt zip -b firefox",
17
+ "zip_dev:firefox": "wxt zip -b firefox --mode dev",
18
+ "postinstall": "wxt prepare",
19
+ "up:vite": "pnpm up vite @vitejs/* -L",
20
+ "up:wxt": "pnpm up wxt @webext-core/* -L",
21
+ "format": "prettier --write \"**/*.{ts,js,tsx,jsx,json,css,scss,less}\"",
22
+ "lint": "tsc --noEmit && eslint **/*.{tsx,ts} && stylelint **/*.{css,scss,less,ts,tsx}",
23
+ "lint:fix": "eslint **/*.{tsx,ts} --fix && stylelint **/*.{css,scss,less,ts,tsx} --fix",
24
+ "cz": "cz",
25
+ "push": "npm run commit && git push",
26
+ "commit": "git add . && npm run cz"
27
+ },
28
+ "dependencies": {
29
+ "@tanstack/react-query": "5.51.15",
30
+ "@webext-core/messaging": "2.3.0",
31
+ "axios": "1.16.0",
32
+ "define-zustand": "4.0.2",
33
+ "es-toolkit": "1.46.1",
34
+ "immer": "10.0.1",
35
+ "qs": "6.11.2",
36
+ "react": "19.2.8",
37
+ "react-dom": "19.2.8",
38
+ "styled-components": "6.2.0",
39
+ "type-fest": "5.6.0",
40
+ "zustand": "5.0.3"
41
+ },
42
+ "devDependencies": {
43
+ "@commitlint/cli": "17.6.1",
44
+ "@commitlint/config-conventional": "17.6.1",
45
+ "@commitlint/cz-commitlint": "17.5.0",
46
+ "@eslint/js": "9.15.0",
47
+ "@types/chrome": "0.0.254",
48
+ "@types/node": "18.16.0",
49
+ "@types/qs": "6.9.7",
50
+ "@types/react": "19.2.18",
51
+ "@types/react-dom": "19.2.4",
52
+ "@vitejs/plugin-react": "6.0.1",
53
+ "autoprefixer": "10.4.14",
54
+ "commitizen": "4.3.0",
55
+ "cssnano": "6.0.0",
56
+ "eslint": "9.17.0",
57
+ "eslint-import-resolver-typescript": "4.4.4",
58
+ "eslint-plugin-import": "2.31.0",
59
+ "eslint-plugin-react": "7.37.2",
60
+ "eslint-plugin-react-hooks": "5.1.0",
61
+ "globals": "15.12.0",
62
+ "husky": "9.1.6",
63
+ "inquirer": "8.1.2",
64
+ "postcss": "8.4.31",
65
+ "postcss-import": "15.1.0",
66
+ "postcss-nesting": "11.2.2",
67
+ "postcss-scss": "4.0.9",
68
+ "postcss-styled-syntax": "0.6.4",
69
+ "prettier": "3.2.5",
70
+ "rimraf": "5.0.1",
71
+ "sass": "1.97.1",
72
+ "stylelint": "16.10.0",
73
+ "stylelint-config-standard": "36.0.1",
74
+ "typescript": "6.0.3",
75
+ "typescript-eslint": "8.59.2",
76
+ "vite": "8.0.11",
77
+ "vite-plugin-svgr": "5.2.0",
78
+ "wxt": "0.20.20"
79
+ },
80
+ "config": {
81
+ "commitizen": {
82
+ "path": "@commitlint/cz-commitlint"
83
+ }
84
+ }
85
+ }