ajv-validator / ajv-validator/ajv

Make package.json scripts compatible with windows.

Đang mở
#1,394 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
compatibility docs
Ngôn ngữ chính
TypeScript
Star
14.8k
Fork
1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.