chore: update package dependencies

This commit is contained in:
Alvis HT Tang 2022-05-14 11:07:01 +01:00
parent 7904e74115
commit bfd08357a2
1 changed files with 3 additions and 2 deletions

View File

@ -18,9 +18,8 @@ import { loadFile, template } from 'presetter';
import { getRollupParameter } from './rollup'; import { getRollupParameter } from './rollup';
import type { PresetAsset } from 'presetter';
import type { RollupConfig } from './rollup'; import type { RollupConfig } from './rollup';
import type { PresetAsset } from 'presetter';
// paths to the template directory // paths to the template directory
const TEMPLATES = resolve(__dirname, '..', 'templates'); const TEMPLATES = resolve(__dirname, '..', 'templates');
@ -51,6 +50,7 @@ export const DEFAULT_VARIABLE: Variable = {
export default async function (): Promise<PresetAsset> { export default async function (): Promise<PresetAsset> {
return { return {
template: { template: {
/* eslint-disable @typescript-eslint/naming-convention */
'rollup.config.ts': async (context) => { 'rollup.config.ts': async (context) => {
const content = await loadFile( const content = await loadFile(
resolve(TEMPLATES, 'rollup.config.ts'), resolve(TEMPLATES, 'rollup.config.ts'),
@ -59,6 +59,7 @@ export default async function (): Promise<PresetAsset> {
const variable = await getRollupParameter(context); const variable = await getRollupParameter(context);
return template(content, variable); return template(content, variable);
/* eslint-enable @typescript-eslint/naming-convention */
}, },
}, },
scripts: resolve(TEMPLATES, 'scripts.yaml'), scripts: resolve(TEMPLATES, 'scripts.yaml'),