Skip to content

Commit

Permalink
fix: remove svelte from extension-api tsconfig (podman-desktop#5874)
Browse files Browse the repository at this point in the history
* fix: remove svelte from extension-api tsconfig

Signed-off-by: axel7083 <[email protected]>

* Update packages/extension-api/vite.config.js

Co-authored-by: Florent BENOIT <[email protected]>
Signed-off-by: axel7083 <[email protected]>

---------

Signed-off-by: axel7083 <[email protected]>
Co-authored-by: Florent BENOIT <[email protected]>
  • Loading branch information
axel7083 and benoitf authored Feb 6, 2024
1 parent 68ec465 commit 0134a1d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
8 changes: 5 additions & 3 deletions packages/extension-api/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"extends": "@tsconfig/svelte/tsconfig.json",
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"resolveJsonModule": true,
"baseUrl": ".",
/**
* Typecheck JS in `.svelte` and `.js` files by default.
Expand All @@ -12,7 +10,11 @@
* of JS in `.svelte` files.
*/
"allowJs": true,
"checkJs": true
"checkJs": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
},
"include": ["src/**/*.d.ts"]
}
17 changes: 6 additions & 11 deletions packages/extension-api/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/**********************************************************************
* Copyright (C) 2023 Red Hat, Inc.
*
* Copyright (C) 2023-2024 Red Hat, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -16,8 +16,7 @@
* SPDX-License-Identifier: Apache-2.0
***********************************************************************/
/* eslint-env node */
import {join} from 'path';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { join } from 'path';
import { defineConfig } from 'vite';

const PACKAGE_ROOT = __dirname;
Expand All @@ -31,10 +30,6 @@ export default defineConfig({
'/@/': join(PACKAGE_ROOT, 'src') + '/',
},
},
plugins: [svelte()],
optimizeDeps: {
exclude: ['tinro'],
},
base: '',
server: {
fs: {
Expand All @@ -45,7 +40,7 @@ export default defineConfig({
sourcemap: true,
outDir: 'dist',
assetsDir: '.',

emptyOutDir: true,
reportCompressedSize: false,
},
Expand Down

0 comments on commit 0134a1d

Please sign in to comment.