The collapsed repo does not add itself to the .bin

Launch yarn add graphql-typewriter

adds a symbolic link to the executable inside node_modules/.bin/

. However, by running the same command on a forked version of the same package:

yarn add  https://github.com/teambirowsky/graphql-typewriter#0.4.0

      

does not add a symbolic link to node_modules/.bin/

.

What I need to know about npm today:}

+3


source to share


1 answer


You need to publish the forked version to npm. In package.json

, the prepublish

script (run before the package is packaged and published, and on local npm install

without any arguments) compiles the files, and the bin

script adds a symbolic link.



+1


source







All Articles