diff --git a/dist/npmts.check.js b/dist/npmts.check.js index 5961c2c..e1bfd28 100644 --- a/dist/npmts.check.js +++ b/dist/npmts.check.js @@ -2,9 +2,10 @@ var plugins = require("./npmts.plugins"); var paths = require("./npmts.paths"); var npmts_promisechain_1 = require("./npmts.promisechain"); -exports.projectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.cwd); +var projectinfo_1 = require("projectinfo"); var checkProjectTypings = function (configArg) { var done = plugins.Q.defer(); + exports.projectInfo = new projectinfo_1.ProjectinfoNpm(paths.cwd); if (typeof exports.projectInfo.packageJson.typings == "undefined") { plugins.beautylog.error("please add typings field to package.json"); process.exit(1); diff --git a/ts/npmts.check.ts b/ts/npmts.check.ts index e0e0957..3fbc1a6 100644 --- a/ts/npmts.check.ts +++ b/ts/npmts.check.ts @@ -4,11 +4,11 @@ import { npmtsOra } from "./npmts.promisechain"; import {ProjectinfoNpm} from "projectinfo"; -export let projectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.cwd); +export let projectInfo:ProjectinfoNpm; let checkProjectTypings = (configArg) => { let done = plugins.Q.defer(); - + projectInfo = new ProjectinfoNpm(paths.cwd); if(typeof projectInfo.packageJson.typings == "undefined"){ plugins.beautylog.error(`please add typings field to package.json`); process.exit(1);