diff --git a/.vscode/settings.json b/.vscode/settings.json index 0d4b7f7..d4cf75c 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "cSpell.words": ["assjs", "danmaku", "danmakuload", "stime"], - "conventionalCommits.scopes": ["repo", "utils", "player", "pages", "start"], + "conventionalCommits.scopes": ["repo", "utils", "player", "pages", "start", "build"], "prettier.printWidth": 120, "markdownlint.config": { "MD001": false, diff --git a/scripts/utils.cjs b/scripts/utils.cjs index 288360e..1d2fa86 100644 --- a/scripts/utils.cjs +++ b/scripts/utils.cjs @@ -9,7 +9,7 @@ const commitHash = (short = false) => { }; const branch = () => execSync('git branch --show-current'); const isDirty = () => execSync('git status --short').length !== 0; -const version = (short = false) => `${branch()}@${commitHash(short)}${isDirty ? '(dirty)' : ''}`; +const version = (short = false) => `${branch()}@${commitHash(short)}${isDirty() ? '(dirty)' : ''}`; const srcPath = (...p) => path.resolve(__dirname, '../src', ...p); const buildPath = (...p) => path.resolve(__dirname, '../build', ...p);