forked from gilbarbara/react-inlinesvg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
151 lines (151 loc) · 3.74 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"name": "react-inlinesvg",
"version": "4.1.8",
"description": "An SVG loader for React",
"author": "Gil Barbara <[email protected]>",
"contributors": [
{
"name": "Matthew Dapena-Tretter",
"email": "[email protected]"
}
],
"keywords": [
"react",
"svg"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/gilbarbara/react-inlinesvg.git"
},
"bugs": {
"url": "https://github.com/gilbarbara/react-inlinesvg/issues"
},
"homepage": "https://github.com/gilbarbara/react-inlinesvg#readme",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./provider": {
"import": "./dist/provider.mjs",
"default": "./dist/provider.js"
}
},
"files": [
"dist",
"src"
],
"typesVersions": {
"*": {
"provider": [
"dist/provider.d.ts"
]
}
},
"types": "dist/index.d.ts",
"sideEffects": false,
"peerDependencies": {
"react": "16.8 - 19"
},
"dependencies": {
"react-from-dom": "^0.7.5"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.3",
"@gilbarbara/eslint-config": "^0.8.4",
"@gilbarbara/prettier-config": "^1.0.0",
"@gilbarbara/tsconfig": "^0.2.3",
"@size-limit/preset-small-lib": "^11.1.6",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.1.0",
"@types/node": "^22.10.6",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/coverage-v8": "^2.1.8",
"browser-cache-mock": "^0.1.7",
"del-cli": "^6.0.0",
"fix-tsup-cjs": "^1.2.0",
"http-server": "^14.1.1",
"husky": "^9.1.7",
"jest-extended": "^4.0.2",
"jsdom": "^26.0.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"repo-tools": "^0.3.1",
"size-limit": "^11.1.6",
"start-server-and-test": "^2.0.10",
"ts-node": "^10.9.2",
"tsup": "^8.3.5",
"typescript": "^5.7.3",
"vitest": "^2.1.8",
"vitest-fetch-mock": "^0.4.3"
},
"scripts": {
"build": "pnpm run clean && tsup && fix-tsup-cjs",
"watch": "tsup --watch",
"clean": "del dist/*",
"lint": "eslint --fix src test",
"start": "http-server test/__fixtures__ -p 1337 --cors",
"test": "start-server-and-test start http://127.0.0.1:1337 test:coverage",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest watch",
"typecheck": "tsc -p test/tsconfig.json",
"typevalidation": "attw -P",
"size": "size-limit",
"validate": "pnpm run lint && pnpm run typecheck && pnpm run test && pnpm run build && pnpm run size && npm run typevalidation",
"format": "prettier \"**/*.{js,jsx,json,yml,yaml,css,less,scss,ts,tsx,md,graphql,mdx}\" --write",
"prepublishOnly": "pnpm run validate",
"prepare": "husky"
},
"tsup": {
"banner": {
"js": "\"use client\";"
},
"dts": true,
"entry": [
"src/index.tsx",
"src/provider.tsx"
],
"format": [
"cjs",
"esm"
],
"sourcemap": true,
"splitting": false
},
"eslintConfig": {
"extends": [
"@gilbarbara/eslint-config"
],
"overrides": [
{
"files": [
"test/**/*.ts?(x)"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"no-console": "off",
"testing-library/no-container": "off",
"testing-library/no-node-access": "off"
}
}
]
},
"prettier": "@gilbarbara/prettier-config",
"size-limit": [
{
"name": "commonjs",
"path": "./dist/index.js",
"limit": "10 KB"
},
{
"name": "esm",
"path": "./dist/index.mjs",
"limit": "10 KB"
}
]
}