Skip to content

Commit

Permalink
Merge pull request #1 from mhassan1/0.2.0
Browse files Browse the repository at this point in the history
0.2.0
  • Loading branch information
mhassan1 committed Dec 30, 2020
2 parents 810079a + ef125f5 commit ea2dcb6
Show file tree
Hide file tree
Showing 30 changed files with 1,535 additions and 854 deletions.
14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:jsdoc/recommended',
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'jsdoc'
],
}
77 changes: 77 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

55 changes: 0 additions & 55 deletions .yarn/releases/yarn-2.4.0.cjs

This file was deleted.

55 changes: 55 additions & 0 deletions .yarn/releases/yarn-sources.cjs

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
yarnPath: .yarn/releases/yarn-2.4.0.cjs
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-sources.cjs
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## [0.2.0] - 2020-12-30
[0.2.0]: https://github.com/mhassan1/yarn-plugin-licenses/compare/v0.1.0...v0.2.0

- Upgrade yarn for `fs` support of `BigInt` (https://github.com/yarnpkg/berry/issues/2232)
- Use `fs.readFilePromise` in `linker.getPackageManifest` implementations
- Add jest test coverage
- Bump dev dependencies
- Migrate from tslint to eslint

## [0.1.0] - 2020-12-08
[0.1.0]: https://github.com/mhassan1/yarn-plugin-licenses/compare/cb369b3...v0.1.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is a Yarn v2 plugin that adds `yarn licenses` commands (similar to what Yar
## Install

```
yarn plugin import https://raw.githubusercontent.com/mhassan1/yarn-plugin-licenses/v0.1.0/bundles/@yarnpkg/plugin-licenses.js
yarn plugin import https://raw.githubusercontent.com/mhassan1/yarn-plugin-licenses/v0.2.0/bundles/@yarnpkg/plugin-licenses.js
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion bundles/@yarnpkg/plugin-licenses.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion jestconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,15 @@
"^.+\\.ts$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)test)\\.ts$",
"moduleFileExtensions": ["ts", "js"]
"moduleFileExtensions": ["ts", "js"],
"collectCoverage": true,
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 95,
"lines": 95,
"statements": 90
}
},
"coverageReporters": ["text"]
}
25 changes: 13 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yarn-plugin-licenses",
"version": "0.1.0",
"version": "0.2.0",
"description": "Yarn v2 plugin that adds `yarn licenses` commands",
"main": "src/index.ts",
"repository": {
Expand All @@ -26,31 +26,32 @@
"test": "jest --config jestconfig.json",
"build": "builder build plugin",
"format": "prettier --write \"src/**/*.ts\"",
"lint": "tslint -p tsconfig.json",
"lint": "eslint --ext .ts .",
"prepare": "yarn build",
"preversion": "yarn lint",
"version": "yarn format && yarn build && sed -Ei '' \"s/(yarn-plugin-licenses\\/).+(\\/bundles)/\\1v$npm_package_version\\2/g\" README.md && git add -A",
"postversion": "git push && git push --tags"
},
"dependencies": {
"@types/node": "^14.0.0",
"@yarnpkg/builder": "^2.1.3",
"@yarnpkg/cli": "^2.4.0",
"@yarnpkg/core": "^2.4.0",
"@yarnpkg/fslib": "^2.4.0",
"@yarnpkg/libzip": "^2.2.1",
"@yarnpkg/parsers": "^2.3.0",
"@yarnpkg/plugin-pnp": "^2.4.0",
"clipanion": "^2.4.4",
"typescript": "^3.9.5"
"clipanion": "^2.6.2"
},
"devDependencies": {
"@types/jest": "^26.0.13",
"codecov": "^3.7.2",
"jest": "^26.4.2",
"prettier": "^2.1.1",
"ts-jest": "^26.3.0",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
"@types/jest": "^26.0.19",
"@types/node": "^14.14.16",
"@typescript-eslint/eslint-plugin": "^4.11.1",
"@typescript-eslint/parser": "^4.11.1",
"eslint": "^7.16.0",
"eslint-plugin-jsdoc": "^30.7.9",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"ts-jest": "^26.4.4",
"typescript": "^4.1.3"
}
}
4 changes: 0 additions & 4 deletions src/__tests__/fixtures/test-package-node-modules/.yarnrc.yml

This file was deleted.

3 changes: 0 additions & 3 deletions src/__tests__/fixtures/test-package-pnp/.yarnrc.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
enableColors: false

nodeLinker: node-modules

plugins:
- ../../../../../bundles/@yarnpkg/plugin-licenses.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

plugins:
- ../../../../../bundles/@yarnpkg/plugin-licenses.js

0 comments on commit ea2dcb6

Please sign in to comment.