KevsRepos / appstyles

MIT License
1 stars 1 forks source link

Race conditions in file io in the bundle.js #1

Closed JanHolger closed 1 year ago

JanHolger commented 1 year ago

The bundle.js uses async file io operations from the fs library but doesn't await the response. You should be either using the sync methods or await the writeFile before calling appendFile otherwise you can run into race conditions where the writeFile might not have finished before the appendFile gets called.

KevsRepos commented 1 year ago

I willl re-write the whole cli tooling to work properly. Current bundle.js wont last long. Will close this in favor of #2