Skip to content

Commit

Permalink
Merge pull request #181 from thegalactiks/clean-symlinks
Browse files Browse the repository at this point in the history
fix(@galactiks/astro-integration): clean symlinks before creating links
  • Loading branch information
emmanuelgautier authored Mar 4, 2024
2 parents 61b6baa + cec2f5f commit e5d6405
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/sour-teachers-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@galactiks/astro-integration": patch
---

fix symlinks cleanup
3 changes: 3 additions & 0 deletions packages/adapters/astro/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ export default function createPlugin(
},
});

removeDirSymbolicLinks(assetsPath);
removeDirSymbolicLinks(publicPath);

symlinkDir(galactiksConfigContentAssets, assetsPath);
symlinkDir(galactiksConfigContentAssets, publicPath);
symlinkDir(galactiksConfigContentPublic, publicPath);
Expand Down

0 comments on commit e5d6405

Please sign in to comment.