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

Commit

Permalink
fix(): set context right immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkraemer authored and danbucholtz committed Oct 10, 2017
1 parent 82fbfee commit 802b329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export * from './generators';
export { getDeepLinkData } from './deep-linking/util';

import { generateContext } from './util/config';
import { getAppScriptsVersion } from './util/helpers';
import { getAppScriptsVersion, setContext } from './util/helpers';
import { Logger } from './logger/logger';

export function run(task: string) {
Expand All @@ -30,6 +30,7 @@ export function run(task: string) {

try {
const context = generateContext(null);
setContext(context);
require(`../dist/${task}`)[task](context).catch((err: any) => {
errorLog(task, err);
});
Expand Down

0 comments on commit 802b329

Please sign in to comment.