UNPKG

simple-i18n-next

Version:

A CLI to generate TypeScript code from translation files in JSON format and Markdown files for Next.js projects.

100 lines (99 loc) 2.61 kB
{ "name": "simple-i18n-next", "description": "A CLI to generate TypeScript code from translation files in JSON format and Markdown files for Next.js projects.", "version": "0.0.38", "license": "MIT", "bin": { "simple-i18n-next": "dist/cli.js" }, "url": "https://github.com/nicnocquee/simple-i18n-next", "repository": { "type": "git", "url": "https://github.com/nicnocquee/simple-i18n-next.git" }, "type": "module", "engines": { "node": ">=16" }, "keywords": [ "i18n", "internationalization", "nextjs", "simple-i18n-next", "translation", "localization", "l10n", "i10n", "react", "typescript", "ts", "tsx", "markdown", "mdx", "cli", "command line", "tool", "utility" ], "scripts": { "build": "rimraf dist && tsc && npm run copy-files", "dev": "tsc --watch", "check:format": "prettier --check .", "check:lint": "xo", "check": "npm run check:format && npm run check:lint", "test": "npm run check && npm run test:vitest", "test:vitest": "vitest --environment jsdom --run", "copy-files": "copyfiles -f readme.md source/mdx.d.ts source/hooks.template LICENSE dist/", "bump": "npm version patch --force", "prepublishOnly": "npm run bump && npm run build" }, "files": [ "dist" ], "dependencies": { "chalk": "^5.3.0", "glob": "^10.4.1", "meow": "^13.2.0" }, "devDependencies": { "@sindresorhus/tsconfig": "^5.0.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/node": "^22.0.0", "@vdemedes/prettier-config": "^2.0.1", "concurrently": "^8.2.2", "copyfiles": "^2.4.1", "eslint-config-xo-react": "^0.27.0", "eslint-plugin-react": "^7.34.1", "eslint-plugin-react-hooks": "^4.6.2", "execa": "^9.1.0", "jiti": "^1.21.0", "jsdom": "^26.1.0", "prettier": "^3.2.5", "react": "^19.1.0", "react-dom": "^19.1.0", "rimraf": "^5.0.5", "ts-node": "^10.9.2", "tsx": "^4.20.3", "typescript": "^5.4.5", "vitest": "^3.2.4", "xo": "^0.58.0" }, "xo": { "extends": "xo-react", "prettier": true, "ignores": [ "**/*.test.ts*", "mdx.d.ts" ], "rules": { "@typescript-eslint/prefer-regexp-exec": "off", "react/prop-types": "off", "unicorn/prevent-abbreviations": "off", "n/prefer-global/process": "off", "@typescript-eslint/non-nullable-type-assertion-style": "off", "unicorn/no-array-for-each": "off", "unicorn/prefer-string-replace-all": "off" } } }