yarn link 本地的 package
开发过程中,想使用源码,可以使用 yarn 来链接到本地
// OLD
"dependencies": {
"@namespace/package-name": "1.0.0"
}
// new
"dependencies": {
"@namespace/package-name": "link:../dev/package-name"
}
// OLD
"dependencies": {
"@namespace/package-name": "1.0.0"
}
// new
"dependencies": {
"@namespace/package-name": "link:../dev/package-name"
}