Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Exclude tests from lib, remove dts
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Nov 15, 2023
1 parent 6d890e2 commit 3dbae6f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 426 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@
"stylelint-prettier": "4.0.2",
"typescript": "5.2.2",
"vite": "^4.5.0",
"vite-plugin-dts": "^3.6.3",
"vitest": "^0.34.6",
"vitest-axe": "^0.1.0"
},
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"types": ["vite", "vitest/globals"],
"baseUrl": ".",
"paths": {
"@plone/types/*": ["src/lib/plone/packages/types/*"]
Expand Down
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import path from 'path';
import react from '@vitejs/plugin-react';
import dts from 'vite-plugin-dts';
import { defineConfig } from 'vite';

// https://vitejs.dev/config/
export default defineConfig({
plugins: [dts(), react()],
plugins: [react()],
build: {
lib: {
entry: [path.resolve(__dirname, 'src/index.ts')],
Expand Down
1 change: 1 addition & 0 deletions vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ export default defineConfig({
// you might want to disable it, if you don't have tests that rely on CSS
// since parsing CSS is slow
css: true,
exclude: ['**/node_modules/**', '**/lib/**'],
},
});
Loading

0 comments on commit 3dbae6f

Please sign in to comment.