Skip to content

Commit

Permalink
Fix rollup config error and CLI help (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mondeja authored Nov 18, 2024
1 parent 5776798 commit 8da11d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const cli = meow(
`
${chalk.yellow('Usage:')}
${chalk.bold('svglint')} [--config config.js] [--ci] [--debug] ${chalk.bold('file1.svg file2.svg')}
${chalk.bold('svglint')} --stdin [--config config.js] [--summary] [--ci] [--debug] < ${chalk.bold('file1.svg')}
${chalk.bold('svglint')} --stdin [--config config.js] [--no-summary] [--ci] [--debug] < ${chalk.bold('file1.svg')}
${chalk.yellow('Options:')}
${chalk.bold('--help')} Display this help text
Expand All @@ -53,7 +53,7 @@ const cli = meow(
${chalk.bold('--debug, -d')} Show debug logs
${chalk.bold('--ci, -C')} Only output to stdout once, when linting is finished
${chalk.bold('--stdin')} Read an SVG from stdin
${chalk.bold('--summary')} Print the summary at the end`,
${chalk.bold('--summary')} Print the summary at the end (default)`,
{
importMeta: import.meta,
flags: {
Expand Down
5 changes: 3 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import fs from 'node:fs';
import dynamicImportVars from '@rollup/plugin-dynamic-import-vars';
// eslint-disable-next-line unicorn/prefer-module
const packageJson = require('./package.json');

const packageJson = JSON.parse(fs.readFileSync('./package.json', 'utf8'));

const config = {
input: './src/svglint.js',
Expand Down

0 comments on commit 8da11d4

Please sign in to comment.