Skip to content

Commit eeccf48

Browse files
committed
Finish typings
1 parent 8c3d623 commit eeccf48

File tree

5 files changed

+98
-88
lines changed

5 files changed

+98
-88
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
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": {

rollup.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import typescript from 'rollup-plugin-typescript2';
22

33
// eslint-disable-next-line @typescript-eslint/no-var-requires
44
const { version } = require('./package.json');
5-
65
const now = new Date();
76

87
const 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'],

0 commit comments

Comments
 (0)