coderstory
V2EX  ›  Node.js

前端新手 一个 ts 项目 怎么应用一个被修改过的 js 项目

  •  
  •   coderstory · Jul 14, 2021 · 2690 views
    This topic created in 1821 days ago, the information mentioned may be changed or developed.

    现在有个开源的 js 项目 https://github.com/coderstory/expr-eval 这是一个表达式的解析器和执行器 自带了 d.ts 和相关配置

    因为项目( vue3+ts )需要,我修改了源码,然后我就不知道整合到项目里了

    这个项目我并不想发布到什么仓库里。我在想能不能发布到本地仓库,然后开发项目引入依赖 或者作为这个正在开发的项目的子项目( submodule )什么的。

    6 replies    2021-07-16 09:19:26 +08:00
    tolking
        1
    tolking  
       Jul 14, 2021
    npm 支持安装本地目录啊,直接 npm i ../test...
    renmu123
        2
    renmu123  
       Jul 14, 2021 via Android
    你 fork 一份然后用 npm 从 github 安装就可以了
    coderstory
        3
    coderstory  
    OP
       Jul 14, 2021
    @tolking 学习了 谢谢
    coderstory
        4
    coderstory  
    OP
       Jul 14, 2021
    @renmu123 请问这个 @types 要怎么安装
    catinsides
        5
    catinsides  
       Jul 15, 2021
    npm i [email protected]:你自己的.git
    RinHoshizora
        6
    RinHoshizora  
       Jul 16, 2021
    patch-package 了解一下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3094 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 13:29 · PVG 21:29 · LAX 06:29 · JFK 09:29
    ♥ Do have faith in what you're doing.