JeremyYao commented on PR #1295: URL: https://github.com/apache/daffodil-vscode/pull/1295#issuecomment-2956167349
I did some investigating into license-checker per ChatGPT's recommendations https://chatgpt.com/share/6841c7c7-fa50-800b-a2ab-1751f7a70c11. On https://www.npmjs.com/package/license-checker, it has the ability to export a list of packages'/dependencies' licenses into JSON as well as commands for only allowing certain licenses. We could potentially integrate this into the CI/CD pipeline. Possibly the --onlyAllow command as it's able to return a -1 if it fails the pass. The instructions on the NPM page tells you to install license-checker globally, but you could alternatively use it as a dev dependency. Some commands I used during my investigation ```PowerShell yarn add license-checker --dev node .\node_modules\license-checker\bin\license-checker --onlyAllow="MIT;Apache-2.0;ISC;BSD-3-Clause" --prod node .\node_modules\license-checker\bin\license-checker --json --prod > "prod_licenses.json" ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
