ultracite 4.1.11 → 4.1.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.
package/biome.json CHANGED
@@ -121,8 +121,5 @@
121
121
  "clientKind": "git",
122
122
  "useIgnoreFile": true,
123
123
  "defaultBranch": "main"
124
- },
125
- "files": {
126
- "ignore": ["**/components/ui/**"]
127
124
  }
128
125
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Hayden Bleasel <hello@haydenbleasel.com>",
3
3
  "bin": {
4
- "ultracite": "./scripts/run.js"
4
+ "ultracite": "./scripts/run.mjs"
5
5
  },
6
6
  "auto": {
7
7
  "plugins": [
@@ -18,7 +18,7 @@
18
18
  "description": "Strict, opinionated linting config for modern TypeScript apps.",
19
19
  "files": [
20
20
  "biome.json",
21
- "scripts/run.js"
21
+ "scripts/run.mjs"
22
22
  ],
23
23
  "homepage": "https://github.com/haydenbleasel/ultracite#readme",
24
24
  "keywords": [
@@ -39,8 +39,11 @@
39
39
  "type": "git",
40
40
  "url": "git+https://github.com/haydenbleasel/ultracite.git"
41
41
  },
42
- "version": "4.1.11",
42
+ "version": "4.1.13",
43
43
  "devDependencies": {
44
44
  "@biomejs/biome": "^1.9.4"
45
+ },
46
+ "dependencies": {
47
+ "commander": "^12.1.0"
45
48
  }
46
49
  }
@@ -0,0 +1,38 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { execSync } from 'node:child_process';
4
+ import { Command } from 'commander';
5
+ import packageJson from '../package.json' assert { type: 'json' };
6
+
7
+ const program = new Command();
8
+
9
+ program
10
+ .name(packageJson.name)
11
+ .description(packageJson.description)
12
+ .version(packageJson.version);
13
+
14
+ program
15
+ .command('lint')
16
+ .description('Run Biome linter without fixing files')
17
+ .action(() => {
18
+ try {
19
+ execSync('npx biome check ./', { stdio: 'inherit' });
20
+ } catch (error) {
21
+ console.error('Failed to run Ultracite:', error.message);
22
+ process.exit(1);
23
+ }
24
+ });
25
+
26
+ program
27
+ .command('format')
28
+ .description('Run Biome linter and fixes files')
29
+ .action(() => {
30
+ try {
31
+ execSync('npx biome check --write ./', { stdio: 'inherit' });
32
+ } catch (error) {
33
+ console.error('Failed to run Ultracite:', error.message);
34
+ process.exit(1);
35
+ }
36
+ });
37
+
38
+ program.parse();
package/scripts/run.js DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { execSync } = require('node:child_process');
4
- const args = process.argv.slice(2);
5
-
6
- if (args.length) {
7
- console.log('Usage: npx ultracite');
8
- process.exit(1);
9
- }
10
-
11
- try {
12
- execSync('npx biome check --write ./', {
13
- stdio: 'inherit',
14
- });
15
- } catch (error) {
16
- console.error('Failed to run Ultracite:', error.message);
17
- process.exit(1);
18
- }