Enable npm install of forked hyperapp versions
See original GitHub issueSince I have a pull request out (“keyed-vdom”), and I would like to continue my personal project using my forked version of hyperapp, I tried
npm install zaceno/hyperapp#keyed-vdom
(as well as adding that line to dependencies in my package json and doing npm install).
But that does’nt work… npm pulls down something for me that looks right, but there is no dist/
folder. Nothing gets built. And rollup config file is missing besides.
The only way of getting “my” hyperapp-branch into my project is to:
cd node_modules
git clone https://github.com/zaceno/hyperapp.git
cd hyperapp
git checkout keyed-vdom
npm install
I don’t know enough about package.json
scripts and publishing packages on npm to know if it’s possible, but it would be great just to be able to specify a forked repo and branch in the "dependencies": {...
of my project. And have npm install
just do all the work.
Make sense?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (6 by maintainers)
@lukejackson thanks for the tip, but even if that worked, I would be adding something to my fork that wouldn’t belong in any PR’s I make from that fork later. So I don’t really need the tips myself so much as want it in the main repo (wishing it was there already).
I’ll look into making a PR specifically for this (later, when I’m done with the PR I’m already working on 😉 )
@zaceno I am not 100% on this but could you add a
postinstall
script to thepackage.json
of your fork. It should build the project (thus creating the dist folder and contents) upon install.Point npm to your fork of hyperapp in the
dependencies
of your projectand run
npm install