Skip to content

Commit a1b48bf

Browse files
committed
chore: Apply consistent formatting to imports, JSON, and Markdown files.
1 parent 1e23e02 commit a1b48bf

File tree

4 files changed

+10
-18
lines changed

4 files changed

+10
-18
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
Vite plugin for [Laravel Enumify](https://github.com/devwizardhq/laravel-enumify) — automatically sync PHP enums to TypeScript during development and builds.
77

8-
98
## Features
109

1110
- Runs `php artisan enumify:sync --force --quiet` before Vite compiles
@@ -145,10 +144,10 @@ export const OrderStatusColors: Record<OrderStatus, string> = {
145144

146145
## Git Workflow
147146

148-
1) Create a feature branch from `main`
149-
2) Make changes with focused commits
150-
3) Run `pnpm run build` and `pnpm run typecheck`
151-
4) Open a PR and ensure CI passes
147+
1. Create a feature branch from `main`
148+
2. Make changes with focused commits
149+
3. Run `npm run build` and `npm run typecheck`
150+
4. Open a PR and ensure CI passes
152151

153152
Release tip: tag releases after merging to `main`, then publish to NPM.
154153

__tests__/vite-plugin.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import { spawn } from 'child_process';
12
import fs from 'fs';
23
import os from 'os';
34
import path from 'path';
4-
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
5-
import { spawn } from 'child_process';
5+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
66
import { enumify } from '../src/vite-plugin-enumify';
77

88
vi.mock('child_process', () => ({

src/vite-plugin-enumify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { spawn } from 'child_process';
12
import fs from 'fs';
23
import path from 'path';
3-
import { spawn } from 'child_process';
44
import type { Logger, Plugin, ResolvedConfig } from 'vite';
55
import { EnumifyOptions, ResolvedEnumifyOptions } from './types';
66

tsconfig.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,8 @@
1111
"declarationMap": true,
1212
"outDir": "./dist",
1313
"rootDir": "./src",
14-
"types": [
15-
"node"
16-
]
14+
"types": ["node"]
1715
},
18-
"include": [
19-
"src/**/*"
20-
],
21-
"exclude": [
22-
"node_modules",
23-
"dist"
24-
]
16+
"include": ["src/**/*"],
17+
"exclude": ["node_modules", "dist"]
2518
}

0 commit comments

Comments
 (0)