chore: update package dependencies
This commit is contained in:
parent
7904e74115
commit
bfd08357a2
|
@ -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'),
|
||||||
|
|
Loading…
Reference in New Issue