web: fix license for API Client

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-23 16:12:31 +02:00
parent aad753de68
commit 2f4b18ebbd
2 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,6 @@ gen-web:
mkdir -p web/node_modules/@goauthentik/api
python -m scripts.web_api_esm
\cp -fv scripts/web_api_readme.md web-api/README.md
\cp -fv LICENSE web-api/LICENSE
cd web-api && npm i
\cp -rfv web-api/* web/node_modules/@goauthentik/api

View File

@ -21,6 +21,7 @@ TSCONFIG_ESM = {
with open("web-api/package.json", encoding="utf-8") as _package:
package = loads(_package.read())
package["license"] = "GPL-3.0-only"
package["module"] = "./dist/esm/index.js"
package["sideEffects"] = False
package["scripts"]["build"] = "tsc && tsc --project tsconfig.esm.json"