From 7cfeb376bc11001d69fdf90cf62c363fec8a7942 Mon Sep 17 00:00:00 2001 From: Reaper Gelera Date: Mon, 7 Aug 2023 20:24:04 +0530 Subject: [PATCH] chore: format --- esbuild.d.ts | 2 +- lib/types.d.ts | 8 ++++---- playground/package.json | 2 +- rollup.d.ts | 20 +++++++++++++------- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/esbuild.d.ts b/esbuild.d.ts index da7d640..7eab294 100644 --- a/esbuild.d.ts +++ b/esbuild.d.ts @@ -10,4 +10,4 @@ declare function esbuildPlugin(options?: Options): { setup(build: any): Promise } -export = esbuildPlugin \ No newline at end of file +export = esbuildPlugin diff --git a/lib/types.d.ts b/lib/types.d.ts index cb89a19..9c36f27 100644 --- a/lib/types.d.ts +++ b/lib/types.d.ts @@ -1,8 +1,8 @@ export interface Options { - rootDir: string; - baseURL: string; - atomic?: boolean; - hash?: boolean; + rootDir: string + baseURL: string + atomic?: boolean + hash?: boolean client: { output: string } diff --git a/playground/package.json b/playground/package.json index 5775cee..1abee17 100644 --- a/playground/package.json +++ b/playground/package.json @@ -23,7 +23,7 @@ "@rollup/plugin-typescript": "^11.1.2", "rollup": "^3.26.2", "@babel/core": "^7.21.0", - "@rollup/plugin-babel":"^6.0.3", + "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-node-resolve": "^15.0.1", "@babel/plugin-transform-react-jsx": "^7.21.0", "tslib": "^2.6.0", diff --git a/rollup.d.ts b/rollup.d.ts index 1c2e5e7..bc63789 100644 --- a/rollup.d.ts +++ b/rollup.d.ts @@ -6,11 +6,17 @@ export type { Options } from './lib/types' * @returns */ declare function rollupPlugin(options?: Options): { - name: string; - transform(_: any, id: any): Promise<{ - code: any; - map: null; - } | undefined>; -}; + name: string + transform( + _: any, + id: any + ): Promise< + | { + code: any + map: null + } + | undefined + > +} -export = rollupPlugin \ No newline at end of file +export = rollupPlugin