diff --git a/global.d.ts b/global.d.ts index 32c3dcd..15bba7d 100644 --- a/global.d.ts +++ b/global.d.ts @@ -1,4 +1,6 @@ declare module '*.module.css' { const classes: { [key: string]: string }; export = classes; -} \ No newline at end of file +} + +declare module '*.css' {} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 0ff488b..b4fffed 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,13 +3,15 @@ "target": "ES2020", "module": "ESNext", "jsx": "react-jsx", - "moduleResolution": "node", + "moduleResolution": "bundler", "allowJs": true, "esModuleInterop": true, "strict": true, "skipLibCheck": true, "outDir": "./dist", + "rootDir": "./src/js/react", "lib": ["es2022", "dom"] }, - "include": ["src/js/react/**/*", "**/*.d.ts"] + "include": ["src/js/react/**/*", "**/*.d.ts"], + "exclude": ["src/js/react/**/__tests__/**", "**/*.test.ts", "**/*.test.tsx", "**/*.spec.ts", "**/*.spec.tsx"] }