Skip to content

Commit 3b1c6af

Browse files
authored
Merge pull request #77 from kimuraz/dev
v2.1.1
2 parents ae974f6 + b51c2e2 commit 3b1c6af

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [created]
66

77
jobs:
8-
build:
8+
ci:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v3
@@ -19,10 +19,9 @@ jobs:
1919
- run: pnpm install
2020
- run: pnpm lint
2121
- run: pnpm test
22-
- run: pnpm run build
2322

2423
publish-npm:
25-
needs: build
24+
needs: ci
2625
runs-on: ubuntu-latest
2726
steps:
2827
- uses: actions/checkout@v3
@@ -35,8 +34,7 @@ jobs:
3534
with:
3635
version: 9.9.0
3736
- run: pnpm install
38-
- run: pnpm lint
39-
- run: pnpm test
40-
- run: pnpm publish
37+
- run: pnpm build
38+
- run: pnpm publish --no-git-checks
4139
env:
4240
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
22
"name": "vue-interact",
33
"description": "Interact.js wrapper for VueJS",
4-
"version": "2.1.0",
4+
"version": "2.1.1",
55
"author": "Kimura <[email protected]>",
66
"private": false,
7-
"main": "dist/vue-interact.umd.cjs",
87
"type": "module",
9-
"module": "dist/vue-interact.js",
108
"exports": {
119
".": {
1210
"import": "./dist/vue-interact.js",
1311
"require": "./dist/vue-interact.umd.cjs"
1412
}
1513
},
1614
"types": "vue-interact.d.ts",
15+
"files": [
16+
"dist"
17+
],
1718
"license": "MIT",
1819
"scripts": {
1920
"build": "vite build",

vite.config.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ export default defineConfig({
99
name: 'VueInteract',
1010
},
1111
rollupOptions: {
12+
external: ['vue', 'interactjs'],
1213
output: {
13-
exports: "named",
14+
exports: 'named',
1415
globals: {
1516
vue: 'Vue',
17+
interactjs: 'interactjs',
1618
},
19+
format: 'es',
1720
},
18-
external: ['vue'],
19-
}
21+
},
2022
},
2123
plugins: [
2224
dts({

0 commit comments

Comments
 (0)