Skip to content

Commit 5823225

Browse files
author
Daniel Sullivan
authored
Merge pull request #3 from daniel-sullivan/move-to-mui
fix: exclude test files from production build
2 parents 4311175 + 20d25e2 commit 5823225

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

frontend/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>BabelBridge</title>
77
<meta name="color-scheme" content="light dark" />
8-
<script type="module" crossorigin src="/assets/index-C_3ib_Ex.js"></script>
8+
<script type="module" crossorigin src="/assets/index-CFPVen-_.js"></script>
99
</head>
1010
<body>
1111
<div id="root"></div>

frontend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"build": "tsc -b && vite build",
8+
"build": "tsc -b tsconfig.build.json && vite build",
99
"preview": "vite preview",
1010
"test": "vitest",
1111
"test:unit": "vitest run tests/components tests/context tests/utils",

frontend/tsconfig.build.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src"],
4+
"exclude": ["tests", "**/*.spec.ts", "**/*.spec.tsx", "**/*.test.ts", "**/*.test.tsx", "**/*test*"]
5+
}
6+

frontend/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"jsx": "react-jsx",
1313
"strict": true,
1414
"forceConsistentCasingInFileNames": true,
15-
"types": ["vitest/globals", "@testing-library/jest-dom"]
15+
"types": ["vite/client", "vitest/globals", "@testing-library/jest-dom"]
1616
},
1717
"include": ["src", "tests"]
1818
}

0 commit comments

Comments
 (0)