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 2022-09-08 22:22:51 -04:00 committed by GitHub
parent 6e3dc1e9d9
commit 1b30ff83a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

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 });
}

View File

@ -42,6 +42,7 @@
"babel-plugin-inline-react-svg": "^2.0.1",
"@babel/preset-env": "^7.5.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.18.6",
"babel-eslint": "^8.0.3",
"babel-loader": "^8.0.0-beta.4",
"clean-webpack-plugin": "^4.0.0",