Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: upgrade @intlify/* deps #65

Merged
merged 9 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
'plugin:prettier/recommended',
'prettier'
],
plugins: ['@typescript-eslint', 'mocha'],
plugins: ['@typescript-eslint'],
parserOptions: {
parser: '@typescript-eslint/parser',
sourceType: 'module'
Expand All @@ -30,7 +30,6 @@ module.exports = {
}
],
rules: {
'mocha/no-mocha-arrows': 'error',
'object-curly-spacing': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/member-delimiter-style': 'off',
Expand Down
20 changes: 11 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 6.17.0
- name: Setup Node.js v14.x
uses: actions/setup-node@v2
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
cache: 'pnpm'

- name: Install
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Lint
run: pnpm lint
18 changes: 10 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,22 @@ jobs:
os: [ubuntu-latest, macos-latest]
# NOTE: disable due to not work in windows env fs.readFile?
# os: [ubuntu-latest, windows-latest, macos-latest]
node: [12, 14, 16]
node: [18, 20]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 6.17.0
uses: actions/checkout@v4

- name: Enable corepack
run: corepack enable

- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'

- name: Install
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Test
run: pnpm test
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ lib
*.log
*.swp
*~
temp
!temp/.gitkeep
temp/*.json
temp/*.js
temp/*.md
.env
.nyc_output
4 changes: 3 additions & 1 deletion build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
declaration: true,
emitCJS: true,
rollup: {
emitCJS: true
},
outDir: 'lib',
entries: ['src/index', 'src/cli']
})
122 changes: 56 additions & 66 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@
"name": "@intlify/cli",
"description": "CLI Tooling for i18n development",
"version": "0.11.3",
"license": "MIT",
"author": {
"name": "kazuya kawaguchi",
"email": "[email protected]"
},
"bin": {
"intlify": "./bin/run.cjs"
},
"keywords": [
"cli",
"i18n",
"intlify",
"tooling"
],
"homepage": "https://github.com/intlify/cli#readme",
"bugs": {
"url": "https://github.com/intlify/cli/issues"
},
Expand All @@ -27,91 +32,78 @@
}
},
"dependencies": {
"@intlify/bundle-utils": "next",
"@intlify/core": "beta",
"@intlify/shared": "beta",
"@vue/compiler-sfc": "latest",
"colorette": "^2.0.16",
"cosmiconfig": "^7.0.1",
"debug": "^4.3.2",
"@intlify/bundle-utils": "^7.3.0",
"@intlify/core": "^9.4.1",
"@intlify/shared": "^9.4.1",
"@vue/compiler-sfc": "^3.3.4",
"colorette": "^2.0.20",
"cosmiconfig": "^7.1.0",
"debug": "^4.3.4",
"diff-match-patch": "^1.0.5",
"fast-glob": "^3.2.7",
"ignore": "^5.1.8",
"fast-glob": "^3.3.1",
"ignore": "^5.2.4",
"jsonc-eslint-parser": "^1.4.1",
"pathe": "^0.2.0",
"prettier": "^2.4.1",
"pathe": "^1.1.1",
"prettier": "^3.0.3",
"prettier-plugin-sort-json": "^0.0.2",
"vue-template-compiler": "latest",
"yaml-eslint-parser": "^0.4.1",
"yargs": "^17.2.0",
"vue-template-compiler": "latest"
"yargs": "^17.7.2"
},
"devDependencies": {
"@intlify/eslint-plugin-vue-i18n": "^1.0.0",
"@intlify/eslint-plugin-vue-i18n": "^3.0.0-next.3",
"@kazupon/lerna-changelog": "^4.3.0",
"@microsoft/api-extractor": "^7.18.2",
"@microsoft/api-extractor": "^7.37.0",
"@secretlint/secretlint-rule-preset-recommend": "^3.3.0",
"@types/chai": "^4.2.22",
"@types/debug": "^4.1.7",
"@types/diff-match-patch": "^1.0.32",
"@types/eslint": "^7.2.6",
"@types/eslint-visitor-keys": "^1.0.0",
"@types/debug": "^4.1.8",
"@types/diff-match-patch": "^1.0.33",
"@types/eslint": "^8.44.2",
"@types/glob": "^7.1.3",
"@types/mocha": "^9.0.0",
"@types/node": "^16.10.3",
"@types/prettier": "^2.4.1",
"@types/sinon": "^10.0.4",
"@types/yargs": "^17.0.3",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@types/node": "^20.6.2",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"@vitest/coverage-v8": "^0.34.4",
"api-docs-gen": "^0.3.0",
"chai": "^4.3.4",
"eslint": "^8.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-prettier": "^4.0.0",
"jiti": "^1.12.6",
"lint-staged": "^11.0.0",
"mocha": "^9.1.2",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"jiti": "^1.20.0",
"lint-staged": "^14.0.0",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"opener": "^1.5.1",
"opener": "^1.5.2",
"secretlint": "^3.3.0",
"shipjs": "^0.24.0",
"sinon": "^11.1.2",
"typescript": "^4.4.3",
"typescript-eslint-language-service": "^4.1.3",
"unbuild": "^0.5.6",
"shipjs": "^0.24.4",
"typescript": "^5.2.2",
"unbuild": "^1.2.1",
"vitest": "^0.34.4",
"yorkie": "^2.0.0"
},
"engines": {
"node": ">= 12"
},
"main": "./lib/index.cjs",
"types": "./lib/index.d.ts",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./lib/index.mjs",
"require": "./lib/index.cjs"
},
"./dist/*": "./dist/*",
"./lib/*": "./lib/*",
"./package.json": "./package.json"
},
"files": [
"bin/",
"locales/*.json",
"dist/*.d.ts",
"lib/"
],
"bin": {
"intlify": "./bin/run.cjs"
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"homepage": "https://github.com/intlify/cli#readme",
"keywords": [
"cli",
"i18n",
"intlify",
"tooling"
],
"license": "MIT",
"lint-staged": {
"*.{js,json,yaml,yml}": [
"prettier --write"
Expand All @@ -123,33 +115,31 @@
"secretlint"
]
},
"main": "lib/src/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/intlify/cli.git"
},
"packageManager": "[email protected]",
"scripts": {
"build": "npm run build:transpile && npm run build:extract",
"build:docs": "api-docs-gen ./temp/cli.api.json -c ./docsgen.config.js -o ./ -g noprefix",
"build": "pnpm build:transpile && pnpm build:extract",
"build:extract": "api-extractor run -l -c ./api-extractor.json",
"build:transpile": "unbuild",
"build:docs": "api-docs-gen ./temp/cli.api.json -c ./docsgen.config.js -o ./ -g noprefix",
"dev": "jiti ./src/cli.ts",
"clean": "run-p clean:*",
"clean:lib": "rm -rf ./lib/*.*",
"fix": "run-p lint:eslint:fix format:fix",
"format": "prettier --config .prettierrc --ignore-path .prettierignore '**/*.{js,json,html}'",
"format:fix": "npm run format -- --write",
"format:fix": "pnpm format --write",
"lint": "run-p lint:eslint lint:secret",
"lint:eslint": "eslint ./src ./test --ext .ts",
"lint:eslint:fix": "npm run lint:eslint -- --fix",
"lint:eslint:fix": "pnpm lint:eslint --fix",
"lint:secret": "npx secretlint \"**/*\"",
"release:prepare": "shipjs prepare",
"release:trigger": "shipjs trigger",
"test": "npm run test:type && npm run test:cover",
"test": "pnpm test:type && pnpm test:cover",
"test:type": "tsc -p . --noEmit",
"test:cover": "nyc mocha -r jiti/register -r ./test/setup.ts 'test/**/*.test.ts'",
"test:unit": "mocha -r jiti/register -r ./test/setup.ts 'test/**/*.test.ts'",
"test:snap": "UPDATE_SNAPSHOT=* mocha -r jiti/register -r ./test/setup.ts 'test/**/*.test.ts'"
},
"types": "dist/cli.d.ts"
"test:cover": "pnpm test:unit --coverage",
"test:unit": "vitest run"
}
}
Loading