workspace-pack icon indicating copy to clipboard operation
workspace-pack copied to clipboard

Fails when tsconfig.json with "extends" is used

Open alex-lmi opened this issue 7 years ago • 6 comments

Since workspace-pack calls yarn build inside the _build directory it's possible that this will fail if the package contains a tsconfig.json file that refers to another tsconfig.json file in the workspace' root directory. I think the folder hierarchy inside the _build directory should equal the one in the actual workspace.

alex-lmi avatar Sep 30 '19 15:09 alex-lmi

@tamagokun Sorry for bothering, but did you had a chance to take a look?

Best, Alex

alex-lmi avatar Oct 09 '19 13:10 alex-lmi

ahh, interesting, so if the structure was _build > package_name > ... instead of just _build > ... it should work, right?

tamagokun avatar Oct 09 '19 14:10 tamagokun

Exactly :)

alex-lmi avatar Oct 09 '19 14:10 alex-lmi

@tamagokun Another way of solving this would be to provide the intermediate _build directory as command line argument like workspace-pack --build-dir=./_build/package-name package-name. That would also help if the _build folder is already used by other stuff.

alex-lmi avatar Oct 09 '19 14:10 alex-lmi

yeah, good idea, actually, i'll add that in and a --output option from another issue.

tamagokun avatar Oct 09 '19 14:10 tamagokun

@alex-lmi i've added a --build-dir cli flag to 0.0.6. You should be able to specify where you'd like the build to go now. Going to close this now, but let me know if it's not working for you.

tamagokun avatar Oct 10 '19 14:10 tamagokun