From 5d0aedb5bde13407ad9be7042f54001c62e15289 Mon Sep 17 00:00:00 2001 From: "FUJI Goro (gfx)" Date: Thu, 14 Dec 2017 11:13:17 +0900 Subject: [PATCH 1/2] do not depend on @types, which are not runtime libraries --- package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index a769493a7..296bdd212 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,14 @@ }, "homepage": "https://github.com/TypeStrong/ts-node", "devDependencies": { + "@types/arrify": "^1.0.1", + "@types/diff": "^3.2.1", + "@types/minimist": "^1.2.0", + "@types/mkdirp": "^0.5.0", + "@types/node": "^8.0.27", + "@types/source-map-support": "^0.4.0", + "@types/v8flags": "types/npm-v8flags#de224ae1cd5fd7dbb4e7158a6cc7a29e5315930d", + "@types/yn": "types/npm-yn#ca75f6c82940fae6a06fb41d2d37a6aa9b4ea8e9", "@types/chai": "^4.0.4", "@types/mocha": "^2.2.42", "@types/proxyquire": "^1.3.28", @@ -67,14 +75,6 @@ "typescript": "^2.4.1" }, "dependencies": { - "@types/arrify": "^1.0.1", - "@types/diff": "^3.2.1", - "@types/minimist": "^1.2.0", - "@types/mkdirp": "^0.5.0", - "@types/node": "^8.0.27", - "@types/source-map-support": "^0.4.0", - "@types/v8flags": "types/npm-v8flags#de224ae1cd5fd7dbb4e7158a6cc7a29e5315930d", - "@types/yn": "types/npm-yn#ca75f6c82940fae6a06fb41d2d37a6aa9b4ea8e9", "arrify": "^1.0.0", "chalk": "^2.3.0", "diff": "^3.1.0", From 3f66c44ed30ccf55f6037d2b9671151594a36001 Mon Sep 17 00:00:00 2001 From: "FUJI Goro (gfx)" Date: Fri, 15 Dec 2017 13:57:39 +0900 Subject: [PATCH 2/2] test package.json's dependencies not to include @types --- src/index.spec.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/index.spec.ts b/src/index.spec.ts index 567e84dc0..bb17919cd 100644 --- a/src/index.spec.ts +++ b/src/index.spec.ts @@ -15,8 +15,16 @@ const SOURCE_MAP_REGEXP = /\/\/# sourceMappingURL=data:application\/json;charset describe('ts-node', function () { this.timeout(10000) - it('should export the correct version', function () { - expect(VERSION).to.equal(require('../package.json').version) + describe('package.json', function () { + it('should export the correct version', function () { + expect(VERSION).to.equal(require('../package.json').version) + }) + + it('should not include @types in dependencies', function () { + const deps = require('../package.json').dependencies + // tslint:disable-next-line + expect(Object.keys(deps).filter((name) => /^@types\//.test(name))).to.be.empty + }) }) describe('cli', function () {