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

Commit

Permalink
fix: add getPluginCommands and read tsconfig when no .git
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 1, 2018
1 parent 40ba956 commit 623204e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ export class Config implements IConfig {

private async _tsConfig(): Promise<TSConfig | undefined> {
try {
// ignore if no .git as it's likely not in dev mode
if (!await fs.pathExists(path.join(this.root, '.git'))) return
// // ignore if no .git as it's likely not in dev mode
// if (!await fs.pathExists(path.join(this.root, '.git'))) return

const tsconfigPath = path.join(this.root, 'tsconfig.json')
const tsconfig = await readJSON(tsconfigPath)
Expand Down
2 changes: 2 additions & 0 deletions src/engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ export interface IEngine {
runHook<T extends {}>(event: string, opts: T): Promise<void>

load(config: IConfig): Promise<void>

getPluginCommands(plugin: IPlugin): Promise<ICachedCommand[]>
}

0 comments on commit 623204e

Please sign in to comment.