No changes when using `npm link`

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

Maintainer thường phản hồi trong vòng 1 ngày

@atmelmicro đang làm issue này rồi.

Từ ngày 23/6/2025.

Đánh giá

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

Mô tả

Steps:

  1. Clone RUI and consumer application (APP)
  2. Make APP use dist version of RUI (the import { Button } from '@react-ui-org/react-ui'; syntax )
  3. Use npm-link in APP to force it to use RUI source (see: https://react-ui.io/docs/contribute/general-guidelines/#package-linking)
  4. Start RUI dev server npm start / docker compose up node_dev_server
  5. Make changes in RUI

Expected behaviour: RUI changes are reflected in APP
Current behaviour: RUi changes are not reflected in APP

Cause

In RUI the npm start (=webpack --watch) script builds to the folder src/docs/_assets/generated/, but APP expects the output to be in dist. The sources are only copied to the dist folder in npm posbuild script.

Solution

As we can not drop outputting the build source to src/docs/_assets/generated/ as it is needed for mkdocs docs, so we need to do one of the following:

  • use symlink
  • output from webpack to two locations

The decision is up to the author and it should be documented in an ADR (use same structure as in RA2W).

Documentation might need to be updated accordingly.

Ngôn ngữ chính
TypeScript
Star
23
Fork
10
Merge trung bình
5 ngày 12 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có 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 react-ui-org/react-ui

Tất cả issue của react-ui-org/react-ui

Issue tương tự

Thêm issue về TypeScript

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.