Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: wrap ignores in quotes #226

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import process from 'node:process';
import path from 'node:path';
import { program } from 'commander';
import picocolors from 'picocolors';
import unquote from 'unquote';
import fusv from './index.js';

const { version } = JSON.parse(fs.readFileSync(new URL('package.json', import.meta.url)));
Expand All @@ -20,7 +21,7 @@ async function main() {
const directories = program.args;
const programOptions = program.opts();
const options = {
ignore: programOptions.ignore.split(','),
ignore: programOptions.ignore.split(',').map(i => unquote(i)),
fileExtensions: programOptions.extension
};

Expand Down
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
"glob": "^7.2.3",
"picocolors": "^1.0.0",
"postcss": "^8.4.21",
"postcss-scss": "^4.0.6"
"postcss-scss": "^4.0.6",
"unquote": "^1.1.1"
},
"devDependencies": {
"npm-run-all": "^4.1.5",
Expand Down