Skip to content

Commit f1e9a42

Browse files
updated config file
1 parent 03a8ce1 commit f1e9a42

File tree

10 files changed

+15
-156
lines changed

10 files changed

+15
-156
lines changed

.patchpulse.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"skip": []
3+
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"$schema": "https://unpkg.com/patch-pulse@latest/schemas/patchpulse-config.schema.json",
32
"skip": [
43
// Exact package names
54
"lodash",

.patchpulserc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,5 @@
44
"editor.codeActionsOnSave": {
55
"source.fixAll": "explicit",
66
"source.organizeImports": "explicit"
7-
},
8-
"json.schemas": [
9-
{
10-
"fileMatch": [
11-
".patchpulserc",
12-
".patchpulserc.json",
13-
"patchpulse.config.json"
14-
],
15-
"url": "./schemas/patchpulse-config.schema.json"
16-
}
17-
]
7+
}
188
}

README.md

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ npx patch-pulse --skip "lodash,@types/*"
3737

3838
Patch Pulse supports configuration files for persistent settings. Create one of these files in your project root:
3939

40-
- `.patchpulserc`
41-
- `.patchpulserc.json`
4240
- `patchpulse.config.json`
41+
- `.patchpulserc.json`
42+
- `.patchpulserc`
4343

4444
### Configuration File Example
4545

@@ -49,32 +49,6 @@ Patch Pulse supports configuration files for persistent settings. Create one of
4949
}
5050
```
5151

52-
### Intellisense Support ✨
53-
54-
Patch Pulse includes full intellisense support for configuration files:
55-
56-
- **Autocomplete**: Get suggestions for configuration options
57-
- **Validation**: Real-time error checking for invalid configurations
58-
- **Documentation**: Hover tooltips with detailed explanations
59-
- **Examples**: See working examples for each option
60-
61-
#### Option 1: Automatic (Recommended)
62-
63-
The schema is automatically available if you install `patch-pulse` locally. VS Code and other editors will provide intellisense without any additional setup.
64-
65-
#### Option 2: Explicit Schema Reference
66-
67-
For maximum compatibility, add this to your `.patchpulserc` file:
68-
69-
```json
70-
{
71-
"$schema": "https://unpkg.com/patch-pulse@latest/schemas/patchpulse-config.schema.json",
72-
"skip": ["lodash", "@types/*"]
73-
}
74-
```
75-
76-
**Note**: The schema is hosted on npm via unpkg.com, so it works for anyone who has internet access, regardless of whether they've installed the package locally.
77-
7852
### Skip Patterns
7953

8054
The `skip` array supports multiple pattern types:

schemas/patchpulse-config.schema.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/services/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ export interface MergedConfig {
1414
}
1515

1616
const CONFIG_FILENAMES = [
17-
'.patchpulserc',
18-
'.patchpulserc.json',
1917
'patchpulse.config.json',
18+
'.patchpulserc.json',
19+
'.patchpulserc',
2020
];
2121

2222
/**
23-
* Reads configuration from .patchpulserc file
23+
* Reads configuration from .patchpulse.config.json file
2424
* @param cwd - The current working directory
2525
* @returns The configuration from the file
2626
*/

src/services/tests/config.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ describe('Configuration Service', () => {
2828
describe('readConfigFile', () => {
2929
it('should return null when no config file exists', () => {
3030
vi.mocked(existsSync).mockReturnValue(false);
31-
vi.mocked(join).mockReturnValue('/test/.patchpulserc');
31+
vi.mocked(join).mockReturnValue('/test/.patchpulse.config.json');
3232

3333
const result = readConfigFile('/test');
3434

3535
expect(result).toBeNull();
3636
});
3737

38-
it('should read and parse .patchpulserc file', () => {
38+
it('should read and parse .patchpulse.config.json file', () => {
3939
const mockConfig = {
4040
skip: ['lodash', 'express', '@types/*', 'test-*'],
4141
};
4242

4343
vi.mocked(existsSync).mockReturnValue(true);
44-
vi.mocked(join).mockReturnValue('/test/.patchpulserc');
44+
vi.mocked(join).mockReturnValue('/test/.patchpulse.config.json');
4545
vi.mocked(readFileSync).mockReturnValue(JSON.stringify(mockConfig));
4646

4747
const result = readConfigFile('/test');
@@ -51,7 +51,7 @@ describe('Configuration Service', () => {
5151

5252
it('should handle invalid JSON gracefully', () => {
5353
vi.mocked(existsSync).mockReturnValue(true);
54-
vi.mocked(join).mockReturnValue('/test/.patchpulserc');
54+
vi.mocked(join).mockReturnValue('/test/.patchpulse.config.json');
5555
vi.mocked(readFileSync).mockReturnValue('invalid json');
5656

5757
const consoleSpy = vi.spyOn(console, 'warn').mockImplementation(() => {});
@@ -61,7 +61,7 @@ describe('Configuration Service', () => {
6161
expect(result).toBeNull();
6262
expect(consoleSpy).toHaveBeenCalledWith(
6363
expect.stringMatching(
64-
/Warning: Could not parse \.patchpulserc: SyntaxError: Unexpected token/
64+
/Warning: Could not parse \.patchpulse.config.json: SyntaxError: Unexpected token/
6565
)
6666
);
6767

src/types/config.d.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/utils/ui.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ ${chalk.cyan.bold.underline('🔧 Configuration Options:')}
5656
${chalk.white('-s, --skip <packages>')} ${chalk.gray('Skip packages (supports exact names and patterns)')}
5757
5858
${chalk.cyan.bold.underline('📁 Configuration File:')}
59-
Create a \`.patchpulserc\` file in your project root:
59+
Create a \`.patchpulse.config.json\` file in your project root:
6060
${chalk.gray('{')}
6161
${chalk.gray('"skip": ["lodash", "@types/*", "test-*"]')}
6262
${chalk.gray('}')}

0 commit comments

Comments
 (0)