mirror of
https://github.com/contentful/skills.git
synced 2026-09-14 20:17:03 +08:00
833 B
833 B
License Automation
This project includes an automated license management workflow that tracks direct dependencies and keeps compliance files up to date.
Running the license update script
To regenerate licensing artifacts:
pnpm run update-licenses
The script will:
- Scan direct runtime and development dependencies from
package.json - Read dependency license metadata from installed packages in
node_modules - Update the root
NOTICEfile - Rebuild the
licenses/directory with one file per discovered license
When to run
Run the script whenever dependencies change:
- After adding a dependency
- After removing a dependency
- Before a release or tag
- In CI (optional)
Output
The command prints:
- Runtime dependency count
- Development dependency count
- Discovered unique license ids