From 8179ea4c11157e0ac1eb60ce6cdfaba2d6ad9404 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Sun, 21 Feb 2021 01:22:07 +0100 Subject: [PATCH] Fix: When installing the plugin from npm, the node_modules dont come with: copying converseJS to dist folder. --- CHANGELOG.md | 8 +++++++- package.json | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99594ded..608ed488 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog -## v??? +## v1.0.1 + +### Bug fixes + +* When installing the plugin from npm, the node_modules don't come with: copying converseJS to dist folder. + +## v1.0.0 ### Features diff --git a/package.json b/package.json index 0dd1eaac..adf591ee 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "peertube-plugin-livechat", "description": "PeerTube plugin livechat", - "version": "1.0.0", + "version": "1.0.1", "author": "John Livingston", "bugs": "https://github.com/JohnXLivingston/peertube-plugin-livechat/issues", "clientScripts": [ @@ -45,12 +45,12 @@ "library": "./main.js", "scripts": { "prepare": "npm run build", - "build": "webpack --mode=production", + "build": "mkdir -p dist/conversejs && cp -r node_modules/converse.js/dist/* dist/conversejs/ && webpack --mode=production", "lint": "npx eslint --ext .js ." }, "staticDirs": { "static": "dist/static", - "conversejs": "node_modules/converse.js/dist" + "conversejs": "dist/conversejs/" }, "translations": { "fr-FR": "./languages/fr.json"