mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: confirm that file exists to unlink
This commit is contained in:
committed by
Tienson Qin
parent
273c8563ed
commit
073d4d8b30
@@ -19,5 +19,5 @@ fs.writeFileSync('dist/package.json', JSON.stringify(glob, null, 2))
|
||||
|
||||
const dest = path.join(__dirname, '/../../../src/js/tldraw-logseq.js')
|
||||
|
||||
fs.unlinkSync(dest)
|
||||
if (fs.existsSync(dest)) fs.unlinkSync(dest)
|
||||
fs.linkSync(path.join(__dirname, '/dist/index.js'), dest)
|
||||
|
||||
Reference in New Issue
Block a user