From 0db041f4ca0e7f125bc1febc037ece742503f340 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Mon, 21 Jan 2019 18:12:34 -0800 Subject: [PATCH] Remove used dependencies from package --- package-lock.json | 28 +++------------------------- package.json | 6 +----- src/index.ts | 7 +++---- 3 files changed, 7 insertions(+), 34 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9008774a5..fcbfc27c9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4,12 +4,6 @@ "lockfileVersion": 1, "requires": true, "dependencies": { - "@types/arrify": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/arrify/-/arrify-1.0.2.tgz", - "integrity": "sha512-gB1Oqypj/WbMjnWyCcvQdynRyfusKtqzUpt+EN/OtgFcjikC7ZV4qzS3SLbO1Ai2B0iVSgWvwR9A49lZGfivYg==", - "dev": true - }, "@types/chai": { "version": "4.0.10", "resolved": "https://registry.npmjs.org/@types/chai/-/chai-4.0.10.tgz", @@ -22,12 +16,6 @@ "integrity": "sha512-q3zfJvaTroV5BjAAR+peTHEGAAhGrPX0z2EzCzpt2mwFA+qzUn2nigJLqSekXRtdULKmT8am7zjvTMZSapIgHw==", "dev": true }, - "@types/minimist": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/@types/minimist/-/minimist-1.2.0.tgz", - "integrity": "sha1-aaI6OtKcrwCX8G7aWbNh7i8GOfY=", - "dev": true - }, "@types/mocha": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.0.0.tgz", @@ -67,11 +55,6 @@ "@types/node": "*" } }, - "@types/yn": { - "version": "github:types/npm-yn#ca75f6c82940fae6a06fb41d2d37a6aa9b4ea8e9", - "from": "github:types/npm-yn#ca75f6c82940fae6a06fb41d2d37a6aa9b4ea8e9", - "dev": true - }, "abbrev": { "version": "1.0.9", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.0.9.tgz", @@ -121,11 +104,6 @@ "sprintf-js": "~1.0.2" } }, - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=" - }, "asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", @@ -1259,9 +1237,9 @@ } }, "yn": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yn/-/yn-2.0.0.tgz", - "integrity": "sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.0.0.tgz", + "integrity": "sha512-+Wo/p5VRfxUgBUGy2j/6KX2mj9AYJWOHuhMjMcbBFc3y54o9/4buK1ksBvuiK01C3kby8DH9lSmJdSxw+4G/2Q==" } } } diff --git a/package.json b/package.json index 7529c3079..3ecb328bc 100644 --- a/package.json +++ b/package.json @@ -48,17 +48,14 @@ }, "homepage": "https://github.com/TypeStrong/ts-node", "devDependencies": { - "@types/arrify": "^1.0.1", "@types/chai": "^4.0.4", "@types/diff": "^3.2.1", - "@types/minimist": "^1.2.0", "@types/mocha": "^5.0.0", "@types/node": "^10.0.3", "@types/proxyquire": "^1.3.28", "@types/react": "^16.0.2", "@types/semver": "^5.3.34", "@types/source-map-support": "^0.4.0", - "@types/yn": "types/npm-yn#ca75f6c82940fae6a06fb41d2d37a6aa9b4ea8e9", "chai": "^4.0.1", "istanbul": "^0.4.0", "mocha": "^5.0.1", @@ -76,10 +73,9 @@ }, "dependencies": { "arg": "^4.1.0", - "arrify": "^1.0.0", "diff": "^3.1.0", "make-error": "^1.1.1", "source-map-support": "^0.5.6", - "yn": "^2.0.0" + "yn": "^3.0.0" } } diff --git a/src/index.ts b/src/index.ts index 0deecf994..ac21dd707 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,7 @@ import { relative, basename, extname, resolve, dirname, join } from 'path' import { EOL } from 'os' import sourceMapSupport = require('source-map-support') -import yn = require('yn') -import arrify = require('arrify') +import yn from 'yn' import { BaseError } from 'make-error' import * as util from 'util' import * as _ts from 'typescript' @@ -189,8 +188,8 @@ export function register (opts: Options = {}): Register { outputs: Object.create(null) } - const ignore = options.skipIgnore ? [] : arrify( - options.ignore || '/node_modules/' + const ignore = options.skipIgnore ? [] : ( + options.ignore || ['/node_modules/'] ).map(str => new RegExp(str)) // Install source map support and read from memory cache.