diff --git a/scripts/post-install.js b/scripts/post-install.js index f138f0a8..e30a9467 100644 --- a/scripts/post-install.js +++ b/scripts/post-install.js @@ -40,6 +40,8 @@ async function linkSharedResources(pkgJSON, packagePath) { if (fs.existsSync(finalLinkPath)) { console.warn(`⚠️ Resource [${resource}] link already exists in [${finalLinkPath}]`) continue + } else { + fs.mkdirSync(path.resolve(finalLinkPath, ".."), { recursive: true }) } fs.symlinkSync(originClassPath, finalLinkPath, "dir")