Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
fix(core): Fix failure on missing tsconfig.json > files
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
nadeesha committed May 27, 2020
1 parent a882551 commit 3b68c11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { present } from "./presenter";
export const run = (argv = process.argv.slice(2), output = console.log) => {
const tsConfigPath = minimist(argv).p || "tsconfig.json";
const { project } = initialize(path.join(process.cwd(), tsConfigPath));
const entrypoints: string[] = require(path.join(process.cwd(), tsConfigPath))?.files?.map((file: string) => path.join(process.cwd(), file));
const entrypoints: string[] = require(path.join(process.cwd(), tsConfigPath))?.files?.map((file: string) => path.join(process.cwd(), file)) || [];

const state = new State();

Expand Down

0 comments on commit 3b68c11

Please sign in to comment.