Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Replace `npm-installer` usage with `purs-installer`

Đang mở
#4,528 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
build-system, release

Hướng nghiên cứu

Start by reviewing npm-package/package.json and the purs-installer proposal referenced in the issue. Confirm how the post-install script currently invokes npm-installer, then compare the proposed replacement and its integrity checks; done means the package uses purs-installer and the installation examples work.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

type: enhancement

Summary

Replace npm-installer with purs-installer

Motivation

npm i purescript installs PureScript by running npm-installer's install command via a post-install script. The npm-installer codebase is undesirable for a number of reasons:

  1. it's written in JavaScript and thus doesn't utilize type safety. Moreover, it's hard to read in general.
  2. it uses old NPM dependencies which produces a number of warnings and other output.
  3. Per its issues, the codebase cannot install PureScript from source: https://github.com/purescript/npm-installer/issues/41
  4. At one time, when this package was originally outside of the core team's control, malicious code was added to it before Harry dealt with that.
  5. While working on the port, I noticed that the binaries downloaded from GitHub are not checked for their integrity via the SHA files.

By rewriting this in PureScript, we gain:

  1. type-safety
  2. readability
  3. updated NPM dependencies
  4. integrity checks
  5. a clean slate

Proposal

I propose a few people from the core team review the work I've done, make edits as needed, and then update our npm-package/package.json to use purs-installer as the post-install script.

Examples

At least one or two examples of the proposal being used.

Ngôn ngữ chính
Haskell
Star
8.9k
Fork
575
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của purescript/purescript

Tất cả issue của purescript/purescript

Issue tương tự

Thêm issue về Haskell

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.