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:
parent
6e3dc1e9d9
commit
1b30ff83a5
@ -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 });
|
||||
}
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user