diff --git a/notNeededPackages.json b/notNeededPackages.json index c9837c6e87..99972d7090 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -4356,6 +4356,12 @@ "sourceRepoURL": "https://streams.spec.whatwg.org", "asOfVersion": "3.2.1" }, + { + "libraryName": "which-pm", + "typingsPackageName": "which-pm", + "sourceRepoURL": "https://github.com/zkochan/which-pm#readme", + "asOfVersion": "1.1.0" + }, { "libraryName": "winston", "typingsPackageName": "winston", diff --git a/types/which-pm/index.d.ts b/types/which-pm/index.d.ts deleted file mode 100644 index c1eaea5dd0..0000000000 --- a/types/which-pm/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for which-pm 1.0 -// Project: https://github.com/zkochan/which-pm#readme -// Definitions by: Jorge Gonzalez -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 - -interface PMInfo { - name: string; - version?: string; -} - -declare function whichpm(pkgPath: string): Promise; - -export = whichpm; diff --git a/types/which-pm/tsconfig.json b/types/which-pm/tsconfig.json deleted file mode 100644 index 553003f652..0000000000 --- a/types/which-pm/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "which-pm-tests.ts" - ] -} diff --git a/types/which-pm/tslint.json b/types/which-pm/tslint.json deleted file mode 100644 index 3db14f85ea..0000000000 --- a/types/which-pm/tslint.json +++ /dev/null @@ -1 +0,0 @@ -{ "extends": "dtslint/dt.json" } diff --git a/types/which-pm/which-pm-tests.ts b/types/which-pm/which-pm-tests.ts deleted file mode 100644 index 7f91b09e64..0000000000 --- a/types/which-pm/which-pm-tests.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -import whichpm = require("which-pm"); - -whichpm(process.cwd()) - .then(pm => { - pm; // $ExpectType PMInfo | null - if (pm !== null && pm !== undefined) { - pm.name; // $ExpectType string - pm.version; // $ExpectType string | undefined - } - }) - .catch(err => console.error(err)); - -const _wpm = whichpm(process.cwd()); // $ExpectType Promise