yalc
yalc copied to clipboard
[Ques] circle dependies will install pkg into node_modules, link location will replace by node_modules/xx,not .yalc/file
example : @pkg/a, @pkg/b,@pkg/c use lerna config.
// @pkg/a package.json
"dependencies": {
"@pkg/b":"x.x",
"@pkg/c":"x.x",
}
// @pkg/b package.json
"dependencies": {
"@pkg/a":"x.x",
"@pkg/c":"x.x",
}
when yalc publish @pkg/a @pkg/b @pkg/c
in some projecet , yalc add @pkg/a @pkg/b @pkg/c, will generate
@pkg
- a/
- b/
- c/
in node_modules . the application project link @pkg/* location always is node_modules/@pkg/*
i use nodemon watch @pkg/* file ,if file changed will automatically trigger yalc push @pkg/*
.yalc folder will update and reload page , test some ui component
// @pkg/a package.json
"dependencies": {
}
// @pkg/b package.json
"dependencies": {
}
above configuration is normal