Skip to content

Commit

Permalink
feat: add licenses command (#5567)
Browse files Browse the repository at this point in the history
Introduces a new command `licenses list` which allows to list
the licenses of the packages

close #2825
  • Loading branch information
weyert committed Nov 17, 2022
1 parent 969f8a0 commit d84a30a
Show file tree
Hide file tree
Showing 38 changed files with 1,856 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/nice-cycles-search.md
@@ -0,0 +1,7 @@
---
'@pnpm/license-scanner': major
'@pnpm/plugin-commands-licenses': major
"pnpm": minor
---

Added a new command `pnpm licenses list`, which displays the licenses of the packages [#2825](https://github.com/pnpm/pnpm/issues/2825)
17 changes: 17 additions & 0 deletions packages/license-scanner/README.md
@@ -0,0 +1,17 @@
# @pnpm/license-scanner

> Check for the licensse of packages
<!--@shields('npm')-->
[![npm version](https://img.shields.io/npm/v/@pnpm/license-scanner.svg)](https://www.npmjs.com/package/@pnpm/license-scanner)
<!--/@-->

## Installation

```sh
pnpm add @pnpm/license-scanner
```

## License

[MIT](LICENSE)
1 change: 1 addition & 0 deletions packages/license-scanner/jest.config.js
@@ -0,0 +1 @@
module.exports = require('../../jest.config.js');
63 changes: 63 additions & 0 deletions packages/license-scanner/package.json
@@ -0,0 +1,63 @@
{
"name": "@pnpm/license-scanner",
"version": "0.0.0",
"description": "Check for licenses packages",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"engines": {
"node": ">=14.6"
},
"files": [
"lib",
"!*.map"
],
"scripts": {
"test": "pnpm run compile && pnpm run _test",
"lint": "eslint src/**/*.ts test/**/*.ts",
"prepublishOnly": "pnpm run compile",
"registry-mock": "registry-mock",
"test:jest": "jest",
"_test": "jest",
"test:e2e": "registry-mock prepare && run-p -r registry-mock test:jest",
"compile": "tsc --build && pnpm run lint --fix"
},
"repository": "https://github.com/pnpm/pnpm/blob/main/packages/license-scanner",
"keywords": [
"pnpm7",
"pnpm",
"licenses"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"homepage": "https://github.com/pnpm/pnpm/blob/main/packages/license-scanner#readme",
"peerDependencies": {
"@pnpm/logger": "^5.0.0"
},
"dependencies": {
"@pnpm/cafs": "workspace:*",
"@pnpm/directory-fetcher": "workspace:*",
"@pnpm/error": "workspace:*",
"@pnpm/lockfile-file": "workspace:*",
"@pnpm/lockfile-types": "workspace:*",
"@pnpm/lockfile-utils": "workspace:*",
"@pnpm/lockfile-walker": "workspace:*",
"@pnpm/package-is-installable": "workspace:*",
"@pnpm/read-package-json": "workspace:*",
"@pnpm/types": "workspace:*",
"dependency-path": "workspace:*",
"load-json-file": "^6.2.0",
"p-limit": "^3.1.0",
"path-absolute": "^1.0.1"
},
"devDependencies": {
"@pnpm/constants": "workspace:*",
"@pnpm/license-scanner": "workspace:*",
"@types/ramda": "0.28.15"
},
"funding": "https://opencollective.com/pnpm",
"exports": {
".": "./lib/index.js"
}
}

0 comments on commit d84a30a

Please sign in to comment.