Skip to content

Commit

Permalink
Lint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered committed Dec 18, 2024
1 parent 4f971a0 commit aae8573
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion vite.base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { builtinModules } from 'node:module';
import type { ConfigEnv, Plugin, UserConfig } from 'vite';
import pkg from './package.json';

export const builtins = ['electron', ...builtinModules.map((m) => [m, `node:${m}`]).flat()];
export const builtins = ['electron', ...builtinModules.flatMap((m) => [m, `node:${m}`])];

export const external = [
...builtins,
Expand Down
2 changes: 1 addition & 1 deletion vite.preload.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { ConfigEnv, UserConfig } from 'vite';
import type { UserConfig } from 'vite';
import { defineConfig, mergeConfig } from 'vite';
import { getBuildConfig, external } from './vite.base.config';

Expand Down
4 changes: 2 additions & 2 deletions vite.types.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { defineConfig } from 'vite';
import dts from 'vite-plugin-dts';
import { resolve } from 'path';
import path from 'node:path';

export default defineConfig({
build: {
lib: {
entry: resolve(__dirname, 'src/main_types.ts'),
entry: path.resolve(import.meta.dirname, 'src/main_types.ts'),
name: 'comfyui-electron-api',
fileName: 'index',
formats: ['es'],
Expand Down

0 comments on commit aae8573

Please sign in to comment.