Skip to content

Commit

Permalink
chore: improve dx
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamOfIce committed May 6, 2023
1 parent 344fe3f commit 5d83967
Show file tree
Hide file tree
Showing 4 changed files with 206 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run lint
pnpm exec nano-staged
4 changes: 4 additions & 0 deletions .nano-staged.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{js,ts,vue}": ["eslint --fix", "prettier --write"],
"*.{md,json,yml}": ["prettier --write"]
}
36 changes: 19 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,36 @@
"vuepress-plugin",
"i18n"
],
"homepage": "https://github.com/DreamOfIce/vuepress-plugin-i18n#readme",
"bugs": {
"url": "https://github.com/DreamOfIce/vuepress-plugin-i18n/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/DreamOfIce/vuepress-plugin-i18n.git"
},
"license": "MIT",
"author": "冰雪殇璃陌梦 <[email protected]> (https://www.dreamofice.cn)",
"type": "module",
"main": "./dist/node/index.js",
"types": "./dist/node/index.d.ts",
"exports": {
".": "./dist/node/index.js",
"./package.json": "./package.json"
},
"main": "./dist/node/index.js",
"types": "./dist/node/index.d.ts",
"files": [
"dist",
"README_zh-CN.md"
],
"scripts": {
"build": "vite build",
"lint": "pnpm run /^lint:.*/",
"lint": "pnpm run \"/^lint:.*/\"",
"lint:eslint": "eslint --ext .ts --fix ./src",
"lint:prettier": "prettier --write .",
"prepare": "husky install",
"release": "bumpp --execute=\"pnpm exec commit-and-tag-version && git add CHANGELOG.md\" --commit \"chore: release v%s\" --all --tag",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "冰雪殇璃陌梦 <[email protected]> (https://www.dreamofice.cn)",
"repository": {
"type": "git",
"url": "git+https://github.com/DreamOfIce/vuepress-plugin-i18n.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/DreamOfIce/vuepress-plugin-i18n/issues"
},
"homepage": "https://github.com/DreamOfIce/vuepress-plugin-i18n#readme",
"packageManager": "[email protected]",
"dependencies": {
"@vuepress/client": "2.0.0-beta.61",
"@vuepress/core": "2.0.0-beta.61",
Expand Down Expand Up @@ -67,20 +66,23 @@
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-vue": "^9.11.0",
"husky": "^8.0.3",
"nano-staged": "^0.8.0",
"prettier": "^2.8.8",
"prettier-plugin-packagejson": "^2.4.3",
"typescript": "^5.0.4",
"vite": "^4.3.5",
"vite-plugin-dts": "^2.3.0"
},
"peerDependencies": {
"vuepress": "2.0.0-beta.61"
},
"packageManager": "[email protected]",
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
"pnpm": {
"overrides": {
"ts-node": "npm:@dreamofice/ts-node@^10.9.2"
}
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
}
}
Loading

0 comments on commit 5d83967

Please sign in to comment.