Skip to content

Commit 5f46a37

Browse files
committed
feat: allow ejecting of base presets
1 parent 5ec18e9 commit 5f46a37

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/yellow-garlics-camp.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tw2panda": patch
3+
"tw2panda-vscode": patch
4+
---
5+
6+
Allow ejecting of base presets based on `eject: true` (in `panda.config.ts` or passed as argument)

packages/tw2panda/src/panda-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface PartialConfig extends Omit<LoadConfigResult, "config"> {
3232
const createContext = (conf: PartialConfig) => {
3333
const generator = createGenerator({
3434
...conf,
35-
config: mergeConfigs([presetBase, presetTheme as any, conf.config]),
35+
config: mergeConfigs(conf.config.eject ? [conf.config] : [presetBase, presetTheme as any, conf.config]),
3636
});
3737
const files = new Map<string, string>();
3838

0 commit comments

Comments
 (0)