Files
react-native-svg/package.json
Risto Keravuori eaf79ea3ee Upgrade rn-builder-bob to enable tree-shaking in rn-web (#1993)
Upgrade rn-builder-bob to enable tree-shaking in rn-web
2023-03-21 14:49:28 +01:00

129 lines
3.6 KiB
JSON

{
"version": "13.8.0",
"name": "react-native-svg",
"description": "SVG library for react-native",
"homepage": "https://github.com/react-native-community/react-native-svg",
"repository": {
"type": "git",
"url": "https://github.com/react-native-community/react-native-svg"
},
"license": "MIT",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
"types": "lib/typescript/index.d.ts",
"react-native": "src/index.ts",
"files": [
"__tests__",
"android",
"apple",
"common",
"elements",
"lib",
"src",
"RNSVG.podspec",
"!android/build",
"windows",
"react-native-config.js"
],
"react-native-builder-bob": {
"source": "src",
"output": "lib",
"targets": [
"commonjs",
"module",
"typescript"
]
},
"keywords": [
"react-component",
"react-native",
"ios",
"android",
"windows",
"SVG",
"ART",
"VML",
"gradient"
],
"scripts": {
"bob": "bob build",
"flow": "flow src",
"flowtyped": "flow-typed install",
"format": "yarn format-js && yarn format-ios && yarn format-java",
"format-ios": "find apple/ common/ -iname *.h -o -iname *.m -o -iname *.cpp -o -iname *.mm | xargs clang-format -i",
"format-java": "node ./scripts/format-java.js",
"format-js": "prettier --write README.md CONTRIBUTING.md CODE_OF_CONDUCT.md USAGE.md ./src/**/*.{ts,tsx} ./Example/src/**/*.tsx",
"jest": "jest",
"lint": "eslint --ext .ts,.tsx src",
"peg": "pegjs -o src/lib/extract/transform.js ./src/lib/extract/transform.peg",
"prepare": "npm run bob && husky install",
"release": "npm login && release-it",
"test": "npm run lint && npm run tsc",
"tsc": "tsc --noEmit"
},
"peerDependencies": {
"react": "*",
"react-native": "*"
},
"dependencies": {
"css-select": "^5.1.0",
"css-tree": "^1.1.3"
},
"devDependencies": {
"@react-native-community/cli": "^9.0.0",
"@react-native-community/cli-platform-android": "^9.0.0",
"@react-native-community/cli-platform-ios": "^9.0.0",
"@react-native-community/eslint-config": "^3.0.2",
"@react-native-community/eslint-plugin": "^1.2.0",
"@react-native/babel-plugin-codegen": "^0.71.0",
"@types/css-tree": "^1.0.3",
"@types/jest": "^27.5.2",
"@types/node": "*",
"@types/react": "~18.0.15",
"@types/react-native": "^0.70.0",
"babel-eslint": "^10.1.0",
"babel-jest": "^28.1.0",
"clang-format": "^1.8.0",
"eslint": "^8.16.0",
"eslint-plugin-flowtype": "^8.0.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.0",
"flow-bin": "^0.119.1",
"flow-typed": "^3.0.0",
"flowgen": "^1.10.0",
"husky": "^8.0.1",
"jest": "^28.1.0",
"lint-staged": "^13.0.3",
"pegjs": "^0.10.0",
"prettier": "^2.6.2",
"react": "^17.0.1",
"react-native": "^0.64.0",
"react-native-builder-bob": "^0.20.4",
"react-native-windows": "^0.64.0",
"react-test-renderer": "^16.13.0",
"release-it": "^14.12.5",
"ts-node": "^10.8.0",
"typescript": "^4.7.2"
},
"resolutions": {
"@react-native-community/cli-platform-android": "^9.0.0",
"@react-native-community/cli": "^9.0.0",
"@react-native-community/cli-platform-ios": "^9.0.0"
},
"lint-staged": {
"{src,Example}/**/*.{js,ts,tsx}": "yarn format-js",
"src/**/*.{js,ts,tsx}": "yarn lint",
"apple/**/*.{h,m,mm,cpp}": "yarn format-ios",
"android/src/**/*.java": "yarn format-java"
},
"nativePackage": true,
"codegenConfig": {
"name": "rnsvg",
"type": "all",
"jsSrcsDir": "./src/fabric",
"android": {
"javaPackageName": "com.horcrux.rnsvg"
}
}
}