From 1b50696ca79edb6b9e0e59911605a9dd64676871 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 19 Nov 2020 11:44:35 +0100 Subject: [PATCH] Make sure all necessary files are included in the NPM package --- CHANGES.md | 4 +++- package.json | 22 ++++++++++++++-------- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 9b9315e39..efdb41e5a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -3,12 +3,13 @@ ## 7.0.2 (Unreleased) - Updated translations: gl, tr +- Still more necessary files not included in the 7.0.1 NPM package, causing `Module not found` errors. ## 7.0.1 (2020-11-19) - Updated translations: de, es, fi, fr, gl, hu, nb_NO, oc, pl, pt, pt_BR, ru, tr, uk, zh - #2328: Honor `use_system_emojis` in emoji-picker -- Not all *.js files were included in the 7.0.0 package, causing: +- Not all template/*.js files were included in the 7.0.0 NPM package, causing: `Module not found: Error: Can't resolve 'templates/*.js'` ## 7.0.0 (2020-11-18) @@ -53,6 +54,7 @@ Soon we'll deprecate the latter, so prepare now. - #2308: Allow getHats method to be overriden in the `overrides` object in plugins. - #2321: When Converse runs inside a browser extension, enable browser sync and local storage for persistent storage - #1250: Change favicon color when unread messages +- Updated translations: de, es, fi, fr, gl, hu, nb_NO, oc, pl, pt, pt_BR, ru, tr, uk, zh - The `trusted` configuration setting has been removed in favor of two new settings: [allow_user_trust_override](https://conversejs.org/docs/html/configuration.html#allow-user-trust-override) [clear_cache_on_logout](https://conversejs.org/docs/html/configuration.html#clear-cache-on-logout) diff --git a/package.json b/package.json index e4a4ac656..837832303 100644 --- a/package.json +++ b/package.json @@ -5,19 +5,25 @@ "browser": "dist/converse.js", "module": "src/converse.js", "files": [ + "*.js", + "*.json", "CHANGES.md", "LICENSE.txt", "README.md", + "COPYRIGHT", "dist/", - "locale/", - "sass/", - "sounds/", + "docs/**/*.rst", + "docs/**/*.md", + "sass/**/*.scss", "src/*.js", - "src/utils/*.js", - "src/templates/*.html", - "src/templates/*.svg", - "src/templates/*.js", - "src/headless/" + "src/**/*.pot", + "src/**/*.po", + "src/**/*.js", + "src/**/*.html", + "src/**/*.svg", + "src/**/*.md", + "src/**/*.txt", + "src/**/*.json" ], "scripts": { "serve": "webpack-dev-server --config webpack.serve.js",