next-routes-readme
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -15,3 +15,4 @@ #!/usr/bin/env node | ||
const addTableOfContents_1 = require("./utils/addTableOfContents"); | ||
const projectRoot = path_1.default.resolve(process.cwd()); | ||
const getArguments_1 = require("./utils/getArguments"); | ||
const projectRoot = (0, getArguments_1.getArgumentValue)('dir'); | ||
fs_1.default.writeFileSync(constants_1.constants.markdownFilename, ''); | ||
@@ -21,2 +22,5 @@ const currentFiles = []; | ||
async function main() { | ||
if (!projectRoot) { | ||
throw new Error('Please provide a valid project root directory.'); | ||
} | ||
console.log(`Generating docs for: ${projectRoot}`); | ||
@@ -23,0 +27,0 @@ await (0, traverseDictory_1.traverseDirectory)(projectRoot, async (file) => { |
{ | ||
"name": "next-routes-readme", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "Creates README badges from istanbul coverage report", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
Sorry, the diff of this file is not supported yet
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
47166
495