New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include bundled dependencies licenses in LICENSE
file
#10006
Conversation
ff93e40
to
753d3ac
Compare
753d3ac
to
1aab70b
Compare
bfaaec3
to
fa13036
Compare
@fisker Do you want to rebase it?
We could generate a no-output bundle for CSS, just to collect the dependencies. |
We can change this to the |
# Conflicts: # package.json # scripts/build/build.js # scripts/build/bundler.js # yarn.lock
LICENSE file for current next branchPrettier licensePrettier is released under the MIT license: Copyright © James Long and contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Licenses of bundled dependenciesThe published Prettier artifact additionally contains code with the following licenses: Bundled dependencies@angular/compiler@v12.2.13License: MIT @babel/code-frame@v7.16.0License: MIT
@babel/helper-validator-identifier@v7.15.7License: MIT
@babel/highlight@v7.16.0License: MIT
@babel/parser@v7.16.4License: MIT
@glimmer/env@v0.1.7License: MIT
@glimmer/syntax@v0.83.1License: MIT
@glimmer/util@v0.83.1License: MIT
@handlebars/parser@v2.0.0License: ISC @iarna/toml@v2.2.5License: ISC
@nodelib/fs.scandir@v2.1.5License: MIT
@nodelib/fs.stat@v2.0.5License: MIT
@nodelib/fs.walk@v1.2.8License: MIT
@typescript-eslint/types@v5.5.0License: MIT
@typescript-eslint/typescript-estree@v5.5.0License: BSD-2-Clause
@typescript-eslint/visitor-keys@v5.5.0License: MIT
acorn@v8.6.0License: MIT
acorn-jsx@v5.3.2License: MIT
angular-estree-parser@v2.5.0License: MIT
angular-html-parser@v1.8.0License: MIT
ansi-regex@v5.0.1License: MIT ansi-styles@v3.2.1License: MIT ansi-styles@v4.3.0License: MIT array-union@v2.1.0License: MIT bail@v1.0.5License: MIT balanced-match@v1.0.2License: MIT
brace-expansion@v1.1.11License: MIT
braces@v3.0.2License: MIT
callsites@v3.1.0License: MIT camelcase@v6.2.1License: MIT ccount@v1.1.0License: MIT chalk@v2.4.2License: MIT chalk@v4.1.2License: MIT character-entities@v1.2.4License: MIT character-entities-legacy@v1.1.4License: MIT character-reference-invalid@v1.1.4License: MIT ci-info@v3.3.0License: MIT
clone@v1.0.4License: MIT
collapse-white-space@v1.0.6License: MIT color-convert@v1.9.3License: MIT
color-convert@v2.0.1License: MIT
color-name@v1.1.3License: MIT
color-name@v1.1.4License: MIT
concat-map@v0.0.1License: MIT
core-js@v3.19.2License: MIT
cosmiconfig@v7.0.1License: MIT
dashify@v2.0.0License: MIT
debug@v4.3.3License: MIT
defaults@v1.0.3License: MIT
detect-newline@v3.1.0License: MIT diff@v5.0.0License: BSD-3-Clause
dir-glob@v3.0.1License: MIT editorconfig@v0.15.3License: MIT
editorconfig-to-prettier@v0.2.0License: ISC emoji-regex@v8.0.0License: MIT
error-ex@v1.3.2License: MIT
escape-string-regexp@v1.0.5License: MIT escape-string-regexp@v4.0.0License: MIT eslint-visitor-keys@v3.1.0License: Apache-2.0
espree@v9.1.0License: BSD-2-Clause
esutils@v2.0.3License: BSD-2-Clause
extend@v3.0.2License: MIT
fast-glob@v3.2.7License: MIT
fast-json-stable-stringify@v2.1.0License: MIT
fastq@v1.13.0License: ISC
fill-range@v7.0.1License: MIT
find-parent-dir@v0.3.1License: MIT
flatten@v1.0.3License: MIT
flow-parser@v0.162.1License: MIT function-bind@v1.1.1License: MIT
get-stdin@v8.0.0License: MIT glob-parent@v5.1.2License: ISC
globby@v11.0.4License: MIT graphql@v15.6.1License: MIT
has@v1.0.3License: MIT
has-flag@v3.0.0License: MIT has-flag@v4.0.0License: MIT html-element-attributes@v2.3.0License: MIT html-tag-names@v1.1.5License: MIT html-void-elements@v1.0.5License: MIT ignore@v4.0.6License: MIT
import-fresh@v3.3.0License: MIT indexes-of@v1.0.1License: MIT
inherits@v2.0.4License: ISC
is-alphabetical@v1.0.4License: MIT is-alphanumerical@v1.0.4License: MIT is-arrayish@v0.2.1License: MIT
is-buffer@v2.0.5License: MIT
is-core-module@v2.8.0License: MIT
is-decimal@v1.0.4License: MIT is-extglob@v2.1.1License: MIT
is-fullwidth-code-point@v3.0.0License: MIT is-glob@v4.0.3License: MIT
is-hexadecimal@v1.0.4License: MIT is-number@v7.0.0License: MIT
is-plain-obj@v2.1.0License: MIT is-whitespace-character@v1.0.4License: MIT is-word-character@v1.0.4License: MIT jest-docblock@v27.4.0License: MIT
js-tokens@v4.0.0License: MIT
json-parse-even-better-errors@v2.3.1License: MIT
json5@v2.2.0License: MIT
leven@v2.1.0License: MIT lines-and-columns@v1.2.4License: MIT
lines-and-columns@v2.0.3License: MIT
linguist-languages@v7.15.0License: MIT
lodash@v4.17.21License: MIT
lru-cache@v4.1.5License: ISC
lru-cache@v6.0.0License: ISC
map-age-cleaner@v0.1.3License: MIT markdown-escapes@v1.0.4License: MIT mem@v8.1.1License: MIT merge2@v1.4.1License: MIT
meriyah@v4.2.0License: ISC
micromatch@v4.0.4License: MIT
mimic-fn@v3.1.0License: MIT minimatch@v3.0.4License: ISC
minimist@v1.2.5License: MIT
ms@v2.1.2License: MIT n-readlines@v1.0.1License: MIT
nanoid@v3.1.30License: MIT
outdent@v0.8.0License: MIT
p-defer@v1.0.0License: MIT parse-entities@v2.0.0License: MIT parse-json@v5.2.0License: MIT parse-srcset@v1.0.2License: MIT
path-parse@v1.0.7License: MIT
path-type@v4.0.0License: MIT picocolors@v1.0.0License: ISC
picomatch@v2.3.0License: MIT
please-upgrade-node@v3.2.0License: MIT
postcss@v8.4.4License: MIT
postcss-less@v5.0.0License: MIT
postcss-media-query-parser@v0.2.3License: MIT postcss-scss@v4.0.2License: MIT
postcss-selector-parser@v2.2.3License: MIT
postcss-values-parser@v2.0.1License: MIT
prettier@v2.6.0-devLicense: MIT
pseudomap@v1.0.2License: ISC
punycode@v2.1.1License: MIT
queue-microtask@v1.2.3License: MIT
remark-footnotes@v2.0.0License: MIT remark-math@v3.0.1License: MIT remark-parse@v8.0.3License: MIT repeat-string@v1.6.1License: MIT
resolve@v1.20.0License: MIT
resolve-from@v4.0.0License: MIT reusify@v1.0.4License: MIT
run-parallel@v1.2.0License: MIT
semver@v7.3.5License: ISC
semver-compare@v1.0.0License: MIT
sigmund@v1.0.1License: ISC
simple-html-tokenizer@v0.5.11License: MIT
slash@v3.0.0License: MIT source-map-js@v1.0.1License: BSD-3-Clause
state-toggle@v1.0.3License: MIT string-width@v4.2.3License: MIT strip-ansi@v6.0.0License: MIT strip-ansi@v6.0.1License: MIT supports-color@v5.5.0License: MIT supports-color@v7.2.0License: MIT to-regex-range@v5.0.1License: MIT
trim@v0.0.1By: TJ Holowaychuk trim-trailing-lines@v1.1.4License: MIT trough@v1.0.5License: MIT tslib@v1.14.1License: 0BSD
tsutils@v3.21.0License: MIT
typescript@v4.5.2License: Apache-2.0
unherit@v1.1.3License: MIT unified@v9.2.1License: MIT uniq@v1.0.1License: MIT
unist-util-is@v4.1.0License: MIT unist-util-remove-position@v2.0.1License: MIT unist-util-stringify-position@v2.0.3License: MIT unist-util-visit@v2.0.3License: MIT unist-util-visit-parents@v3.1.1License: MIT vfile@v4.2.1License: MIT vfile-location@v3.2.0License: MIT vfile-message@v2.0.4License: MIT vnopts@v1.0.2License: MIT
wcwidth@v1.0.1License: MIT
xtend@v4.0.2License: MIT
yallist@v2.1.2License: ISC
yallist@v4.0.0License: ISC
yaml@v1.10.2License: ISC
yaml-unist-parser@v1.3.1License: MIT
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disclaimer: I'm not a lawyer and I don't know much about licensing.
Great work! Please check my comments(nits).
scripts/build/save-license.mjs
Outdated
const file = path.join(DIST_DIR, "LICENSE"); | ||
const separator = `\n${"-".repeat(40)}\n\n`; | ||
|
||
async function saveLicense(dependencies) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT?
async function saveLicense(dependencies) { | |
async function bundleLicenses(dependencies) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is to write the LICENSE file, I prefer save
, but Licenses
is good.
Woops, I noticed CI is failing after commented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job 👏
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
Description
Didn't found similar plugin for
Webpack
, socss
parser related dependencies licenses not included.Fixes #9980
Checklist
docs/
directory).changelog_unreleased/*/XXXX.md
file followingchangelog_unreleased/TEMPLATE.md
.✨Try the playground for this PR✨