fix(config): rename project config file from smartconfig.json to .smartconfig.json

This commit is contained in:
2026-03-24 15:54:25 +00:00
parent 488e78659c
commit 4a2d625d79
7 changed files with 8 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ pnpm add @push.rocks/smartconfig
### Why smartconfig?
- **🎛️ Centralized Configuration**: Manage all your tool configs in one `smartconfig.json` file
- **🎛️ Centralized Configuration**: Manage all your tool configs in one `.smartconfig.json` file
- **💾 Persistent Storage**: Smart key-value store with multiple storage strategies
- **🔐 Environment Mapping**: Sophisticated env var handling with automatic type conversion
- **🏗️ TypeScript First**: Full type safety and IntelliSense support
@@ -29,7 +29,7 @@ pnpm add @push.rocks/smartconfig
### 1. Smartconfig Configuration Management
Stop scattering configuration across dozens of files. Centralize everything in `smartconfig.json`:
Stop scattering configuration across dozens of files. Centralize everything in `.smartconfig.json`:
```typescript
import { Smartconfig } from '@push.rocks/smartconfig';
@@ -42,13 +42,13 @@ const smartconfig = new Smartconfig('/path/to/project');
// Get merged configuration for any tool
const eslintConfig = smartconfig.dataFor<EslintConfig>('eslint', {
// Default values if not in smartconfig.json
// Default values if not in .smartconfig.json
extends: 'standard',
rules: {}
});
```
**smartconfig.json example:**
**.smartconfig.json example:**
```json
{
"eslint": {