Skip to content

Commit d3e8a40

Browse files
committed
Create a npm command for checking licenses of dependencies
1 parent f8e11a2 commit d3e8a40

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ clean:
122122
-rm -rf integration/vscode/ada/$(PLATFORM)
123123

124124
vscode:
125-
cd integration/vscode/ada; LD_LIBRARY_PATH= npm install --no-audit && npm run compile
125+
cd integration/vscode/ada; LD_LIBRARY_PATH= npm install --no-audit && npm run check-licenses && npm run compile
126126
@echo Now run:
127127
@echo code --extensionDevelopmentPath=`pwd`/integration/vscode/ada/ `pwd`
128128

integration/vscode/ada/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@
581581
"vscode-tmgrammar-test": "0.1.1"
582582
},
583583
"scripts": {
584+
"check-licenses": "npx license-checker-rseidelsohn --summary --onlyAllow '0BSD;Apache-2.0;BSD-2-Clause;BSD-3-Clause;BlueOak-1.0.0;CC0-1.0;GPL-3.0;GPL-3.0-or-later;ISC;MIT;Python-2.0;Zlib'",
584585
"vscode:prepublish": "npm run esbuild-base -- --minify",
585586
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/src/extension.js --external:vscode --format=cjs --platform=node",
586587
"compile": "node ./node_modules/typescript/bin/tsc",

0 commit comments

Comments
 (0)