UNPKG

react-native-i18n-auto

Version:

Auto i18n tool for React Native with full TypeScript support

124 lines (123 loc) 4.1 kB
{ "name": "react-native-i18n-auto", "version": "1.1.1", "description": "Auto i18n tool for React Native with full TypeScript support", "main": "dist/index.js", "types": "dist/i18n/setup.d.ts", "type": "commonjs", "files": [ "dist", "bin", "README.md", "LICENSE" ], "babel": { "plugins": [ "./dist/babel-plugin/babel-plugin-i18n-auto.js" ] }, "scripts": { "clean": "rm -rf dist", "build": "npm run clean && tsc && babel src --out-dir dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files", "build:watch": "npm run build -- --watch", "dev": "npm run build:watch", "test": "jest --passWithNoTests", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "eslint . --ext .ts,.tsx", "lint:fix": "eslint . --ext .ts,.tsx --fix", "format": "prettier --write \"src/**/*.{ts,tsx}\"", "type-check": "tsc --noEmit", "prepare": "husky install && npm run build", "preversion": "npm run validate", "version": "npm run format && git add -A src", "postversion": "git push && git push --tags", "release:major": "npm version major", "release:minor": "npm version minor", "release:patch": "npm version patch", "validate": "npm run lint && npm run type-check && npm run test", "prepublishOnly": "npm run validate", "deploy:beta": "npm run validate && npm version prerelease --preid=beta && npm publish --tag beta", "deploy:rc": "npm run validate && npm version prerelease --preid=rc && npm publish --tag rc", "deploy:prod": "npm run validate && npm publish", "docs": "typedoc --out docs src", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s" }, "repository": { "type": "git", "url": "git+https://github.com/jellychoco/react-native-i18n-auto.git" }, "keywords": [ "react-native", "i18n", "internationalization", "localization", "typescript", "babel-plugin", "auto-translation", "translation", "l10n", "react", "mobile", "ios", "android", "language", "multilingual", "i18next", "auto-i18n", "react-i18n", "react-native-localization" ], "author": "Your Name", "license": "MIT", "bugs": { "url": "https://github.com/jellychoco/react-native-i18n-auto/issues" }, "homepage": "https://github.com/jellychoco/react-native-i18n-auto#readme", "dependencies": { "@babel/cli": "^7.26.4", "@babel/core": "^7.26.8", "@babel/plugin-syntax-jsx": "^7.25.9", "@babel/preset-env": "^7.26.8", "@babel/preset-react": "^7.26.3", "@babel/preset-typescript": "^7.23.3", "@babel/traverse": "^7.26.8", "@babel/types": "^7.26.8", "axios": "^1.7.9", "commander": "^13.1.0", "fs-extra": "^11.3.0", "glob": "^10.3.10", "metro-react-native-babel-preset": "^0.77.0" }, "bin": { "react-native-i18n-auto": "./bin/index.js" }, "devDependencies": { "@types/babel__core": "^7.20.5", "@types/babel__helper-plugin-utils": "^7.10.0", "@types/babel__traverse": "^7.20.5", "@types/jest": "^29.5.12", "@types/node": "^22.13.1", "@typescript-eslint/eslint-plugin": "^7.3.1", "@typescript-eslint/parser": "^7.3.1", "eslint": "^8.57.1", "eslint-config-prettier": "^9.1.0", "husky": "^9.0.11", "jest": "^29.7.0", "lint-staged": "^15.2.2", "prettier": "^3.2.5", "ts-jest": "^29.1.2", "ts-node": "^10.9.2", "typescript": "^5.7.3" }, "peerDependencies": { "react": ">=16.8.0", "react-native": ">=0.60.0" }, "lint-staged": { "*.{ts,tsx}": [ "eslint --fix", "prettier --write" ] } }