Skip to content

Commit

Permalink
Merge pull request #231 from KenEucker/develop
Browse files Browse the repository at this point in the history
fix(publish): tightens up the publish
  • Loading branch information
KenEucker authored Jan 9, 2024
2 parents 737734a + 32f871d commit 3cb7fcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"lint:js": "eslint --ext .ts,.js,.vue src --fix",
"lint:style": "stylelint \"./src/**/*.vue\" \"./src/**/*.scss\" --fix",
"serve": "vite",
"pub:expose": "mv dist/index.d.ts ./index.d.ts && mv dist/biketag-vue.umd.js ./biketag-vue.umd.js && mv dist/biketag-vue.mjs ./biketag-vue.mjs && mv dist/style.css ./style.css && mv dist/components ./components && mv dist/common ./common && mv dist/store ./store",
"pub:clear": "rm ./index.d.ts ./biketag-vue.umd.js ./biketag-vue.mjs ./style.css && rm -rf ./components ./common ./store",
"pub:expose": "mv dist/index.d.ts ./index.d.ts && mv dist/biketag-vue.* ./ && mv dist/components ./components && mv dist/common ./common && mv dist/store ./store",
"pub:clear": "rm -f ./index.d.ts ./biketag-vue.es.js ./biketag-vue.css && rm -rf dist ./components ./common ./store",
"pub:build": "vue-tsc && vite build --config publish.config.ts",
"build": "vite build",
"commit": "cz",
Expand Down Expand Up @@ -145,8 +145,8 @@
".": {
"import": "./biketag-vue.es.js"
},
"./style.css": {
"import": "./style.css"
"./biketag-vue.css": {
"import": "./biketag-vue.css"
}
}
}
4 changes: 4 additions & 0 deletions publish.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export default defineConfig({
rollupOptions: {
external: ['vue'],
output: {
assetFileNames: (assetInfo) => {
if (assetInfo.name === 'style.css') return 'biketag-vue.css'
return assetInfo.name!
},
// disable warning on src/index.ts using both default and named export
exports: 'named',
globals: {
Expand Down

0 comments on commit 3cb7fcd

Please sign in to comment.