pnar-i18n
Version:
Framework-agnostic internationalization library with support for React, Vue, and other JavaScript frameworks
100 lines (99 loc) • 2.56 kB
JSON
{
"name": "pnar-i18n",
"version": "2.1.0",
"description": "Framework-agnostic internationalization library with support for React, Vue, and other JavaScript frameworks",
"repository": {
"type": "git",
"url": "git+https://github.com/armego/pnar-i18n.git"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "commonjs",
"files": [
"dist",
"react",
"vue",
"README.md"
],
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./react": {
"import": "./react/index.js",
"require": "./react/index.js",
"types": "./react/index.d.ts"
},
"./vue": {
"import": "./vue/index.js",
"require": "./vue/index.js",
"types": "./vue/index.d.ts"
},
"./core": {
"import": "./dist/core/index.js",
"require": "./dist/core/index.js",
"types": "./dist/core/index.d.ts"
}
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"prepare-publish": "./scripts/switch-imports.sh publish",
"prepare-dev": "./scripts/switch-imports.sh dev",
"test": "jest",
"test:watch": "jest --watch",
"lint": "eslint src --ext .ts,.tsx",
"type-check": "tsc --noEmit",
"prepublishOnly": "npm run prepare-publish && npm run build",
"postpublish": "npm run prepare-dev",
"publish:npm": "npm publish --access public"
},
"keywords": [
"react",
"vue",
"i18n",
"internationalization",
"multilingual",
"pnar",
"typescript",
"framework-agnostic"
],
"author": "Armego Chylla",
"license": "MIT",
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"vue": "^3.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
},
"vue": {
"optional": true
}
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.0.0",
"@rollup/plugin-babel": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.0",
"jest": "^29.0.0",
"rollup": "^3.0.0",
"rollup-plugin-typescript2": "^0.34.0",
"typescript": "^4.9.0",
"vue": "^3.3.0"
}
}