fix(tools): always use posix for path resolving (#9627)

This commit is contained in:
forehalo
2025-01-13 02:40:13 +00:00
parent 5c4e87ddb5
commit 5979907d96
3 changed files with 9 additions and 5 deletions

View File

@@ -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;

View File

@@ -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',
]