From cf78839e126e2882b2634a1dfb04e1ab380bd72b Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 10 Jun 2016 02:27:04 +0200 Subject: [PATCH] update dependencies --- package.json | 6 ++++-- test/test.ts | 3 ++- ts/index.ts | 5 ++++- ts/smartcli.checks.ts | 2 +- ts/smartcli.classes.smartcli.ts | 4 +++- ts/smartcli.classes.ts | 6 ------ ts/smartcli.getters.ts | 2 +- ts/smartcli.interaction.ts | 2 +- ts/smartcli.interfaces.ts | 2 ++ ts/smartcli.plugins.ts | 2 +- ts/typings.json | 6 ------ 11 files changed, 19 insertions(+), 21 deletions(-) delete mode 100644 ts/smartcli.classes.ts delete mode 100644 ts/typings.json diff --git a/package.json b/package.json index 5972041..2cef7f4 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.13", "description": "nodejs wrapper for CLI related tasks", "main": "dist/index.js", - "typings":"dist/index.d.ts", + "typings": "dist/index.d.ts", "scripts": { "test": "(npmts)", "testm": "(cd ts/compile && gulp) && (node test.js jazz jam --awesome)", @@ -33,10 +33,12 @@ "commander": "^2.9.0", "inquirer": "^1.0.3", "smartparam": "0.0.7", + "typings-global": "^1.0.3", "yargs": "^4.7.1" }, "devDependencies": { "npmts": "^5.2.5", - "should": "^9.0.1" + "should": "^9.0.1", + "typings-test": "^1.0.1" } } diff --git a/test/test.ts b/test/test.ts index b2a2407..0d70be3 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1,4 +1,5 @@ -/// +import "typings-test"; + let smartcli = require("../dist/index.js"); let beautylog = require("beautylog"); let should = require("should"); diff --git a/ts/index.ts b/ts/index.ts index b3eab12..6767796 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,4 +1,4 @@ -/// +import "typings-global"; import * as interfaces from "./smartcli.interfaces" import * as plugins from "./smartcli.plugins" @@ -6,6 +6,9 @@ import * as SmartcliChecks from "./smartcli.checks"; import * as SmartcliGetters from "./smartcli.getters"; import * as SmartcliInteractions from "./smartcli.interaction"; +import {Smartcli} from "./smartcli.classes.smartcli"; +export {Smartcli} from "./smartcli.classes.smartcli"; + /* ------------------------------------------------ * * ---------- plugins for direct use -------------- * * ------------------------------------------------ */ diff --git a/ts/smartcli.checks.ts b/ts/smartcli.checks.ts index 11202e8..a605d3e 100644 --- a/ts/smartcli.checks.ts +++ b/ts/smartcli.checks.ts @@ -1,4 +1,4 @@ -/// +import "typings-global"; import "./smartcli.interfaces"; import plugins = require("./smartcli.plugins"); diff --git a/ts/smartcli.classes.smartcli.ts b/ts/smartcli.classes.smartcli.ts index a873d5c..0b518a1 100644 --- a/ts/smartcli.classes.smartcli.ts +++ b/ts/smartcli.classes.smartcli.ts @@ -1,3 +1,5 @@ -export class smartcli { +import "typings-global"; + +export class Smartcli { } \ No newline at end of file diff --git a/ts/smartcli.classes.ts b/ts/smartcli.classes.ts deleted file mode 100644 index 15feca6..0000000 --- a/ts/smartcli.classes.ts +++ /dev/null @@ -1,6 +0,0 @@ -export class smartcli { - - constructor(){ - - } -} \ No newline at end of file diff --git a/ts/smartcli.getters.ts b/ts/smartcli.getters.ts index 265db6f..0a67e84 100644 --- a/ts/smartcli.getters.ts +++ b/ts/smartcli.getters.ts @@ -1,4 +1,4 @@ -/// +import "typings-global"; import * as interfaces from "./smartcli.interfaces"; import plugins = require("./smartcli.plugins"); diff --git a/ts/smartcli.interaction.ts b/ts/smartcli.interaction.ts index 195166e..78f952d 100644 --- a/ts/smartcli.interaction.ts +++ b/ts/smartcli.interaction.ts @@ -1,4 +1,4 @@ -/// +import "typings-global"; import "./smartcli.interfaces"; import plugins = require("./smartcli.plugins"); diff --git a/ts/smartcli.interfaces.ts b/ts/smartcli.interfaces.ts index a6e0786..9ec434a 100644 --- a/ts/smartcli.interfaces.ts +++ b/ts/smartcli.interfaces.ts @@ -1,3 +1,5 @@ +import "typings-global"; + export interface CliOption { name: string; specified:boolean; diff --git a/ts/smartcli.plugins.ts b/ts/smartcli.plugins.ts index 4d6ebee..49aae9f 100644 --- a/ts/smartcli.plugins.ts +++ b/ts/smartcli.plugins.ts @@ -1,4 +1,4 @@ -/// +import "typings-global"; export let path = require("path"); export let beautylog = require("beautylog"); diff --git a/ts/typings.json b/ts/typings.json deleted file mode 100644 index 2223727..0000000 --- a/ts/typings.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "globalDependencies": { - "mocha": "registry:dt/mocha#2.2.5+20151023103246", - "node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts" - } -}