From d471a4c95942f1f4a0b5a6d636edc4f730b89160 Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 28 Jan 2023 16:20:16 +0100 Subject: [PATCH] packaging: Use an include list in package.json Rather than playing whack a mole with an exclude list, let's use an include list instead. --- .npmignore | 25 ------------------------- package.json | 9 +++++++++ 2 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 8df5322f..00000000 --- a/.npmignore +++ /dev/null @@ -1,25 +0,0 @@ -# This file must not contain generated assets listed in .gitignore. -# npm-debug.log and node_modules/ are ignored by default. -# See https://docs.npmjs.com/misc/developers#keeping-files-out-of-your-package - -# Ignore all dot files except for .thelounge_home -.* -!.thelounge_home - -# Ignore client folder as it's being built into public/ folder -# except for the specified files which are used by the server -client/** -!client/js/constants.ts -!client/js/helpers/ircmessageparser/findLinks.ts -!client/js/helpers/ircmessageparser/cleanIrcMessage.ts -!client/index.html.tpl - -public/js/bundle.vendor.js.map -coverage/ -scripts/ -test/ -appveyor.yml -webpack.config*.js -postcss.config.js -renovate.json - diff --git a/package.json b/package.json index 0e5bdb27..514de279 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,15 @@ "engines": { "node": ">=14.0.0" }, + "files": [ + "./.thelounge_home", + "./index.js", + "./yarn.lock", + "./client/index.html.tpl", + "./dist/package.json", + "./dist/**/*.js", + "./public/**" + ], "dependencies": { "@fastify/busboy": "1.0.0", "bcryptjs": "2.4.3",