Skip to content
This repository has been archived by the owner on Jul 2, 2020. It is now read-only.

Commit

Permalink
fix: process (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
echosoar committed Apr 8, 2020
1 parent 5c18422 commit 53da26f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/faas-cli-command-core/src/utils/loadSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { existsSync } from 'fs';
import { resolve } from 'path';

export const getSpecFile = baseDir => {
baseDir = baseDir || process.cwd();
const specPath = [
'f.yml',
'f.yaml',
'serverless.yml',
'serverless.yaml',
].find(spec => existsSync(resolve(baseDir || process.cwd(), spec)));
].find(spec => existsSync(resolve(baseDir, spec)));
if (specPath) {
return {
type: 'yaml',
Expand Down

0 comments on commit 53da26f

Please sign in to comment.