Skip to content

Commit

Permalink
fix: upgrade failure using docker
Browse files Browse the repository at this point in the history
  • Loading branch information
chenos committed Nov 1, 2022
1 parent 7d73194 commit af32f08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions packages/core/cli/src/commands/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ module.exports = (cli) => {
.option('--raw')
.option('-S|--skip-code-update')
.action(async (options) => {
if (!hasTsNode()) {
return;
}
promptForTs();
if (hasTsNode()) promptForTs();
if (hasCorePackages()) {
// await run('yarn', ['install']);
await runAppCommand('upgrade');
Expand All @@ -28,6 +25,11 @@ module.exports = (cli) => {
await runAppCommand('upgrade');
return;
}
await runAppCommand('upgrade');
// If ts-node is not installed, do not do the following
if (!hasTsNode()) {
return;
}
const version = await getVersion();
await run('yarn', ['add', '@nocobase/cli', '@nocobase/devtools', '-W']);
const clientPackage = resolve(process.cwd(), `packages/${APP_PACKAGE_ROOT}/client/package.json`);
Expand Down
8 changes: 4 additions & 4 deletions packages/core/client/src/pm/PluginManagerLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ export const SettingsCenterDropdown = () => {
title: t('Workflow'),
path: 'workflow/workflows',
},
{
title: t('Graph Collections'),
path: 'graph/collections',
},
// {
// title: t('Graph Collections'),
// path: 'graph/collections',
// },
];
return (
<ActionContext.Provider value={{ visible, setVisible }}>
Expand Down

0 comments on commit af32f08

Please sign in to comment.