spec-change
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -7,2 +7,3 @@ #!/usr/bin/env node | ||
const path = require('path') | ||
const fs = require('fs') | ||
const { getDependentFiles } = require('../src') | ||
@@ -22,6 +23,10 @@ | ||
} | ||
if (!fs.existsSync(args['--folder'])) { | ||
console.error('Cannot find folder %s', args['--folder']) | ||
process.exit(1) | ||
} | ||
const folder = path.resolve(args['--folder']) | ||
debug('absolute folder: %s', folder) | ||
const files = globby.sync(folder + '/**/*.js') | ||
const files = globby.sync(folder + '/**/*.{js,ts}') | ||
debug('found %d files %o', files.length, files) | ||
@@ -28,0 +33,0 @@ |
{ | ||
"name": "spec-change", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Computes specs to re-run when files change", | ||
@@ -24,2 +24,3 @@ "main": "src/index.js", | ||
"dependency-tree": "^8.1.2", | ||
"execa-wrap": "^1.4.0", | ||
"prettier": "^2.8.1", | ||
@@ -26,0 +27,0 @@ "semantic-release": "^19.0.5" |
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
8513
138
5
1