Comparing version 1.0.1 to 1.0.2
15
index.js
'use strict' | ||
const path = require('path') | ||
const meow = require('meow') | ||
const readPkgUp = require('read-pkg-up') | ||
// borrowed from meow, to prevent referencing moggies package.json | ||
// prevent caching of this module so module.parent is always accurate | ||
delete require.cache[__filename] | ||
const parentDir = path.dirname(module.parent.filename) | ||
module.exports = function moggie(opts, cli) { | ||
opts = Object.assign({ | ||
argv: process.argv.slice(2), | ||
help: false, | ||
minimistOptions: {} | ||
minimistOptions: {}, | ||
pkg: readPkgUp.sync({ // borrowed from meow, to prevent referencing moggies package.json | ||
cwd: parentDir, | ||
normalize: false | ||
}).pkg | ||
}, opts) | ||
@@ -10,0 +21,0 @@ |
{ | ||
"name": "moggie", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "moggie wraps a lot meow to support subcommands.", | ||
@@ -17,3 +17,4 @@ "main": "index.js", | ||
"loud-rejection": "^1.6.0", | ||
"meow": "^3.7.0" | ||
"meow": "^3.7.0", | ||
"read-pkg-up": "^2.0.0" | ||
}, | ||
@@ -20,0 +21,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138181
112
3
+ Addedread-pkg-up@^2.0.0
+ Addedfind-up@2.1.0(transitive)
+ Addedload-json-file@2.0.0(transitive)
+ Addedlocate-path@2.0.0(transitive)
+ Addedp-limit@1.3.0(transitive)
+ Addedp-locate@2.0.0(transitive)
+ Addedp-try@1.0.0(transitive)
+ Addedpath-exists@3.0.0(transitive)
+ Addedpath-type@2.0.0(transitive)
+ Addedread-pkg@2.0.0(transitive)
+ Addedread-pkg-up@2.0.0(transitive)
+ Addedstrip-bom@3.0.0(transitive)