我明白,因为
package.json
GitHub URL
,从1.1.65版开始,您可以将GitHub URL称为
foo:user/foo-project
像
seen here
.
但我还是建议
more complete URL instead
:
git+ssh://user@hostname:project.git#commit-ish
git+ssh://user@hostname/project.git#commit-ish
git+http://user@hostname/project/blah.git#commit-ish
git+https://user@hostname/project/blah.git#commit-ish
这样,您可以控制该方案(HTTPS或SSH),并可以检查使用了哪些凭据(HTTPS的缓存用户名/密码或SSH的私钥)。
这个
OP Wilson
评论
the discussion
加上
dist/
回购协议可能是一种选择,正如
in here
.
A.
prepare
script
可以在包中声明。json,例如
this one
.
"scripts": {
"build": "tsc",
"prepare": "npm run build"
},
正如威尔逊的
answer
重要的是
准备
剧本是
添加在分叉包装中
,
不
在使用包的项目中。