diff --git a/package.json b/package.json index fcdd9d4..e87b246 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "license": "MIT", "main": "./lib/CLI.js", "typings": "./lib/index.d.ts", - "version": "2.0.0-alpha-7", + "version": "2.0.0-alpha-8", "dependencies": { "chalk": "^2.3.0" }, diff --git a/src/Core/Actions/Typings.ts b/src/Core/Actions/Typings.ts index 4dbb275..5bab593 100644 --- a/src/Core/Actions/Typings.ts +++ b/src/Core/Actions/Typings.ts @@ -66,7 +66,7 @@ class Script extends UpdateScript { const modulesPath = Files.join(project.path, 'node_modules') return Promise.all(dependencies.map(async dependency => { - const dependencyPath = Files.join(modulesPath, dependency) + const dependencyPath = Files.join(modulesPath, dependency, 'package.json') if (await Files.exists(dependencyPath)) { const npm = await Files.json(dependencyPath) if (npm.types || npm.typings) {