Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
aedf9f3115 | |||
25320bdf5c |
3
dist/npmts.check.js
vendored
3
dist/npmts.check.js
vendored
@ -2,9 +2,10 @@
|
|||||||
var plugins = require("./npmts.plugins");
|
var plugins = require("./npmts.plugins");
|
||||||
var paths = require("./npmts.paths");
|
var paths = require("./npmts.paths");
|
||||||
var npmts_promisechain_1 = require("./npmts.promisechain");
|
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 checkProjectTypings = function (configArg) {
|
||||||
var done = plugins.Q.defer();
|
var done = plugins.Q.defer();
|
||||||
|
exports.projectInfo = new projectinfo_1.ProjectinfoNpm(paths.cwd);
|
||||||
if (typeof exports.projectInfo.packageJson.typings == "undefined") {
|
if (typeof exports.projectInfo.packageJson.typings == "undefined") {
|
||||||
plugins.beautylog.error("please add typings field to package.json");
|
plugins.beautylog.error("please add typings field to package.json");
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "npmts",
|
"name": "npmts",
|
||||||
"version": "5.4.25",
|
"version": "5.4.26",
|
||||||
"description": "Write npm modules with TypeScript without hassle. TypeScript ready. Fully ES6.",
|
"description": "Write npm modules with TypeScript without hassle. TypeScript ready. Fully ES6.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -4,11 +4,11 @@ import { npmtsOra } from "./npmts.promisechain";
|
|||||||
|
|
||||||
import {ProjectinfoNpm} from "projectinfo";
|
import {ProjectinfoNpm} from "projectinfo";
|
||||||
|
|
||||||
export let projectInfo = new plugins.projectinfo.ProjectinfoNpm(paths.cwd);
|
export let projectInfo:ProjectinfoNpm;
|
||||||
|
|
||||||
let checkProjectTypings = (configArg) => {
|
let checkProjectTypings = (configArg) => {
|
||||||
let done = plugins.Q.defer();
|
let done = plugins.Q.defer();
|
||||||
|
projectInfo = new ProjectinfoNpm(paths.cwd);
|
||||||
if(typeof projectInfo.packageJson.typings == "undefined"){
|
if(typeof projectInfo.packageJson.typings == "undefined"){
|
||||||
plugins.beautylog.error(`please add typings field to package.json`);
|
plugins.beautylog.error(`please add typings field to package.json`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
Reference in New Issue
Block a user