This commit is contained in:
SrGooglo 2023-12-19 21:55:13 +00:00
commit cca2ea96bf
2 changed files with 13 additions and 6 deletions

View File

@ -53,7 +53,7 @@ For local development you will need to have installed some tools:
### Setup
- Getting the repository
```shell
git clone https://github.com/ragestudio/comty && cd comty
git clone --recurse-submodules https://github.com/ragestudio/comty && cd comty
```
- Installing all dependencies

View File

@ -47,9 +47,16 @@ async function linkSharedResources(pkgJSON, packagePath) {
fs.mkdirSync(path.resolve(finalLinkPath, ".."), { recursive: true })
}
fs.symlinkSync(originClassPath, finalLinkPath, "dir")
console.log(`🔗 Linked resouce [${resource}] to [${finalLinkPath}]`)
try {
fs.symlinkSync(originClassPath, finalLinkPath, "dir")
console.log(`🔗 Linked resouce [${resource}] to [${finalLinkPath}]`)
} catch (error) {
if (error.code && error.code == 'EEXIST') {
fs.unlinkSync(finalLinkPath)
fs.symlinkSync(originClassPath, finalLinkPath, "dir")
console.log(`🔗 Linked resouce [${resource}] to [${finalLinkPath}]`)
}
}
continue
}