Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions packages/evo-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"directory": "packages/evo-react"
},
"license": "MIT",
"sideEffects": [
"./**/*.css"
],
"sideEffects": false,
"type": "module",
"exports": {
"./package.json": "./package.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/evo-react/tsconfig.prod.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "./tsconfig.json",
"exclude": ["./**/__tests__/*", "./**/*.stories.tsx"],
"exclude": ["./**/*.stories.tsx", "./**/test/*"],
Copy link

Copilot AI Feb 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tsconfig.prod.json excludes ./**/test/*, but the Vite/Vitest config expects tests under src/**/test/** (recursive). As written, nested files under a test/ folder (or deeper subfolders) would still be included in the production build and could have declaration files emitted. Update the exclude glob to match the recursive src/**/test/** pattern (and consider also excluding __tests__ if that naming is used here).

Suggested change
"exclude": ["./**/*.stories.tsx", "./**/test/*"],
"exclude": ["./**/*.stories.tsx", "./src/**/test/**", "./src/**/__tests__/**"],

Copilot uses AI. Check for mistakes.
"include": ["./src/**/*"]
}
4 changes: 3 additions & 1 deletion packages/evo-react/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ export default defineConfig({
lib: {
entry: "./src/index.ts",
formats: ["es"],
fileName: "index",
},
rollupOptions: {
output: {
preserveModules: true,
preserveModulesRoot: "src",
entryFileNames: "[name].js",
banner: `"use client";\n`,
},
plugins: [
Expand Down