(options: Flags)
| 31 | }; |
| 32 | |
| 33 | const mergeFlags = async (options: Flags): Promise<Context> => { |
| 34 | const flags: Partial<Context> = {}; |
| 35 | // CLI args come in string format |
| 36 | if (options.packages) { |
| 37 | flags.packages = options.packages.split(','); |
| 38 | options.packages = undefined; |
| 39 | } |
| 40 | |
| 41 | Object.assign(flags, options); |
| 42 | |
| 43 | return defu(flags, await fs.readJson('font-publish.json')) as Context; |
| 44 | }; |
| 45 | |
| 46 | export { getPackages, mergeFlags }; |
no outgoing calls
no test coverage detected