switch from rm to unlink in order to preserve node 12 compatability in astro-create (#1468)
* switch from rm to unlink in order to preserve node 12 compatability in astro-create * add changeset
This commit is contained in:
parent
f351bb8570
commit
0eeb25348e
2 changed files with 6 additions and 1 deletions
5
.changeset/odd-owls-clean.md
Normal file
5
.changeset/odd-owls-clean.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'create-astro': patch
|
||||
---
|
||||
|
||||
change rm to unlink for node 12 compatability
|
|
@ -116,7 +116,7 @@ export async function main() {
|
|||
switch (file) {
|
||||
case 'CHANGELOG.md': {
|
||||
if (fs.existsSync(fileLoc)) {
|
||||
await fs.promises.rm(fileLoc);
|
||||
await fs.promises.unlink(fileLoc);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue