asciidoctor / asciidoctor-kroki

Asciidoctor.js extension to convert diagrams to images using Kroki!
https://kroki.io/
MIT License
147 stars 50 forks source link

[dev] npm run clean and nmp run dist not working @ Windows (cmd) #226

Closed anb0s closed 3 years ago

anb0s commented 3 years ago

npm run clean:

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! asciidoctor-kroki@0.12.0 clean: `rm -rf dist/*`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the asciidoctor-kroki@0.12.0 clean script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
anb0s commented 3 years ago

It does not work because rm -rf dist/* and also mkdir -p dist/browser are not available in windows cmd.

It works as expected only in MSYS2 environment (Git for Windows etc.)

anb0s commented 3 years ago

Proposal is to use shx