Skip to content

Commit

Permalink
chore: lint and build
Browse files Browse the repository at this point in the history
  • Loading branch information
1ncounter committed Jul 24, 2024
1 parent d86b0fd commit c1356bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default tseslint.config({
'@stylistic/semi': ['error', 'always'],
'@stylistic/eol-last': ['error', 'always'],
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
'@stylistic/max-len': 'off',

'@typescript-eslint/ban-ts-comment': ['error', { 'ts-expect-error': 'allow-with-description' }],
'@typescript-eslint/no-explicit-any': 'off',
Expand Down
10 changes: 5 additions & 5 deletions vite.base.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ export default async ({
}: Options) => {
const formats = (env['FORMATS']?.split(',') ?? defaultFormats) as LibraryFormats[];

let externals: string[] = [];
const { peerDependencies = {}, dependencies = {} } = await getPackageJson(
resolvePath('package.json'),
);
const externals: string[] = [...Object.keys(peerDependencies)];

if (externalDeps) {
const { peerDependencies = {}, devDependencies = {} } = await getPackageJson(
resolvePath('package.json'),
);
externals = [...Object.keys(peerDependencies), ...Object.keys(devDependencies)];
externals.push(...Object.keys(dependencies));
}

return defineConfig({
Expand Down

0 comments on commit c1356bf

Please sign in to comment.