fix: symlink dir

This commit is contained in:
chenos 2024-01-24 13:06:06 +08:00
parent 10e0f6ec1f
commit 1b2c67fea7

View File

@ -78,7 +78,7 @@ async function createDevPluginSymLink(pluginName) {
if (await fsExists(link)) { if (await fsExists(link)) {
await unlink(link); await unlink(link);
} }
await symlink(resolve(packagePluginsPath, pluginName), link); await symlink(resolve(packagePluginsPath, pluginName), link, 'dir');
} catch (error) { } catch (error) {
console.error(error); console.error(error);
} }