react-inlinesvg
Version:
An SVG loader for React
148 lines (147 loc) • 3.84 kB
JSON
{
"name": "react-inlinesvg",
"version": "4.6.0",
"description": "An SVG loader for React",
"author": "Gil Barbara <gilbarbara@gmail.com>",
"contributors": [
{
"name": "Matthew Dapena-Tretter",
"email": "m@tthewwithanm.com"
}
],
"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.cjs",
"module": "./dist/index.mjs",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./provider": {
"import": {
"types": "./dist/provider.d.mts",
"default": "./dist/provider.mjs"
},
"require": {
"types": "./dist/provider.d.cts",
"default": "./dist/provider.cjs"
}
}
},
"files": [
"dist",
"src"
],
"typesVersions": {
"*": {
"provider": [
"dist/provider.d.cts"
]
}
},
"types": "./dist/index.d.cts",
"sideEffects": false,
"peerDependencies": {
"react": "16.8 - 19"
},
"dependencies": {
"react-from-dom": "^0.7.5"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.5",
"@gilbarbara/eslint-config": "^2.0.3",
"@gilbarbara/prettier-config": "^1.0.0",
"@gilbarbara/tsconfig": "^1.0.0",
"@size-limit/preset-small-lib": "^14.3.0",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@types/node": "^24.19.2",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.1.2",
"@vitest/coverage-v8": "^5.0.5",
"browser-cache-mock": "^0.1.7",
"eslint": "^10.14.0",
"http-server": "^14.1.1",
"husky": "^9.1.7",
"jest-extended": "^7.0.0",
"jsdom": "^30.1.3",
"prettier": "^3.9.10",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"repo-tools": "^0.3.1",
"size-limit": "^14.3.0",
"start-server-and-test": "^3.0.13",
"ts-node": "^10.9.2",
"tsdown": "^0.23.4",
"typescript": "^6.0.3",
"vitest": "^5.0.5",
"vitest-fetch-mock": "^0.4.5"
},
"scripts": {
"build": "tsdown",
"watch": "tsdown --watch",
"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",
"format": "prettier --write --log-level=warn \"**/*.{yml,json,md,css}\"",
"validate": "pnpm lint && pnpm typecheck && pnpm test && pnpm format && pnpm build && pnpm size && pnpm typevalidation",
"prepublishOnly": "pnpm validate",
"prepare": "husky"
},
"tsdown": {
"banner": {
"js": "\"use client\";"
},
"entry": [
"src/index.tsx",
"src/provider.tsx"
],
"format": [
"cjs",
"esm"
],
"outputOptions": {
"exports": "named"
},
"sourcemap": true,
"splitting": false
},
"prettier": "@gilbarbara/prettier-config",
"size-limit": [
{
"name": "commonjs",
"path": "./dist/index.cjs",
"limit": "10 KB"
},
{
"name": "esm",
"path": "./dist/index.mjs",
"limit": "10 KB"
}
],
"packageManager": "pnpm@12.16.1+sha512.091d1dee7927575661b25dab3c2ae31cafc1c54d6b71ed6a6600cf0c1cb10434a447eae14015f1b23e2e6bedeed79df94a932e2164d2832280dce3fb32f656d1"
}