question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

We should make sure it works on Windows before release

// phase one — build with Snowpack
header('Creating unoptimized build...');
await exec(`rm -rf .svelte/build/unoptimized`);

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Conduitrycommented, Oct 25, 2020

Node’s fs.rmdir will not currently fail if you pass it recursive: true and the directory does not exist. It will emit a warning though in Node 15 saying that it will do so in the future, advising you to use fs.rm (which was added in 14.14). I’d probably be in favor of doing something like (fs.rm || fs.rmdir)('.svelte/build/unoptimized', { recursive: true }).

Edit: Actually, just fs.rmdir('.svelte/build/unoptimized', { recursive: true, force: true }) looks like it keeps everyone happy, and works on Node 12+.

0reactions
Rich-Harriscommented, Oct 29, 2020

Closing in favour of the more general issue for adding package tests — #18

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Support
Microsoft support is here to help you with Microsoft products. Find how-to articles, videos, and training for Microsoft 365, Windows, Surface, and more....
Read more >
Contact - Microsoft Support
Contact Microsoft Support. Find solutions to common problems, or get help from a support agent.
Read more >
End of support for Windows 7 and Windows 8.1 - Microsoft
After January 10, 2023, Microsoft will no longer provide security updates or technical support for Windows 8.1. You might be able to upgrade...
Read more >
Microsoft Community
Welcome to the Microsoft Support Community. Need help? We've got answers! Search, browse, or ask a question. Choose where you want to search...
Read more >
Windows 10 Home and Pro - Microsoft Lifecycle
Microsoft will continue to support at least one Windows 10 release until October 14, 2025. Support dates are shown in the Pacific Time...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found