File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/cli-packages/dataMigrate/src/commands Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,20 @@ export async function handler({
2020 if ( importDbClientFromDist ) {
2121 if ( ! fs . existsSync ( distPath ) ) {
2222 console . warn (
23- `Can't find api dist at ${ distPath } . You may need to build first: yarn rw build api` ,
23+ `Can't find api dist at ${ distPath } . You may need to build first: ` +
24+ 'yarn rw build api' ,
2425 )
2526 process . exitCode = 1
2627 return
2728 }
2829
29- const distLibDbPath = path . join ( distPath , 'lib' , 'db.js' )
30+ const distLibPath = path . join ( distPath , 'lib' )
31+ const distLibDbPath = path . join ( distLibPath , 'db.js' )
3032
3133 if ( ! fs . existsSync ( distLibDbPath ) ) {
3234 console . error (
33- `Can't find db.js at ${ distLibDbPath } . Redwood expects the db.js file to be in the ${ path . join (
34- distPath ,
35- 'lib' ,
36- ) } directory`,
35+ `Can't find db.js at ${ distLibDbPath } . CedarJS expects the db.js ` +
36+ `file to be in the ${ distLibPath } directory` ,
3737 )
3838 process . exitCode = 1
3939 return
You can’t perform that action at this time.
0 commit comments