Skip to content

Commit

Permalink
JavaScript: Use package name from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed May 30, 2024
1 parent bd6cda7 commit 38dd4c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cratedb_sqlparse_js/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import {
import {
defineConfig
} from 'vite'
import packageJson from './package.json';

export default defineConfig({
build: {
lib: {
// Could also be a dictionary or array of multiple entry points
entry: resolve(__dirname, 'cratedb_sqlparse/index.js'),
name: '@cratedb/cratedb-sqlparse', // the proper extensions will be added
name: packageJson.name, // the proper extensions will be added
fileName: 'sqlparse',
}, rollupOptions: {
// make sure to externalize deps that shouldn't be bundled
Expand Down

0 comments on commit 38dd4c5

Please sign in to comment.