🔧(react) rollup type files
Previously types file were splitted into their original folder tree structure. By enabling this option we could just get one global .d.ts file. To make this more handy I created a dedicated build bash file, the package.json was starting to get messy.
This commit is contained in:
@@ -26,7 +26,19 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [tsconfigPaths(), dts(), react()],
|
||||
plugins: [
|
||||
tsconfigPaths(),
|
||||
dts({
|
||||
rollupTypes: true,
|
||||
beforeWriteFile: (filePath, content) => {
|
||||
return {
|
||||
filePath,
|
||||
content: content.replace("../../locales", "./locales"),
|
||||
};
|
||||
},
|
||||
}),
|
||||
react(),
|
||||
],
|
||||
test: {
|
||||
environment: "jsdom",
|
||||
reporters: "verbose",
|
||||
|
||||
Reference in New Issue
Block a user