Added LICENSE.txt to npm bundle.

This commit is contained in:
Eric Traut 2021-04-17 08:21:37 -07:00
parent 3dec7f5e3e
commit 1c5d0aaa37
2 changed files with 5 additions and 3 deletions

View File

@ -1,2 +1,3 @@
# Copied from the root directory during publish.
README.md
LICENSE.txt

View File

@ -18,8 +18,8 @@
},
"scripts": {
"build": "webpack --mode production --progress",
"clean": "shx rm -rf ./dist ./out README.md",
"prepack": "npm run clean && shx cp ../../README.md . && npm run build",
"clean": "shx rm -rf ./dist ./out README.md LICENSE.txt",
"prepack": "npm run clean && shx cp ../../README.md . && shx cp ../../LICENSE.txt . && npm run build",
"webpack": "webpack --mode development --progress"
},
"devDependencies": {
@ -34,7 +34,8 @@
"webpack-cli": "^4.5.0"
},
"files": [
"/dist"
"/dist",
"LICENSE.txt"
],
"main": "index.js",
"bin": {