ajv-validator / ajv-validator/ajv
Make package.json scripts compatible with windows.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 14.8k
- Forks
- 1k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**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.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.