Skip to content

Commit

Permalink
fix: don't throw error when our own tsconfig exists
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Nov 18, 2022
1 parent 9e1a760 commit 494dd03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function customTsConfigPlugin(options?: PluginOptions): Plugin {
name: NAME,

config() {
if (tsConfigExists() && tsConfigHasBanner()) {
if (tsConfigExists() && !tsConfigHasBanner()) {
throw new Error(
"tsconfig.json already exists. Please delete it or remove vite-plugin-custom-tsconfig from your Vite config"
);
Expand Down

0 comments on commit 494dd03

Please sign in to comment.