fix: update import path for SingleDatePicker and adjust Vite configuration for output filenames
All checks were successful
Publish to npm / publish (push) Successful in 29s
All checks were successful
Publish to npm / publish (push) Successful in 29s
This commit is contained in:
parent
952b053e9c
commit
c0b833be6f
|
@ -1,3 +1,3 @@
|
|||
import './style.scss'
|
||||
|
||||
export {default as SingleDatePicker} from './components/SingleDatePicker.tsx'
|
||||
export {default as SingleDatePicker} from './components/SingleDatePicker'
|
|
@ -8,20 +8,30 @@ export default defineConfig(({mode}) => ({
|
|||
lib: {
|
||||
entry: "src/index.ts",
|
||||
name: "datenel-react",
|
||||
fileName: format => `datenel.${format}.js`,
|
||||
fileName: format => `index.${format}.js`,
|
||||
},
|
||||
rollupOptions: {
|
||||
external: ["react"],
|
||||
output: {
|
||||
globals: {
|
||||
react: "React",
|
||||
"react-dom": "ReactDOM",
|
||||
},
|
||||
assetFileNames: assetInfo => {
|
||||
if (assetInfo.names[0].endsWith(".css")) {
|
||||
return "index.css";
|
||||
}
|
||||
return `assets/${assetInfo.names[0]}`;
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [react(), dts({
|
||||
plugins: [
|
||||
react(),
|
||||
dts({
|
||||
tsconfigPath: "./tsconfig.app.json"
|
||||
})],
|
||||
}),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user