Skip to content

Commit 23a6a35

Browse files
committed
Only publish dist/ to NPM and require() from it
1 parent 3d8ca67 commit 23a6a35

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ yarn-error.log*
1919
*.njsproj
2020
*.sln
2121
*.sw?
22+
23+
# Misc
2224
.ghnpmpkgtoken
23-
build

.npmignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vue-beautiful-chat",
33
"version": "2.4.1",
44
"description": "A simple and beautiful Vue chat component backend agnostic.",
5-
"main": "./src/index.js",
5+
"main": "./dist/vue-beautiful-chat.umd.min.js",
66
"repository": "https://github.com/mattmezza/vue-beautiful-chat.git",
77
"author": "Matteo Merola <mattmezza@gmail.com>",
88
"license": "MIT",
@@ -12,6 +12,9 @@
1212
"watch": "npm run build -- --watch",
1313
"prepublishOnly": "npm run build"
1414
},
15+
"files": [
16+
"dist/*"
17+
],
1518
"dependencies": {
1619
"autolinker": "^1.8.3",
1720
"emoji-js": "^3.4.0",

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Launcher from './Launcher.vue'
22
import VTooltip from 'v-tooltip'
33

4-
const defaultComponentName = 'beautiful-chat'
4+
const defaultComponentName = 'BeautifulChat'
55

66
const Plugin = {
77
install(Vue, options = {}) {

0 commit comments

Comments
 (0)