yalc icon indicating copy to clipboard operation
yalc copied to clipboard

[Ques] circle dependies will install pkg into node_modules, link location will replace by node_modules/xx,not .yalc/file

Open ChenYCL opened this issue 4 years ago • 0 comments

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

ChenYCL avatar Aug 19 '21 09:08 ChenYCL