Comparing version 1.4.0 to 1.5.0
@@ -9,2 +9,3 @@ #!/usr/bin/env node | ||
.boolean('check') | ||
.boolean('strict') | ||
.argv; | ||
@@ -18,2 +19,3 @@ | ||
check: argv.check, | ||
strict: argv.strict, | ||
}); | ||
@@ -20,0 +22,0 @@ } catch (err) { |
1.5.0 / 2017-10-12 | ||
================== | ||
* feat: enable strict mode with --strict (#10) | ||
1.4.0 / 2017-04-14 | ||
@@ -3,0 +8,0 @@ ================== |
@@ -16,2 +16,3 @@ 'use strict'; | ||
check: false, | ||
strict: false, | ||
}; | ||
@@ -35,3 +36,3 @@ | ||
if (isCheck) return check(files, pkg.files || []); | ||
if (isCheck) return check(files, pkg.files || [], options.strict); | ||
@@ -101,5 +102,5 @@ pkg.files = files; | ||
function check(files, originalFiles) { | ||
function check(files, originalFiles, strict) { | ||
const msg = `pkg.files should equal to ${toArray(files)}, but got ${toArray(originalFiles)}`; | ||
assert(files.length === originalFiles.length, msg); | ||
if (strict) assert(files.length === originalFiles.length, msg); | ||
for (const file of files) { | ||
@@ -106,0 +107,0 @@ assert(originalFiles.indexOf(file) > -1, msg); |
{ | ||
"name": "ypkgfiles", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"description": "Yet another pkgfiles that generate pkg.files automatically", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
8290
115