Skip to content

Commit 5a3fea6

Browse files
authored
fix: upgrade dependencies (#65)
* fix: upgrade dependencies * fix * test * fix * test * test * test * test * fix
1 parent 8a7da04 commit 5a3fea6

33 files changed

+4648
-6123
lines changed

.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
'plugin:prettier/recommended',
1515
'prettier'
1616
],
17-
plugins: ['@typescript-eslint', 'mocha'],
17+
plugins: ['@typescript-eslint'],
1818
parserOptions: {
1919
parser: '@typescript-eslint/parser',
2020
sourceType: 'module'
@@ -30,7 +30,6 @@ module.exports = {
3030
}
3131
],
3232
rules: {
33-
'mocha/no-mocha-arrows': 'error',
3433
'object-curly-spacing': 'off',
3534
'@typescript-eslint/explicit-function-return-type': 'off',
3635
'@typescript-eslint/member-delimiter-style': 'off',

.github/workflows/lint.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,19 @@ jobs:
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v2
25-
- name: Install pnpm
26-
uses: pnpm/action-setup@v2.0.1
27-
with:
28-
version: 6.17.0
29-
- name: Setup Node.js v14.x
30-
uses: actions/setup-node@v2
24+
uses: actions/checkout@v4
25+
26+
- name: Enable corepack
27+
run: corepack enable
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v3
3131
with:
32-
node-version: 14
32+
node-version: 18
3333
cache: 'pnpm'
34+
3435
- name: Install
35-
run: pnpm install
36+
run: pnpm install --frozen-lockfile
37+
3638
- name: Lint
3739
run: pnpm lint

.github/workflows/test.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,22 @@ jobs:
2424
os: [ubuntu-latest, macos-latest]
2525
# NOTE: disable due to not work in windows env fs.readFile?
2626
# os: [ubuntu-latest, windows-latest, macos-latest]
27-
node: [12, 14, 16]
27+
node: [18, 20]
2828
steps:
2929
- name: Checkout
30-
uses: actions/checkout@v2
31-
- name: Install pnpm
32-
uses: pnpm/action-setup@v2.0.1
33-
with:
34-
version: 6.17.0
30+
uses: actions/checkout@v4
31+
32+
- name: Enable corepack
33+
run: corepack enable
34+
3535
- name: Setup Node.js ${{ matrix.node }}
36-
uses: actions/setup-node@v2
36+
uses: actions/setup-node@v3
3737
with:
3838
node-version: ${{ matrix.node }}
3939
cache: 'pnpm'
40+
4041
- name: Install
41-
run: pnpm install
42+
run: pnpm install --frozen-lockfile
43+
4244
- name: Test
4345
run: pnpm test

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ lib
77
*.log
88
*.swp
99
*~
10-
temp
10+
!temp/.gitkeep
11+
temp/*.json
12+
temp/*.js
13+
temp/*.md
1114
.env
1215
.nyc_output

build.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import { defineBuildConfig } from 'unbuild'
22

33
export default defineBuildConfig({
44
declaration: true,
5-
emitCJS: true,
5+
rollup: {
6+
emitCJS: true
7+
},
68
outDir: 'lib',
79
entries: ['src/index', 'src/cli']
810
})

package.json

Lines changed: 56 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
"name": "@intlify/cli",
33
"description": "CLI Tooling for i18n development",
44
"version": "0.11.3",
5+
"license": "MIT",
56
"author": {
67
"name": "kazuya kawaguchi",
78
"email": "kawakazu80@gmail.com"
89
},
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",
1217
"bugs": {
1318
"url": "https://github.com/intlify/cli/issues"
1419
},
@@ -27,91 +32,78 @@
2732
}
2833
},
2934
"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",
3742
"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",
4045
"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",
4348
"prettier-plugin-sort-json": "^0.0.2",
49+
"vue-template-compiler": "latest",
4450
"yaml-eslint-parser": "^0.4.1",
45-
"yargs": "^17.2.0",
46-
"vue-template-compiler": "latest"
51+
"yargs": "^17.7.2"
4752
},
4853
"devDependencies": {
49-
"@intlify/eslint-plugin-vue-i18n": "^1.0.0",
54+
"@intlify/eslint-plugin-vue-i18n": "^3.0.0-next.3",
5055
"@kazupon/lerna-changelog": "^4.3.0",
51-
"@microsoft/api-extractor": "^7.18.2",
56+
"@microsoft/api-extractor": "^7.37.0",
5257
"@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",
5861
"@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",
6667
"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",
7573
"npm-run-all": "^4.1.5",
76-
"nyc": "^15.1.0",
77-
"opener": "^1.5.1",
74+
"opener": "^1.5.2",
7875
"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",
8480
"yorkie": "^2.0.0"
8581
},
8682
"engines": {
8783
"node": ">= 12"
8884
},
85+
"main": "./lib/index.cjs",
86+
"types": "./lib/index.d.ts",
8987
"exports": {
9088
".": {
89+
"types": "./lib/index.d.ts",
9190
"import": "./lib/index.mjs",
9291
"require": "./lib/index.cjs"
9392
},
94-
"./dist/*": "./dist/*",
9593
"./lib/*": "./lib/*",
9694
"./package.json": "./package.json"
9795
},
9896
"files": [
9997
"bin/",
10098
"locales/*.json",
101-
"dist/*.d.ts",
10299
"lib/"
103100
],
101+
"bin": {
102+
"intlify": "./bin/run.cjs"
103+
},
104104
"gitHooks": {
105105
"pre-commit": "lint-staged"
106106
},
107-
"homepage": "https://github.com/intlify/cli#readme",
108-
"keywords": [
109-
"cli",
110-
"i18n",
111-
"intlify",
112-
"tooling"
113-
],
114-
"license": "MIT",
115107
"lint-staged": {
116108
"*.{js,json,yaml,yml}": [
117109
"prettier --write"
@@ -123,33 +115,31 @@
123115
"secretlint"
124116
]
125117
},
126-
"main": "lib/src/index.js",
127118
"repository": {
128119
"type": "git",
129120
"url": "git+https://github.com/intlify/cli.git"
130121
},
122+
"packageManager": "pnpm@8.7.5",
131123
"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",
134125
"build:extract": "api-extractor run -l -c ./api-extractor.json",
135126
"build:transpile": "unbuild",
127+
"build:docs": "api-docs-gen ./temp/cli.api.json -c ./docsgen.config.js -o ./ -g noprefix",
136128
"dev": "jiti ./src/cli.ts",
137129
"clean": "run-p clean:*",
138130
"clean:lib": "rm -rf ./lib/*.*",
139131
"fix": "run-p lint:eslint:fix format:fix",
140132
"format": "prettier --config .prettierrc --ignore-path .prettierignore '**/*.{js,json,html}'",
141-
"format:fix": "npm run format -- --write",
133+
"format:fix": "pnpm format --write",
142134
"lint": "run-p lint:eslint lint:secret",
143135
"lint:eslint": "eslint ./src ./test --ext .ts",
144-
"lint:eslint:fix": "npm run lint:eslint -- --fix",
136+
"lint:eslint:fix": "pnpm lint:eslint --fix",
145137
"lint:secret": "npx secretlint \"**/*\"",
146138
"release:prepare": "shipjs prepare",
147139
"release:trigger": "shipjs trigger",
148-
"test": "npm run test:type && npm run test:cover",
140+
"test": "pnpm test:type && pnpm test:cover",
149141
"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+
}
155145
}

0 commit comments

Comments
 (0)