Skip to content

Commit ad27685

Browse files
committed
chore(dataMigrate): Format source (line length)
1 parent d32b02f commit ad27685

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/cli-packages/dataMigrate/src/commands/upHandler.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)