|
2 | 2 | "name": "@intlify/cli",
|
3 | 3 | "description": "CLI Tooling for i18n development",
|
4 | 4 | "version": "0.11.3",
|
| 5 | + "license": "MIT", |
5 | 6 | "author": {
|
6 | 7 | "name": "kazuya kawaguchi",
|
7 | 8 | "email": "kawakazu80@gmail.com"
|
8 | 9 | },
|
9 |
| - "bin": { |
10 |
| - "intlify": "./bin/run.cjs" |
11 |
| - }, |
| 10 | + "keywords": [ |
| 11 | + "cli", |
| 12 | + "i18n", |
| 13 | + "intlify", |
| 14 | + "tooling" |
| 15 | + ], |
| 16 | + "homepage": "https://github.com/intlify/cli#readme", |
12 | 17 | "bugs": {
|
13 | 18 | "url": "https://github.com/intlify/cli/issues"
|
14 | 19 | },
|
|
27 | 32 | }
|
28 | 33 | },
|
29 | 34 | "dependencies": {
|
30 |
| - "@intlify/bundle-utils": "next", |
31 |
| - "@intlify/core": "beta", |
32 |
| - "@intlify/shared": "beta", |
33 |
| - "@vue/compiler-sfc": "latest", |
34 |
| - "colorette": "^2.0.16", |
35 |
| - "cosmiconfig": "^7.0.1", |
36 |
| - "debug": "^4.3.2", |
| 35 | + "@intlify/bundle-utils": "^7.3.0", |
| 36 | + "@intlify/core": "^9.4.1", |
| 37 | + "@intlify/shared": "^9.4.1", |
| 38 | + "@vue/compiler-sfc": "^3.3.4", |
| 39 | + "colorette": "^2.0.20", |
| 40 | + "cosmiconfig": "^7.1.0", |
| 41 | + "debug": "^4.3.4", |
37 | 42 | "diff-match-patch": "^1.0.5",
|
38 |
| - "fast-glob": "^3.2.7", |
39 |
| - "ignore": "^5.1.8", |
| 43 | + "fast-glob": "^3.3.1", |
| 44 | + "ignore": "^5.2.4", |
40 | 45 | "jsonc-eslint-parser": "^1.4.1",
|
41 |
| - "pathe": "^0.2.0", |
42 |
| - "prettier": "^2.4.1", |
| 46 | + "pathe": "^1.1.1", |
| 47 | + "prettier": "^3.0.3", |
43 | 48 | "prettier-plugin-sort-json": "^0.0.2",
|
| 49 | + "vue-template-compiler": "latest", |
44 | 50 | "yaml-eslint-parser": "^0.4.1",
|
45 |
| - "yargs": "^17.2.0", |
46 |
| - "vue-template-compiler": "latest" |
| 51 | + "yargs": "^17.7.2" |
47 | 52 | },
|
48 | 53 | "devDependencies": {
|
49 |
| - "@intlify/eslint-plugin-vue-i18n": "^1.0.0", |
| 54 | + "@intlify/eslint-plugin-vue-i18n": "^3.0.0-next.3", |
50 | 55 | "@kazupon/lerna-changelog": "^4.3.0",
|
51 |
| - "@microsoft/api-extractor": "^7.18.2", |
| 56 | + "@microsoft/api-extractor": "^7.37.0", |
52 | 57 | "@secretlint/secretlint-rule-preset-recommend": "^3.3.0",
|
53 |
| - "@types/chai": "^4.2.22", |
54 |
| - "@types/debug": "^4.1.7", |
55 |
| - "@types/diff-match-patch": "^1.0.32", |
56 |
| - "@types/eslint": "^7.2.6", |
57 |
| - "@types/eslint-visitor-keys": "^1.0.0", |
| 58 | + "@types/debug": "^4.1.8", |
| 59 | + "@types/diff-match-patch": "^1.0.33", |
| 60 | + "@types/eslint": "^8.44.2", |
58 | 61 | "@types/glob": "^7.1.3",
|
59 |
| - "@types/mocha": "^9.0.0", |
60 |
| - "@types/node": "^16.10.3", |
61 |
| - "@types/prettier": "^2.4.1", |
62 |
| - "@types/sinon": "^10.0.4", |
63 |
| - "@types/yargs": "^17.0.3", |
64 |
| - "@typescript-eslint/eslint-plugin": "^5.0.0", |
65 |
| - "@typescript-eslint/parser": "^5.0.0", |
| 62 | + "@types/node": "^20.6.2", |
| 63 | + "@types/yargs": "^17.0.24", |
| 64 | + "@typescript-eslint/eslint-plugin": "^6.7.0", |
| 65 | + "@typescript-eslint/parser": "^6.7.0", |
| 66 | + "@vitest/coverage-v8": "^0.34.4", |
66 | 67 | "api-docs-gen": "^0.3.0",
|
67 |
| - "chai": "^4.3.4", |
68 |
| - "eslint": "^8.0.0", |
69 |
| - "eslint-config-prettier": "^8.3.0", |
70 |
| - "eslint-plugin-mocha": "^9.0.0", |
71 |
| - "eslint-plugin-prettier": "^4.0.0", |
72 |
| - "jiti": "^1.12.6", |
73 |
| - "lint-staged": "^11.0.0", |
74 |
| - "mocha": "^9.1.2", |
| 68 | + "eslint": "^8.49.0", |
| 69 | + "eslint-config-prettier": "^9.0.0", |
| 70 | + "eslint-plugin-prettier": "^5.0.0", |
| 71 | + "jiti": "^1.20.0", |
| 72 | + "lint-staged": "^14.0.0", |
75 | 73 | "npm-run-all": "^4.1.5",
|
76 |
| - "nyc": "^15.1.0", |
77 |
| - "opener": "^1.5.1", |
| 74 | + "opener": "^1.5.2", |
78 | 75 | "secretlint": "^3.3.0",
|
79 |
| - "shipjs": "^0.24.0", |
80 |
| - "sinon": "^11.1.2", |
81 |
| - "typescript": "^4.4.3", |
82 |
| - "typescript-eslint-language-service": "^4.1.3", |
83 |
| - "unbuild": "^0.5.6", |
| 76 | + "shipjs": "^0.24.4", |
| 77 | + "typescript": "^5.2.2", |
| 78 | + "unbuild": "^1.2.1", |
| 79 | + "vitest": "^0.34.4", |
84 | 80 | "yorkie": "^2.0.0"
|
85 | 81 | },
|
86 | 82 | "engines": {
|
87 | 83 | "node": ">= 12"
|
88 | 84 | },
|
| 85 | + "main": "./lib/index.cjs", |
| 86 | + "types": "./lib/index.d.ts", |
89 | 87 | "exports": {
|
90 | 88 | ".": {
|
| 89 | + "types": "./lib/index.d.ts", |
91 | 90 | "import": "./lib/index.mjs",
|
92 | 91 | "require": "./lib/index.cjs"
|
93 | 92 | },
|
94 |
| - "./dist/*": "./dist/*", |
95 | 93 | "./lib/*": "./lib/*",
|
96 | 94 | "./package.json": "./package.json"
|
97 | 95 | },
|
98 | 96 | "files": [
|
99 | 97 | "bin/",
|
100 | 98 | "locales/*.json",
|
101 |
| - "dist/*.d.ts", |
102 | 99 | "lib/"
|
103 | 100 | ],
|
| 101 | + "bin": { |
| 102 | + "intlify": "./bin/run.cjs" |
| 103 | + }, |
104 | 104 | "gitHooks": {
|
105 | 105 | "pre-commit": "lint-staged"
|
106 | 106 | },
|
107 |
| - "homepage": "https://github.com/intlify/cli#readme", |
108 |
| - "keywords": [ |
109 |
| - "cli", |
110 |
| - "i18n", |
111 |
| - "intlify", |
112 |
| - "tooling" |
113 |
| - ], |
114 |
| - "license": "MIT", |
115 | 107 | "lint-staged": {
|
116 | 108 | "*.{js,json,yaml,yml}": [
|
117 | 109 | "prettier --write"
|
|
123 | 115 | "secretlint"
|
124 | 116 | ]
|
125 | 117 | },
|
126 |
| - "main": "lib/src/index.js", |
127 | 118 | "repository": {
|
128 | 119 | "type": "git",
|
129 | 120 | "url": "git+https://github.com/intlify/cli.git"
|
130 | 121 | },
|
| 122 | + "packageManager": "pnpm@8.7.5", |
131 | 123 | "scripts": {
|
132 |
| - "build": "npm run build:transpile && npm run build:extract", |
133 |
| - "build:docs": "api-docs-gen ./temp/cli.api.json -c ./docsgen.config.js -o ./ -g noprefix", |
| 124 | + "build": "pnpm build:transpile && pnpm build:extract", |
134 | 125 | "build:extract": "api-extractor run -l -c ./api-extractor.json",
|
135 | 126 | "build:transpile": "unbuild",
|
| 127 | + "build:docs": "api-docs-gen ./temp/cli.api.json -c ./docsgen.config.js -o ./ -g noprefix", |
136 | 128 | "dev": "jiti ./src/cli.ts",
|
137 | 129 | "clean": "run-p clean:*",
|
138 | 130 | "clean:lib": "rm -rf ./lib/*.*",
|
139 | 131 | "fix": "run-p lint:eslint:fix format:fix",
|
140 | 132 | "format": "prettier --config .prettierrc --ignore-path .prettierignore '**/*.{js,json,html}'",
|
141 |
| - "format:fix": "npm run format -- --write", |
| 133 | + "format:fix": "pnpm format --write", |
142 | 134 | "lint": "run-p lint:eslint lint:secret",
|
143 | 135 | "lint:eslint": "eslint ./src ./test --ext .ts",
|
144 |
| - "lint:eslint:fix": "npm run lint:eslint -- --fix", |
| 136 | + "lint:eslint:fix": "pnpm lint:eslint --fix", |
145 | 137 | "lint:secret": "npx secretlint \"**/*\"",
|
146 | 138 | "release:prepare": "shipjs prepare",
|
147 | 139 | "release:trigger": "shipjs trigger",
|
148 |
| - "test": "npm run test:type && npm run test:cover", |
| 140 | + "test": "pnpm test:type && pnpm test:cover", |
149 | 141 | "test:type": "tsc -p . --noEmit",
|
150 |
| - "test:cover": "nyc mocha -r jiti/register -r ./test/setup.ts 'test/**/*.test.ts'", |
151 |
| - "test:unit": "mocha -r jiti/register -r ./test/setup.ts 'test/**/*.test.ts'", |
152 |
| - "test:snap": "UPDATE_SNAPSHOT=* mocha -r jiti/register -r ./test/setup.ts 'test/**/*.test.ts'" |
153 |
| - }, |
154 |
| - "types": "dist/cli.d.ts" |
| 142 | + "test:cover": "pnpm test:unit --coverage", |
| 143 | + "test:unit": "vitest run" |
| 144 | + } |
155 | 145 | }
|
0 commit comments