mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 12:55:00 +00:00
fix(tools): always use posix for path resolving (#9627)
This commit is contained in:
@@ -45,7 +45,7 @@ const gitShortHash = once(() => {
|
||||
if (GITHUB_SHA) {
|
||||
return GITHUB_SHA.substring(0, 9);
|
||||
}
|
||||
const repo = new Repository(ProjectRoot.path);
|
||||
const repo = new Repository(ProjectRoot.value);
|
||||
const shortSha = repo.head().target()?.substring(0, 9);
|
||||
if (shortSha) {
|
||||
return shortSha;
|
||||
|
||||
@@ -265,7 +265,7 @@ export function createWebpackConfig(
|
||||
pkg.join('tailwind.config.js').exists()
|
||||
? [
|
||||
require('tailwindcss')(
|
||||
require(pkg.join('tailwind.config.js').path)
|
||||
require(pkg.join('tailwind.config.js').value)
|
||||
),
|
||||
'autoprefixer',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user