@entro314labs/markdownfix 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +4 -2
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -250,7 +250,8 @@ async function runNuclearMode(files, options = {}) {
250
250
  // Step 3: ESLint auto-fix
251
251
  if (!quiet) console.log('Step 3/4: Running ESLint auto-fix...');
252
252
  try {
253
- const fileList = files.join(' ');
253
+ // Quote each file path to handle spaces and special characters
254
+ const fileList = files.map(f => `"${f}"`).join(' ');
254
255
  const eslintCmd = `npx eslint --config "${configPath}" --fix ${fileList}`;
255
256
 
256
257
  try {
@@ -273,7 +274,8 @@ async function runNuclearMode(files, options = {}) {
273
274
  // Step 4: ESLint linting
274
275
  if (!quiet) console.log('Step 4/4: Running ESLint linting...');
275
276
  try {
276
- const fileList = files.join(' ');
277
+ // Quote each file path to handle spaces and special characters
278
+ const fileList = files.map(f => `"${f}"`).join(' ');
277
279
  const eslintCmd = `npx eslint --config "${configPath}" ${fileList}`;
278
280
 
279
281
  execSync(eslintCmd, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entro314labs/markdownfix",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "description": "Opinionated markdown formatter and linter for MD, MDX, MDC, and MDD files using Remark/Unified ecosystem",
5
5
  "type": "module",
6
6
  "repository": {