Skip to content

Commit

Permalink
feat: export types in build
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelAlev committed Nov 28, 2021
1 parent f6f9b5c commit 6de843b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,19 @@ export const globals = {
"react-dom": "ReactDOM",
};

export const componentsPath = fastGlob.sync(["src/foundation/**/index.ts", "src/components/**/index.ts"], {
objectMode: true,
ignore: ["src/**/*.spec.ts", "src/**/*.spec.tsx", "src/**/*.stories.tsx"],
});
export const componentsPath = fastGlob.sync(
[
"src/foundation/**/index.ts",
"src/components/**/index.ts",
"src/hooks/index.ts",
"src/types/index.ts",
"src/utilities/index.ts",
],
{
objectMode: true,
ignore: ["src/**/*.spec.ts", "src/**/*.spec.tsx", "src/**/*.stories.tsx"],
},
);

export default defineConfig({
resolve: {
Expand Down

0 comments on commit 6de843b

Please sign in to comment.