-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e60a2bc
commit 1af6250
Showing
8 changed files
with
81 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Fails with exit code != 0 and an error message if a disallowed license is encountered. | ||
The script should be executed from the project root directory after dependencies have been installed: | ||
$ ./node/node ./src/support/js/check-licenses.js | ||
$ tsx ./src/support/js/check-licenses.ts | ||
To run checks yourself (e.g. to update the allow list or to get details), install | ||
license-checker yourself and run it from the project root directory: | ||
|
@@ -15,8 +15,8 @@ | |
See also https://www.npmjs.com/package/license-checker | ||
*/ | ||
|
||
const checker = require("license-checker"); | ||
const process = require("process"); | ||
import { init as initChecker } from "license-checker"; | ||
import { cwd, exit} from "node:process"; | ||
|
||
// Licenses known to be OK. | ||
const ACCEPTED_LICENSES = [ | ||
|
@@ -41,17 +41,19 @@ const SKIP_PACKAGES = [ | |
"[email protected]" // BSD-1-Clause License in source code | ||
]; | ||
|
||
checker.init( | ||
initChecker( | ||
{ | ||
start: process.cwd(), | ||
start: cwd(), | ||
onlyAllow: ACCEPTED_LICENSES.join(";"), | ||
excludePackages: SKIP_PACKAGES.join(";") | ||
}, | ||
(error, packages) => { | ||
void packages; // currently unused | ||
|
||
if (error) { | ||
console.error("Error: ", error); | ||
process.exit(1); | ||
exit(1); | ||
} | ||
process.exit(0); | ||
exit(0); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,4 +129,4 @@ | |
.dj_ie .start.notheme .dijitInputInner, | ||
.dj_gecko .start.notheme .dijitInputInner{ | ||
height: 22px; | ||
} | ||
} |