Commit 7ebd62d
authored
feat(exports): add
* feat(exports): add `bin` option to auto-generate package.json bin field
Adds `exports.bin` option that auto-generates the `bin` field in
package.json based on built entry chunks.
Supports three forms:
- `true`: auto-detect entry chunks with shebangs
- `string`: specify source file, bin name defaults to package name
- `Record<string, string>`: map command names to source files
* feat(config): use mergeConfig for workspace config merging and support variadic overrides
- Replace shallow spread merging with deep `mergeConfig` in workspace resolution
- Update `mergeConfig` to accept multiple overrides via rest params
* fixbin option to auto-generate package.json bin field (#869)1 parent 148aaaa commit 7ebd62d
File tree
6 files changed
+335
-5
lines changed- packages
- create-tsdown
- migrate
- src/features/pkg
6 files changed
+335
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
0 commit comments