Skip to content

Commit ecc9438

Browse files
committed
fix(api): build API if exists
1 parent 8654174 commit ecc9438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = () => {
3434

3535
// NOTE: API is optional. Build it only if it exists
3636
let apiLocation = path.resolve(process.cwd(), api_location);
37-
if (fs.existsSync(apiLocation) === true) {
37+
if (fs.existsSync(apiLocation) === true && fs.existsSync(path.join(apiLocation, 'host.json'))) {
3838
const apiBuildCommand = [
3939
'CI=1',
4040
concurrentlyBin,

0 commit comments

Comments
 (0)