Skip to content

Commit

Permalink
fix(build): fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
WakelessSloth56 committed Jul 16, 2024
1 parent bde81e4 commit 91d5ffb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion scripts/utils.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 91d5ffb

Please sign in to comment.