fix(presetter): merge arrays only if the values are all primitive
This commit is contained in:
parent
cb5384bbd3
commit
cf8be54e88
|
@ -48,6 +48,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"presetter": "file:../presetter",
|
||||
"presetter-preset-strict": "file:../preset-strict"
|
||||
"presetter-preset-strict": "file:../preset-strict",
|
||||
"type-fest": "^2.0.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
import { isDirective } from 'presetter';
|
||||
|
||||
import type { ApplyDirective, ImportDirective } from 'presetter';
|
||||
import type { JsonObject } from 'type-fest';
|
||||
|
||||
/** full configuration about a plugin */
|
||||
export type PluginConfiguration =
|
||||
|
@ -26,10 +27,7 @@ export type PluginConfiguration =
|
|||
export type PluginHeader = string | ApplyDirective;
|
||||
|
||||
/** options for a plugin */
|
||||
export type PluginOptions =
|
||||
| Record<string, unknown>
|
||||
| ApplyDirective
|
||||
| ImportDirective;
|
||||
export type PluginOptions = JsonObject | ApplyDirective | ImportDirective;
|
||||
|
||||
/** plugin configuration as an object */
|
||||
export type PluginObject = Record<PluginHeader, PluginOptions | null>;
|
||||
|
|
Loading…
Reference in New Issue