File tree Expand file tree Collapse file tree 5 files changed +98
-88
lines changed
Expand file tree Collapse file tree 5 files changed +98
-88
lines changed Original file line number Diff line number Diff line change 99 "build" : " rollup -c rollup.config.js" ,
1010 "format" : " prettier --write \" src/**/*.ts\" " ,
1111 "lint" : " eslint -c .eslintrc.js src/**" ,
12- "prepare " : " npm run build " ,
13- "prepublishOnly " : " npm test && npm run lint " ,
14- "preversion" : " npm run lint" ,
15- "version" : " npm run format && git add . " ,
12+ "vp " : " npm version prerelease " ,
13+ "vpp " : " npm version prerelease && npm publish " ,
14+ "preversion" : " npm run test && npm run lint && npm run format " ,
15+ "version" : " npm run build && git add -A lib " ,
1616 "postversion" : " git push && git push --tags"
1717 },
1818 "repository" : {
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import typescript from 'rollup-plugin-typescript2';
22
33// eslint-disable-next-line @typescript-eslint/no-var-requires
44const { version } = require ( './package.json' ) ;
5-
65const now = new Date ( ) ;
76
87const banner = `// Copyright (c) 2020-present Techassi
@@ -18,26 +17,38 @@ export default {
1817 banner,
1918 format : 'esm' ,
2019 exports : 'named' ,
20+ globals : {
21+ vue : 'vue' ,
22+ } ,
2123 } ,
2224 {
2325 file : './lib/vue-youtube-iframe.umd.js' ,
2426 name : 'VueYoutubeIframe' ,
2527 banner,
2628 format : 'umd' ,
2729 exports : 'named' ,
30+ globals : {
31+ vue : 'vue' ,
32+ } ,
2833 } ,
2934 {
3035 file : './lib/vue-youtube-iframe.cjs.js' ,
3136 banner,
3237 format : 'cjs' ,
3338 exports : 'named' ,
39+ globals : {
40+ vue : 'vue' ,
41+ } ,
3442 } ,
3543 {
3644 file : './lib/vue-youtube-iframe.global.js' ,
3745 name : 'VueYoutubeIframe' ,
3846 banner,
3947 format : 'iife' ,
4048 exports : 'named' ,
49+ globals : {
50+ vue : 'vue' ,
51+ } ,
4152 } ,
4253 ] ,
4354 external : [ 'vue' ] ,
You can’t perform that action at this time.
0 commit comments