mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-21 08:31:57 +00:00
add 'all' target, as alias for native
This commit is contained in:
parent
9e2bfedb79
commit
2c7e054d4b
1 changed files with 4 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ export type Flags = (typeof flags)[keyof typeof flags];
|
||||||
export const targets = {
|
export const targets = {
|
||||||
BROWSER: 'browser',
|
BROWSER: 'browser',
|
||||||
NATIVE: 'native',
|
NATIVE: 'native',
|
||||||
|
ALL: 'all',
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export type Targets = (typeof targets)[keyof typeof targets];
|
export type Targets = (typeof targets)[keyof typeof targets];
|
||||||
|
|
@ -22,6 +23,9 @@ export const targetToFeatures: Record<Targets, FeatureMap> = {
|
||||||
native: {
|
native: {
|
||||||
requires: [],
|
requires: [],
|
||||||
},
|
},
|
||||||
|
all: {
|
||||||
|
requires: [],
|
||||||
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export function getTargetFeatures(target: Targets): FeatureMap {
|
export function getTargetFeatures(target: Targets): FeatureMap {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue