waitingsong / node-win32-api

win32 api
MIT License
430 stars 55 forks source link

Running tasks in vscode on Windows #18

Closed Venryx closed 4 years ago

Venryx commented 4 years ago

Executing npm run build currently fails on Windows, since it calls npm run clean, which calls rm -rf dist/*, which fails since Windows doesn't have the rf command.

A simple solution is to add shx as a dev-dependency, then replace rm -rf dist/* with shx rm -rf dist/*.

Venryx commented 4 years ago

Created a pull request fixing this issue here: https://github.com/waitingsong/node-win32-api/pull/19

waitingsong commented 4 years ago

I run scripts npm run clean under git-bash, so rm -rf works. :smile: