Skip to content

Commit 7824cc1

Browse files
committed
ci(licensee): Enable licensee check
The "only" package uses the MIT license (mentioned in README.md). The license file and license field are missing from the package, but have been added to the GitHub repository: https://github.com/tj/node-only
1 parent fd0d6b8 commit 7824cc1

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/github-ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ jobs:
3030
- name: Perform ESLint check
3131
run: npm run lint
3232

33-
# TODO: Enable when "cli" package has been integrated into monorepo
34-
# - name: Perform Licenses check
35-
# run: npm run check-licenses
33+
- name: Perform Licenses check
34+
run: npm run check-licenses
3635

3736
- name: Perform dependency check
3837
run: npm run depcheck

packages/cli/.licensee.json renamed to .licensee.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
},
1010
"packages": {
1111
"callsite": "1.0.0",
12-
"yesno": "0.4.0"
12+
"yesno": "0.4.0",
13+
"only": "0.0.2"
1314
},
1415
"corrections": true
1516
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"npm": ">= 8"
2424
},
2525
"scripts": {
26-
"test": "npm run lint && npm run depcheck && npm run coverage && npm run jsdoc-generate && npm run schema-generate && npm run generate-cli-doc",
26+
"test": "npm run lint && npm run check-licenses && npm run depcheck && npm run coverage && npm run jsdoc-generate && npm run schema-generate && npm run generate-cli-doc",
2727
"lint": "eslint ./ && npm run lint --workspaces",
2828
"coverage": "npm run coverage --workspaces",
2929
"jsdoc": "npm run jsdoc-generate && open-cli site/api/index.html",
@@ -35,7 +35,8 @@
3535
"schema-generate": "node ./scripts/buildSchema.js ui5",
3636
"schema-workspace-generate": "node ./scripts/buildSchema.js ui5-workspace",
3737
"generate-cli-doc": "node ./scripts/generateCliDoc.js",
38-
"depcheck": "depcheck --ignores @ui5/builder,@ui5/cli,@ui5/fs,@ui5/logger,@ui5/project,@ui5/server,docdash,local-web-server && npm run depcheck --workspaces"
38+
"depcheck": "depcheck --ignores @ui5/builder,@ui5/cli,@ui5/fs,@ui5/logger,@ui5/project,@ui5/server,docdash,local-web-server && npm run depcheck --workspaces",
39+
"check-licenses": "licensee --errors-only"
3940
},
4041
"repository": {
4142
"type": "git",
@@ -57,6 +58,7 @@
5758
"globals": "^16.4.0",
5859
"handlebars": "^4.7.8",
5960
"jsdoc": "^4.0.4",
61+
"licensee": "^11.1.1",
6062
"local-web-server": "^5.4.0",
6163
"open-cli": "^8.0.0",
6264
"traverse": "^0.6.11"

packages/cli/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"npm": ">= 8"
3131
},
3232
"scripts": {
33-
"test": "npm run lint && npm run jsdoc-generate && npm run coverage && npm run depcheck && npm run check-licenses",
33+
"test": "npm run lint && npm run jsdoc-generate && npm run coverage && npm run depcheck",
3434
"lint": "eslint ./",
3535
"unit": "rimraf test/tmp && ava",
3636
"unit-verbose": "rimraf test/tmp && cross-env UI5_LOG_LVL=verbose ava --verbose --serial",
@@ -44,8 +44,7 @@
4444
"version": "git-chglog --sort semver --next-tag v$npm_package_version -o CHANGELOG.md v4.0.0.. && git add CHANGELOG.md",
4545
"prepublishOnly": "git push --follow-tags",
4646
"release-note": "git-chglog --sort semver -c .chglog/release-config.yml v$npm_package_version | node .chglog/consolidate-changelogs.js",
47-
"depcheck": "depcheck --ignores @ui5/cli,rimraf,docdash,@istanbuljs/esm-loader-hook,@ui5/fs,@ui5/builder",
48-
"check-licenses": "licensee --errors-only"
47+
"depcheck": "depcheck --ignores @ui5/cli,rimraf,docdash,@istanbuljs/esm-loader-hook,@ui5/fs,@ui5/builder"
4948
},
5049
"files": [
5150
"CHANGELOG.md",
@@ -137,7 +136,6 @@
137136
"esmock": "^2.7.3",
138137
"execa": "^9.6.0",
139138
"jsdoc": "^4.0.4",
140-
"licensee": "^11.1.1",
141139
"nyc": "^17.1.0",
142140
"open-cli": "^8.0.0",
143141
"rimraf": "^6.0.1",

0 commit comments

Comments
 (0)