Skip to content

Commit

Permalink
refactor: 调整项目部分文件的结构
Browse files Browse the repository at this point in the history
  • Loading branch information
simply-none committed Mar 31, 2024
1 parent 4a05315 commit 1b4ee7f
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
}
},
"scripts": {
"cg": "node ./generateChangelog.js",
"cg": "node ./utils/generateChangelog.js",
"c": "conventional-changelog -p angular -i CHANGELOG.md -s",
"commit": "git pull && git add . && git-cz",
"r": "standard-version --release-as patch && npm run cg && node ./gitCommit.js && git push --follow-tags origin master",
"r": "standard-version --release-as patch && npm run cg && node ./utils/gitCommit.js && git push --follow-tags origin master",
"prepare": "husky install",
"dev": "vitepress dev docs",
"build": "vitepress build docs",
Expand Down
2 changes: 1 addition & 1 deletion generateChangelog.js → utils/generateChangelog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const gitlog = require("gitlog").default;
const pkg = require('./package.json')
const pkg = require('../package.json')
const fs = require('fs')

const repo = pkg.repository.url.replace('.git', '')
Expand Down
2 changes: 1 addition & 1 deletion gitCommit.js → utils/gitCommit.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const shell = require('shelljs')
const pkg = require('./package.json')
const pkg = require('../package.json')

let gitAddMsg = shell.exec('git add .')
console.log(gitAddMsg, 'git')
Expand Down

0 comments on commit 1b4ee7f

Please sign in to comment.