Skip to content

Commit

Permalink
fix(vite.config.ts): ignore types and vite-env files
Browse files Browse the repository at this point in the history
  • Loading branch information
waldronmatt committed Jun 10, 2024
1 parent 6e866f3 commit 67c1af7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tokens-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default defineConfig({
// this is redudant since we are using dts plugin below to do this
dts({
copyDtsFiles: true,
exclude: ['lib/types/index.d.ts'],
outDir: ['dist'],
}),
// generates a separate CSS file for each chunk and includes an import statement
Expand Down Expand Up @@ -61,7 +62,7 @@ export default defineConfig({
//
// directory structures are also preserved
input: Object.fromEntries(
glob.sync('lib/**/*.{ts,tsx}', {}).map((file) => [
glob.sync('lib/**/*.{ts,tsx}', { ignore: ['lib/types/**', 'lib/vite-env.d.ts'] }).map((file) => [
// The name of the entry point
// lib/nested/foo.ts becomes nested/foo
relative('lib', file.slice(0, file.length - extname(file).length)),
Expand Down

0 comments on commit 67c1af7

Please sign in to comment.