Skip to content

Commit

Permalink
Merge pull request #285 from TobiTRy/fix--building-in-a-npm-workspace…
Browse files Browse the repository at this point in the history
…-index.js-is-more-neseted-than-it-should

Fix  building in a npm workspace index.js is more neseted than it should
  • Loading branch information
TobiTRy authored May 7, 2024
2 parents 99caddc + 11969c2 commit 90cdf25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "TobiTRy"
},
"private": false,
"version": "0.4.2",
"version": "0.4.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ export default defineConfig({
],
build: {
copyPublicDir: false,

lib: {
entry: path.resolve(__dirname, './lib/index.ts'),
formats: ['es'],
},
rollupOptions: {
treeshake: true,
external: ['react', 'react-dom', 'styled-components', '@react-spring/web', 'react/jsx-runtime', 'color'],
output: {
preserveModulesRoot: 'src',
preserveModulesRoot: '.',
preserveModules: true,
entryFileNames: ({ name: fileName }) => {
return `${fileName}.js`;
Expand Down

0 comments on commit 90cdf25

Please sign in to comment.