mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
Merge branch 'master' of https://github.com/ragestudio/comty
This commit is contained in:
commit
cca2ea96bf
@ -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
|
||||
|
@ -47,9 +47,16 @@ async function linkSharedResources(pkgJSON, packagePath) {
|
||||
fs.mkdirSync(path.resolve(finalLinkPath, ".."), { recursive: true })
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user