fix: ohif cli bug for linking (#2892)

* fix(cli):Make the linkage in the root node modules

* fix(cli):Fix the index.tsx referencce
This commit is contained in:
Bill Wallace authored and GitHub committed 2022-09-08 22:22:51 -04:00
1 parent 6e3dc1e9d9
commit 1b30ff83a5
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -36,10 +36,13 @@ async function linkPackage(packageDir, options, addToConfig, keyword) {
results = await execa(`yarn`, ['link']);
// change directory to OHIF Platform root and execute yarn link
process.chdir(viewerDirectory);
process.chdir(`${viewerDirectory}/../..`);
results = await execa(`yarn`, ['link', packageName]);
console.log(results.stdout);
// change directory to viewer packages and add the config item
process.chdir(viewerDirectory);
addToConfig(packageName, { version });
}