ajv-validator / ajv-validator/ajv

Make package.json scripts compatible with windows.

Aperta
#1,394 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
compatibility docs
Lingua principale
TypeScript
Stelle
14.8k
Fork
1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**The version of Ajv you are using**

7.0.3
Building from source.

**The environment you have the problem with**

Microsoft Windows 10 - Powershell.

**Your code (please make it as small as possible to reproduce the issue)**

npm install

**Results and error messages in your platform**

It runs the prepublish hook, which triggers the build script which seems to be written for unix-like environments (Mac and Linux). The windows command line does not understand "rm -rf" command. I could try to use the windows subsystem for linux but it would be easier to have cross-platform scripts.

Such a change would make **ajv** more welcoming to new contributors.

Two solutions :

- We use cross-platforms apis, for example the Node fs module.
- We maintain two separate set of scripts for both unix and windows command lines.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.