-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
127 lines (127 loc) · 3.56 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
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "svelte-preprocess-react",
"description": "Seamlessly use React components inside a Svelte app",
"keywords": [
"svelte",
"react",
"interoperability"
],
"repository": {
"type": "git",
"url": "https://github.com/bfanger/svelte-preprocess-react.git"
},
"version": "2.0.5",
"license": "MIT",
"type": "module",
"scripts": {
"dev": "vite dev",
"dev:preprocess": "echo 'src/lib/preprocessReact.js' | entr -rn npm run dev",
"build": "vite build",
"preview": "vite preview",
"package": "svelte-package",
"lint": "concurrently -c \"#c596c7\",\"#676778\",\"#7c7cea\" --kill-others-on-fail \"npm:lint:*\"",
"lint:prettier": "prettier --check \"src/**/*.svelte\"",
"lint:svelte-check": "svelte-check --fail-on-warnings",
"lint:eslint": "eslint --max-warnings=0 src",
"format": "eslint --fix src && prettier --write .",
"test": "concurrently -c \"#fcc72a\",\"#45ba4b\" --kill-others-on-fail \"npm:test:*\"",
"test:vitest": "vitest run",
"test:playwright": "playwright test",
"vitest:watch": "vitest watch",
"preinstall": "npx only-allow pnpm",
"prepublishOnly": "npm run package",
"prepare": "husky || true"
},
"lint-staged": {
"*.{ts,svelte}": [
"svelte-check --fail-on-warnings"
],
"*.{ts,svelte,js,cjs,mjs}": [
"eslint --max-warnings 0 --no-ignore"
],
"*.{ts,js,svelte,css,scss,json,html}": [
"prettier --check"
]
},
"devDependencies": {
"@playwright/test": "^1.49.0",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.8.2",
"@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "4.0.1",
"@testing-library/react": "^16.0.1",
"@testing-library/svelte": "^5.2.6",
"@types/node": "^22.9.3",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"autoprefixer": "^10.4.20",
"concurrently": "^9.1.0",
"eslint": "9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-svelte": "^2.46.0",
"globals": "^15.12.0",
"happy-dom": "^15.11.6",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"postcss": "^8.4.49",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.3.2",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-youtube": "^10.1.0",
"svelte": "5.2.7",
"svelte-check": "^4.1.0",
"svelte-youtube-lite": "~1.2.1",
"svelte2tsx": "^0.7.28",
"typescript": "^5.7.2",
"typescript-eslint": "^8.15.0",
"vite": "^5.4.11",
"vite-tsconfig-paths": "^5.1.3",
"vitest": "^2.1.5"
},
"dependencies": {
"estree-walker": "^3.0.3",
"magic-string": "^0.30.13"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"svelte": ">=5.0.0"
},
"svelte": "./dist/index.js",
"files": [
"./dist"
],
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"svelte": "./dist/index.js",
"default": "./dist/index.js"
},
"./preprocessReact": {
"types": "./dist/preprocessReact.d.ts",
"default": "./dist/preprocessReact.js"
},
"./react-router": {
"types": "./dist/react-router/index.d.ts",
"svelte": "./dist/react-router/index.js",
"default": "./dist/react-router/index.js"
}
},
"typesVersions": {
">4.0": {
"index.d.ts": [
"./dist/index.d.ts"
],
"preprocessReact": [
"./dist/preprocessReact.d.ts"
],
"react-router": [
"./dist/react-router/index.d.ts"
]
}
}
}