UNPKG

react-svg

Version:

A React component that injects SVG into the DOM.

111 lines (110 loc) 3.65 kB
{ "name": "react-svg", "version": "16.3.0", "description": "A React component that injects SVG into the DOM.", "main": "dist/index.js", "module": "dist/react-svg.esm.js", "jsnext:main": "dist/react-svg.esm.js", "typings": "dist/index.d.ts", "files": [ "dist" ], "scripts": { "build": "run-s clean compile bundle", "bundle": "rollup -c", "check:format": "prettier --list-different \"**/*.{js,ts,tsx}\"", "check:types": "tsc --noEmit", "clean": "run-p clean:*", "clean:compiled": "shx rm -rf compiled", "clean:coverage": "shx rm -rf coverage", "clean:dist": "shx rm -rf dist", "clean:react": "ts-node ./scripts/clean-react", "compile": "tsc -p tsconfig.base.json", "format": "prettier --write \"**/*.{js,ts,tsx}\"", "lint": "eslint .", "postbundle": "npm run clean:compiled && shx cp ./index.js ./dist/index.js", "release": "tanem-scripts release", "test": "run-s check:* lint build test:*", "test:cjs": "jest --config ./config/jest/config.cjs.js", "test:cjsprod": "jest --config ./config/jest/config.cjsprod.js", "test:es": "jest --config ./config/jest/config.es.js", "test:src": "jest --config ./config/jest/config.src.js", "test:umd": "jest --config ./config/jest/config.umd.js", "test:umdprod": "jest --config ./config/jest/config.umdprod.js", "test:react": "ts-node ./scripts/test-react" }, "repository": "github:tanem/react-svg", "keywords": [ "dom", "html", "images", "img", "javascript", "react", "scalable vector graphics", "svg", "svginjector", "typescript" ], "author": "Tane Morgan (https://github.com/tanem)", "license": "MIT", "bugs": "https://github.com/tanem/react-svg/issues", "homepage": "https://github.com/tanem/react-svg", "peerDependencies": { "react": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0", "react-dom": "^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "dependencies": { "@babel/runtime": "^7.26.0", "@tanem/svg-injector": "^10.1.68", "@types/prop-types": "^15.7.14", "prop-types": "^15.8.1" }, "devDependencies": { "@babel/core": "7.26.0", "@babel/plugin-transform-runtime": "7.25.9", "@babel/preset-env": "7.26.0", "@babel/preset-react": "7.26.3", "@eslint/compat": "1.2.5", "@eslint/eslintrc": "3.2.0", "@eslint/js": "9.18.0", "@rollup/plugin-babel": "6.0.4", "@rollup/plugin-commonjs": "28.0.2", "@rollup/plugin-node-resolve": "16.0.0", "@rollup/plugin-replace": "6.0.2", "@rollup/plugin-terser": "0.4.4", "@testing-library/react": "16.2.0", "@types/faker": "5.5.9", "@types/jest": "29.5.14", "@types/jsdom": "21.1.7", "@types/node": "22.10.9", "@types/react": "19.0.8", "@types/react-dom": "19.0.3", "@types/shelljs": "0.8.15", "@typescript-eslint/eslint-plugin": "8.21.0", "@typescript-eslint/parser": "8.21.0", "babel-core": "6.26.3", "babel-plugin-transform-react-remove-prop-types": "0.4.24", "eslint": "9.18.0", "eslint-config-prettier": "10.0.1", "eslint-plugin-react": "7.37.4", "eslint-plugin-react-hooks": "5.1.0", "eslint-plugin-simple-import-sort": "12.1.1", "faker": "5.5.3", "jest": "29.7.0", "jest-environment-jsdom": "29.7.0", "jest-prettyhtml-matchers": "1.17.15", "nock": "13.5.6", "npm-run-all2": "7.0.2", "prettier": "3.4.2", "react": "19.0.0", "react-dom": "19.0.0", "rollup": "4.31.0", "shelljs": "0.8.5", "shx": "0.3.4", "tanem-scripts": "7.0.27", "ts-jest": "29.2.5", "ts-node": "10.9.2", "typescript": "5.7.3" } }