Skip to content

Commit

Permalink
Use typings-core directly for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Mar 8, 2016
1 parent 2253b27 commit 7ca159a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
"glob": "^7.0.0",
"minimatch": "^3.0.0",
"parse-json": "^2.2.0",
"typings": "^0.7.4"
"typings-core": "^0.2.6"
}
}
9 changes: 6 additions & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var parse = require('parse-json')
var readFile = require('fs').readFile
var join = require('path').join
var Batch = require('batch')
var typings = require('typings')
var typings = require('typings-core')
var arrify = require('arrify')
var exec = require('child_process').exec
var Minimatch = require('minimatch').Minimatch
Expand Down Expand Up @@ -100,7 +100,10 @@ function execFiles (files) {
Object.keys(data.versions).forEach(function (version) {
arrify(data.versions[version]).forEach(function (location) {
typingsBatch.push(function (done) {
typings.installDependency(location, {
typings.installDependency({
name: name,
location: location
}, {
cwd: __dirname,
name: name,
ambient: ambientSources.indexOf(source) > -1
Expand Down Expand Up @@ -142,7 +145,7 @@ function execFiles (files) {
function cbify (done) {
return function (err, value) {
if (err) {
console.error(err)
console.error(err.stack || err.message || err)
process.exit(1)
}

Expand Down

0 comments on commit 7ca159a

Please sign in to comment.