UNPKG

react-svg

Version:

A React component that injects SVG into the DOM.

109 lines (108 loc) 3.5 kB
{ "name": "react-svg", "version": "17.2.2", "description": "A React component that injects SVG into the DOM.", "main": "dist/index.js", "module": "dist/react-svg.esm.js", "types": "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": { "type": "git", "url": "git+https://github.com/tanem/react-svg.git" }, "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.28.6", "@tanem/svg-injector": "^11.3.0", "@types/prop-types": "^15.7.15", "prop-types": "^15.8.1" }, "devDependencies": { "@babel/core": "7.29.0", "@babel/plugin-transform-runtime": "7.29.0", "@babel/preset-env": "7.29.0", "@babel/preset-react": "7.28.5", "@eslint/js": "9.39.2", "@faker-js/faker": "10.3.0", "@rollup/plugin-babel": "6.1.0", "@rollup/plugin-commonjs": "29.0.0", "@rollup/plugin-node-resolve": "16.0.3", "@rollup/plugin-replace": "6.0.3", "@rollup/plugin-terser": "0.4.4", "@testing-library/react": "16.3.2", "@types/jest": "30.0.0", "@types/jsdom": "27.0.0", "@types/node": "25.3.0", "@types/react": "19.2.14", "@types/react-dom": "19.2.3", "@types/shelljs": "0.10.0", "babel-plugin-transform-react-remove-prop-types": "0.4.24", "css.escape": "1.5.1", "eslint": "9.39.2", "eslint-config-prettier": "10.1.8", "eslint-plugin-react": "7.37.5", "eslint-plugin-react-hooks": "7.0.1", "eslint-plugin-simple-import-sort": "12.1.1", "globals": "17.3.0", "jest": "30.2.0", "jest-environment-jsdom": "30.2.0", "nock": "13.5.6", "npm-run-all2": "8.0.4", "prettier": "3.8.1", "react": "19.2.4", "react-dom": "19.2.4", "rollup": "4.57.1", "shelljs": "0.10.0", "shx": "0.4.0", "tanem-scripts": "8.0.3", "ts-jest": "29.4.6", "ts-node": "10.9.2", "typescript": "5.9.3", "typescript-eslint": "8.56.0" } }