fix: code workspace path error

This commit is contained in:
vben
2024-06-02 22:13:15 +08:00
parent 30f7472d26
commit 6d4991d852
10 changed files with 86 additions and 6 deletions

0
scripts/update-dependencies Executable file → Normal file
View File

View File

@@ -10,6 +10,7 @@ import {
getPackages,
gitAdd,
prettierFormat,
toPosixPath,
} from '@vben/node-utils';
const CODE_WORKSPACE_FILE = join('vben-admin.code-workspace');
@@ -29,7 +30,7 @@ async function createCodeWorkspace({
const { dir, packageJson } = pkg;
return {
name: packageJson.name,
path: relative(rootDir, dir),
path: toPosixPath(relative(rootDir, dir)),
};
});