1 | {
|
2 | "name": "react-svg",
|
3 | "version": "16.3.0",
|
4 | "description": "A React component that injects SVG into the DOM.",
|
5 | "main": "dist/index.js",
|
6 | "module": "dist/react-svg.esm.js",
|
7 | "jsnext:main": "dist/react-svg.esm.js",
|
8 | "typings": "dist/index.d.ts",
|
9 | "files": [
|
10 | "dist"
|
11 | ],
|
12 | "scripts": {
|
13 | "build": "run-s clean compile bundle",
|
14 | "bundle": "rollup -c",
|
15 | "check:format": "prettier --list-different \"**/*.{js,ts,tsx}\"",
|
16 | "check:types": "tsc --noEmit",
|
17 | "clean": "run-p clean:*",
|
18 | "clean:compiled": "shx rm -rf compiled",
|
19 | "clean:coverage": "shx rm -rf coverage",
|
20 | "clean:dist": "shx rm -rf dist",
|
21 | "clean:react": "ts-node ./scripts/clean-react",
|
22 | "compile": "tsc -p tsconfig.base.json",
|
23 | "format": "prettier --write \"**/*.{js,ts,tsx}\"",
|
24 | "lint": "eslint .",
|
25 | "postbundle": "npm run clean:compiled && shx cp ./index.js ./dist/index.js",
|
26 | "release": "tanem-scripts release",
|
27 | "test": "run-s check:* lint build test:*",
|
28 | "test:cjs": "jest --config ./config/jest/config.cjs.js",
|
29 | "test:cjsprod": "jest --config ./config/jest/config.cjsprod.js",
|
30 | "test:es": "jest --config ./config/jest/config.es.js",
|
31 | "test:src": "jest --config ./config/jest/config.src.js",
|
32 | "test:umd": "jest --config ./config/jest/config.umd.js",
|
33 | "test:umdprod": "jest --config ./config/jest/config.umdprod.js",
|
34 | "test:react": "ts-node ./scripts/test-react"
|
35 | },
|
36 | "repository": "github:tanem/react-svg",
|
37 | "keywords": [
|
38 | "dom",
|
39 | "html",
|
40 | "images",
|
41 | "img",
|
42 | "javascript",
|
43 | "react",
|
44 | "scalable vector graphics",
|
45 | "svg",
|
46 | "svginjector",
|
47 | "typescript"
|
48 | ],
|
49 | "author": "Tane Morgan (https://github.com/tanem)",
|
50 | "license": "MIT",
|
51 | "bugs": "https://github.com/tanem/react-svg/issues",
|
52 | "homepage": "https://github.com/tanem/react-svg",
|
53 | "peerDependencies": {
|
54 | "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
55 | "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
|
56 | },
|
57 | "dependencies": {
|
58 | "@babel/runtime": "^7.26.0",
|
59 | "@tanem/svg-injector": "^10.1.68",
|
60 | "@types/prop-types": "^15.7.14",
|
61 | "prop-types": "^15.8.1"
|
62 | },
|
63 | "devDependencies": {
|
64 | "@babel/core": "7.26.0",
|
65 | "@babel/plugin-transform-runtime": "7.25.9",
|
66 | "@babel/preset-env": "7.26.0",
|
67 | "@babel/preset-react": "7.26.3",
|
68 | "@eslint/compat": "1.2.5",
|
69 | "@eslint/eslintrc": "3.2.0",
|
70 | "@eslint/js": "9.18.0",
|
71 | "@rollup/plugin-babel": "6.0.4",
|
72 | "@rollup/plugin-commonjs": "28.0.2",
|
73 | "@rollup/plugin-node-resolve": "16.0.0",
|
74 | "@rollup/plugin-replace": "6.0.2",
|
75 | "@rollup/plugin-terser": "0.4.4",
|
76 | "@testing-library/react": "16.2.0",
|
77 | "@types/faker": "5.5.9",
|
78 | "@types/jest": "29.5.14",
|
79 | "@types/jsdom": "21.1.7",
|
80 | "@types/node": "22.10.9",
|
81 | "@types/react": "19.0.8",
|
82 | "@types/react-dom": "19.0.3",
|
83 | "@types/shelljs": "0.8.15",
|
84 | "@typescript-eslint/eslint-plugin": "8.21.0",
|
85 | "@typescript-eslint/parser": "8.21.0",
|
86 | "babel-core": "6.26.3",
|
87 | "babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
88 | "eslint": "9.18.0",
|
89 | "eslint-config-prettier": "10.0.1",
|
90 | "eslint-plugin-react": "7.37.4",
|
91 | "eslint-plugin-react-hooks": "5.1.0",
|
92 | "eslint-plugin-simple-import-sort": "12.1.1",
|
93 | "faker": "5.5.3",
|
94 | "jest": "29.7.0",
|
95 | "jest-environment-jsdom": "29.7.0",
|
96 | "jest-prettyhtml-matchers": "1.17.15",
|
97 | "nock": "13.5.6",
|
98 | "npm-run-all2": "7.0.2",
|
99 | "prettier": "3.4.2",
|
100 | "react": "19.0.0",
|
101 | "react-dom": "19.0.0",
|
102 | "rollup": "4.31.0",
|
103 | "shelljs": "0.8.5",
|
104 | "shx": "0.3.4",
|
105 | "tanem-scripts": "7.0.27",
|
106 | "ts-jest": "29.2.5",
|
107 | "ts-node": "10.9.2",
|
108 | "typescript": "5.7.3"
|
109 | }
|
110 | }
|