fix(config): update .smartconfig.json handling and harden bundler runtime compatibility

This commit is contained in:
2026-05-09 12:34:00 +00:00
parent f19c7c69af
commit e5b2f2ba30
18 changed files with 2712 additions and 3190 deletions
+6 -6
View File
@@ -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.