File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,16 @@ const fs = require('fs-extra');
22const path = require ( 'path' ) ;
33const cliProgress = require ( 'cli-progress' ) ;
44const DeployDir = require ( './DeployDir' ) ;
5- const { logStage } = require ( './utils' ) ;
5+ const { logStage, displayError } = require ( './utils' ) ;
66const Config = require ( './Config' ) ;
77
88exports . deploy = async ( { directory, auth } ) => {
9+ if ( ! ( await fs . pathExists ( path . join ( process . cwd ( ) , 'node_modules' , '@cubejs-backend/server-core' ) ) ) ) {
10+ await displayError (
11+ '@cubejs-backend/server-core dependency not found. Please run deploy command from project root directory and ensure npm install has been run.'
12+ ) ;
13+ }
14+
915 const config = new Config ( ) ;
1016 await config . loadDeployAuth ( ) ;
1117 const bar = new cliProgress . SingleBar ( {
You can’t perform that action at this time.
0 commit comments