ajv-validator / ajv-validator/ajv

Make package.json scripts compatible with windows.

Offen
#1,394 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
compatibility docs
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

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.