UNPKG

next-intl-scanner

Version:

A tool to extract and manage translations from Next.js projects using next-intl

103 lines (102 loc) 2.48 kB
{ "name": "next-intl-scanner", "version": "1.1.9", "type": "commonjs", "description": "A tool to extract and manage translations from Next.js projects using next-intl", "author": { "name": "Mohamed Ali", "email": "mohamedali0887@gmail.com" }, "main": "dist/index.js", "types": "dist/index.d.ts", "bin": { "next-intl-scanner": "dist/cli.js" }, "scripts": { "build": "tsc && tsc-alias && cp src/index.d.ts dist/", "build:watch": "tsc && (concurrently \"tsc -w\" \"tsc-alias -w\")", "test": "jest --config jest.config.cjs", "test:watch": "jest --watch", "extract": "node dist/cli.js extract", "extract:watch": "node dist/cli.js extract --watch" }, "keywords": [ "next", "next.js", "next-intl", "i18n", "l10n", "internationalization", "translation", "scanner", "extractor" ], "license": "MIT", "dependencies": { "@google-cloud/translate": "^9.1.0", "@types/node": "^22.14.1", "chalk": "^4.1.0", "commander": "^9.4.1", "glob": "^7.2.0", "rimraf": "^3.0.2", "typescript": "^4.9.5" }, "peerDependencies": { "next-intl": ">=4.0.0" }, "peerDependenciesMeta": { "next-intl": { "optional": true } }, "repository": { "type": "git", "url": "git+https://github.com/mohamedali0887/next-intl-scanner.git" }, "homepage": "https://github.com/mohamedali0887/next-intl-scanner#readme", "bugs": { "url": "https://github.com/mohamedali0887/next-intl-scanner/issues" }, "engines": { "node": ">=12.0.0" }, "devDependencies": { "@babel/parser": "^7.24.0", "@babel/traverse": "^7.24.0", "@types/babel__traverse": "^7", "@types/glob": "^8.1.0", "@types/jest": "^29.5.12", "@types/rimraf": "^4.0.5", "concurrently": "^7.6.0", "jest": "^29.7.0", "ts-jest": "^29.1.2", "tsc-alias": "^1.8.10", "tsx": "^3.12.0" }, "jest": { "preset": "ts-jest", "testEnvironment": "node", "transform": { "^.+\\.tsx?$": [ "ts-jest", { "tsconfig": "./tsconfig.json" } ] }, "modulePathIgnorePatterns": [ "<rootDir>/dist/" ], "coverageDirectory": "<rootDir>/coverage", "collectCoverageFrom": [ "<rootDir>/src/**/*.{js,jsx,ts,tsx}", "!<rootDir>/src/index.ts" ] }, "files": [ "dist", "README.md", "next-intl-scanner-example.config.js" ], "packageManager": "yarn@4.9.2" }