Add license checking to npm ci.

These are all the licenses we currently depend on.

https://github.com/dcs-liberation/dcs_liberation/issues/2039
This commit is contained in:
Dan Albert
2022-03-06 01:27:14 -08:00
parent fcb897a0e8
commit 7e213dbfbe
2 changed files with 561 additions and 4 deletions

View File

@@ -1,8 +1,9 @@
{
"name": "client",
"name": "liberation-client",
"version": "0.1.0",
"private": true,
"main": "main.js",
"license": "LGPL-3.0-or-later",
"dependencies": {
"@reduxjs/toolkit": "^1.7.2",
"@testing-library/jest-dom": "^5.16.2",
@@ -29,7 +30,7 @@
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"prepare": "eslint src",
"prepare": "eslint src && license-checker --onlyAllow \"MIT;Apache-2.0;CC0-1.0;BSD-3-Clause;ISC;Custom: https://github.com/tmcw/jsonlint;BSD-2-Clause;Hippocratic-2.1;BSD*;WTFPL\" --excludePrivatePackages --production",
"test": "react-scripts test",
"eject": "react-scripts eject",
"electron": "wait-on tcp:3000 && electron ."
@@ -59,6 +60,7 @@
"@types/websocket": "^1.0.5",
"electron": "^17.1.0",
"electron-is-dev": "^2.0.0",
"license-checker": "^25.0.1",
"react-scripts": "5.0.0",
"wait-on": "^6.0.1"
}