Skip to content

Commit

Permalink
fix: Update the package release format
Browse files Browse the repository at this point in the history
  • Loading branch information
YuChunTsao committed Oct 31, 2023
1 parent c8a84ed commit 2e1ab3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"license": "MIT",
"author": "YuChunTsao",
"type": "module",
"main": "./dist/maplibre-gl-overview-map.umd.cjs",
"module": "./dist/maplibre-gl-overview-map.js",
"main": "./dist/maplibre-gl-overview-map.umd.js",
"module": "./dist/maplibre-gl-overview-map.es.js",
"types": "./dist/maplibre-gl-overview-map.d.ts",
"exports": {
".": {
"import": "./dist/maplibre-gl-overview-map.js",
"require": "./dist/maplibre-gl-overview-map.umd.cjs"
"import": "./dist/maplibre-gl-overview-map.es.js",
"require": "./dist/maplibre-gl-overview-map.umd.js"
},
"./dist/maplibre-gl-overview-map.css": {
"import": "./dist/maplibre-gl-overview-map.css",
Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default ({ mode }) => {
lib: {
entry: resolve(__dirname, './src/maplibre-gl-overview-map.ts'),
name: 'OverviewMapControl',
fileName: 'maplibre-gl-overview-map'
fileName: (format) => `maplibre-gl-overview-map.${format}.js`,
formats: ['es', 'umd']
},
rollupOptions: {
output: {
Expand Down

0 comments on commit 2e1ab3f

Please sign in to comment.