Skip to content

Commit

Permalink
chore: split tsconfigs to default and build version
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntler committed May 30, 2024
1 parent c7c8456 commit 089f966
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/DocViewer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { DocViewerRenderers } from "./renderers";

import pdfFile from "./exampleFiles/pdf-file.pdf";
import pdfMultiplePagesFile from "./exampleFiles/pdf-multiple-pages-file.pdf";
import pngFile from "./exampleFiles/png-image.png";
import csvFile from "./exampleFiles/csv-file.csv";
import epsFile from "./exampleFiles/eps-file.eps";
import webpFile from "./exampleFiles/webp-file.webp";
import pngFile from "./exampleFiles/png-image.png?url";
import csvFile from "./exampleFiles/csv-file.csv?url";
import epsFile from "./exampleFiles/eps-file.eps?url";
import webpFile from "./exampleFiles/webp-file.webp?url";

import { DocViewerRef, IDocument } from ".";

Expand Down
3 changes: 2 additions & 1 deletion src/declaration.file.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/// <reference types="vite/client" />
declare module "*.png";
declare module "*.pdf";
declare module "*.gif";
declare module "*.csv";
declare module "*.eps";
declare module "*.webp";

declare module "react-csv-to-table";
declare module "rollup/parseAst";
9 changes: 9 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"exclude": [
"node_modules",
"./*.ts",
"src/**/*.test.tsx",
"src/**/*.stories.tsx"
]
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"outDir": "./dist/esm",
"target": "ES6",
"module": "ES6",
"module": "es2020",
"lib": ["dom", "dom.iterable", "esnext"],
"declaration": true,
"esModuleInterop": true,
Expand All @@ -12,7 +12,7 @@
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"jsx": "react-jsx",
"noEmit": true,
"noEmit": false,
"skipLibCheck": false,
"types": ["vitest/globals"]
}
Expand Down

0 comments on commit 089f966

Please sign in to comment.