@hipster/mdx2-issue-checker
Advanced tools
Comparing version 0.0.6 to 0.0.7
15
index.js
@@ -11,13 +11,14 @@ #!/usr/bin/env node | ||
if(!process.argv.includes('--verbose')) { | ||
process.argv = process.argv.concat(['--silent']) | ||
} else { | ||
const index = process.argv.indexOf('--verbose'); | ||
process.argv.splice(index, 1); | ||
} | ||
const inputs = process.argv.slice(2) | ||
const isAllFlags = inputs.every((input) => input.startsWith('-')) | ||
if(process.argv.length === 3) { | ||
if(isAllFlags) { | ||
process.argv = process.argv.concat(['.']) | ||
} | ||
if(!inputs.includes('--watch')) { | ||
const silentTip = !inputs.includes('--silent') ? ' You can also run it with the --silent flag if you want only errors to be reported.' : '' | ||
console.log(`Tip: you can run this command with the --watch flag to continuously check for issues as you change your files.${silentTip}\n`) | ||
} | ||
process.argv = process.argv.concat(['--use', require.resolve('remark-mdx')]) | ||
@@ -24,0 +25,0 @@ |
{ | ||
"name": "@hipster/mdx2-issue-checker", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Wrapper around remark-cli to make it easier to check for MDX v2 syntax issues", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
2521