Use package.json files to specify more precisely what gets packed

This commit is contained in:
JC Brand 2020-01-10 13:26:50 +01:00
parent 91fc8c52d7
commit 9c5fc2e4d3
3 changed files with 11 additions and 8 deletions

View File

@ -62,10 +62,6 @@ serve: stamp-npm
serve_bg: stamp-npm
$(HTTPSERVE) -p $(HTTPSERVE_PORT) -c-1 -s &
.PHONY: notemps
notemps:
find -name "*~" -exec rm {} \;
########################################################################
## Translation machinery
@ -102,7 +98,6 @@ release:
make pot
make po
make build
make notemps
npm pack
.PHONY: postrelease

View File

@ -12,7 +12,11 @@
"locale/",
"sass/",
"sounds/",
"src/"
"src/*.js",
"src/utils/*.js",
"src/templates/*.html",
"src/templates/*.svg",
"src/headless/"
],
"scripts": {
"serve": "webpack-dev-server --config webpack.serve.js",

View File

@ -7,8 +7,12 @@
"license": "MPL-2.0",
"main": "dist/converse-headless.min.js",
"files": [
"**/*.js",
"templates/*"
"*.js",
"*.json",
"README.md",
"utils/*.js",
"templates/*.html",
"templates/*.svg"
],
"repository": {
"type": "git",