Skip to content

Conversation

mightyiam
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Dec 10, 2016

Coverage Status

Coverage remained the same at 100.0% when pulling c677aa5 on mightyiam:sub-dir into 09c2fe3 on tunnckoCore:master.

Copy link
Contributor Author

@mightyiam mightyiam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

try {
return fs.statSync(fp).isDirectory()
} catch(err) {
} catch (err) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is simply the commit from #6 merged in.

var path = require('path')
var modules = require('global-modules')
var cwd = process.cwd()
var getPkgDir = require('pkg-dir').sync
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"devDependencies": {
"assertit": "^0.1.0"
"assertit": "^0.1.0",
"mkdirp": "^0.5.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


'use strict'

var mkdirp = require('mkdirp')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test.equal(actual2, expected)
done()
process.chdir('..')
})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these tests are simply duplicates of the "local" tests, with changing of the directory (and returning it afterwards).

@tunnckoCore
Copy link
Owner

I just was thinking to allow users to pass different cwd through options. Will this work for your case?

I just don't want locking to some of these deps. Also find-up is slow.

Thanks for the tests, I'll get them in new release.

@tunnckoCore
Copy link
Owner

tunnckoCore commented Dec 11, 2016

I think new updates resolves this case and proof is in 1c26584 :)

Will close, let me know if something is not okey.
Thanks again for contributions and ideas!

@mightyiam mightyiam deleted the sub-dir branch December 11, 2016 14:08
@mightyiam
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants