fix(config): update .smartconfig.json handling and harden bundler runtime compatibility
This commit is contained in:
@@ -41,19 +41,19 @@ Once configured, simply run:
|
||||
tsbundle
|
||||
```
|
||||
|
||||
Your bundles will be built according to your `smartconfig.json` configuration.
|
||||
Your bundles will be built according to your `.smartconfig.json` configuration.
|
||||
|
||||
## CLI Commands
|
||||
|
||||
| Command | Description |
|
||||
|---------|-------------|
|
||||
| `tsbundle` | Build all bundles from `smartconfig.json` configuration |
|
||||
| `tsbundle` | Build all bundles from `.smartconfig.json` configuration |
|
||||
| `tsbundle custom` | Same as above (explicit) |
|
||||
| `tsbundle init` | Interactive wizard to create/update bundle configuration |
|
||||
|
||||
## Configuration
|
||||
|
||||
tsbundle uses `smartconfig.json` for configuration. Here's an example:
|
||||
tsbundle uses `.smartconfig.json` for configuration. Here's an example:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -188,7 +188,7 @@ await output.writeToFile('./ts/embedded-bundle.ts', 200); // optional maxLineLen
|
||||
|
||||
### CustomBundleHandler Class
|
||||
|
||||
Process multiple bundle configurations from `smartconfig.json`:
|
||||
Process multiple bundle configurations from `.smartconfig.json`:
|
||||
|
||||
```typescript
|
||||
import { CustomBundleHandler } from '@git.zone/tsbundle';
|
||||
@@ -253,12 +253,12 @@ your-project/
|
||||
├── assets/ # Static assets (images, fonts, etc.)
|
||||
├── dist_bundle/ # Output for element/npm bundles
|
||||
├── dist_serve/ # Output for website bundles
|
||||
└── smartconfig.json # tsbundle configuration
|
||||
└── .smartconfig.json # tsbundle configuration
|
||||
```
|
||||
|
||||
## License and Legal Information
|
||||
|
||||
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./LICENSE) file.
|
||||
This repository contains open-source code licensed under the MIT License. A copy of the license can be found in the [LICENSE](./license) file.
|
||||
|
||||
**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user