ultracite 4.2.11 → 4.2.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/package.json +1 -1
  2. package/scripts/run.mjs +9 -5
package/package.json CHANGED
@@ -39,7 +39,7 @@
39
39
  "type": "git",
40
40
  "url": "git+https://github.com/haydenbleasel/ultracite.git"
41
41
  },
42
- "version": "4.2.11",
42
+ "version": "4.2.13",
43
43
  "devDependencies": {
44
44
  "@biomejs/biome": "1.9.4"
45
45
  },
package/scripts/run.mjs CHANGED
@@ -72,7 +72,7 @@ program
72
72
  }
73
73
 
74
74
  // Install dependencies
75
- execSync('pnpm add -D --save-exact ultracite @biomejs/biome');
75
+ execSync('pnpm add -D --save-exact ultracite @biomejs/biome@1.9.4');
76
76
 
77
77
  // Write the config files
78
78
  execSync('mkdir -p .vscode');
@@ -96,9 +96,11 @@ program
96
96
  program
97
97
  .command('lint')
98
98
  .description('Run Biome linter without fixing files')
99
- .action(() => {
99
+ .argument('[files...]', 'specific files to lint (optional)')
100
+ .action((files) => {
100
101
  try {
101
- execSync('npx biome check ./', { stdio: 'inherit' });
102
+ const target = files.length > 0 ? files.join(' ') : './';
103
+ execSync(`npx biome check ${target}`, { stdio: 'inherit' });
102
104
  } catch (error) {
103
105
  console.error('Failed to run Ultracite:', error.message);
104
106
  process.exit(1);
@@ -108,9 +110,11 @@ program
108
110
  program
109
111
  .command('format')
110
112
  .description('Run Biome linter and fixes files')
111
- .action(() => {
113
+ .argument('[files...]', 'specific files to format (optional)')
114
+ .action((files) => {
112
115
  try {
113
- execSync('npx biome check --write ./', { stdio: 'inherit' });
116
+ const target = files.length > 0 ? files.join(' ') : './';
117
+ execSync(`npx biome check --write ${target}`, { stdio: 'inherit' });
114
118
  } catch (error) {
115
119
  console.error('Failed to run Ultracite:', error.message);
116
120
  process.exit(1);