From a7cc3325cdf4fc5f1c4436171b20ba34fdfad622 Mon Sep 17 00:00:00 2001 From: Standa Opichal Date: Fri, 24 Aug 2018 01:49:27 +0200 Subject: [PATCH] Add LICENSE file to published npm packages [skip ci] (#8409) --- .gitignore | 3 +++ Makefile | 4 ++++ .../LICENSE | 22 ------------------- scripts/clone-license.sh | 3 +++ 4 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 packages/babel-plugin-transform-object-set-prototype-of-to-assign/LICENSE create mode 100755 scripts/clone-license.sh diff --git a/.gitignore b/.gitignore index 500e46cd8ccf..2b06f7e3e409 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,9 @@ .DS_Store /node_modules /packages/*/node_modules +/packages/*/LICENSE +!/packages/babel-parser/LICENSE +!/packages/babel-plugin-transform-object-assign/LICENSE *.log *.cache /build diff --git a/Makefile b/Makefile index b0ec3ca0e289..0582d947be0f 100644 --- a/Makefile +++ b/Makefile @@ -104,6 +104,9 @@ test-test262-ci: bootstrap test-test262 test-test262-update-whitelist: node scripts/tests/test262/run_babel_parser_test262.js --update-whitelist +clone-license: + ./scripts/clone-license.sh + publish: git pull --rebase make clean-lib @@ -112,6 +115,7 @@ publish: rm -rf packages/babel-runtime-corejs2/core-js BABEL_ENV=production make build-dist make test + make clone-license # not using lerna independent mode atm, so only update packages that have changed since we use ^ # --only-explicit-updates ./node_modules/.bin/lerna publish --force-publish=* --exact --skip-temp-tag diff --git a/packages/babel-plugin-transform-object-set-prototype-of-to-assign/LICENSE b/packages/babel-plugin-transform-object-set-prototype-of-to-assign/LICENSE deleted file mode 100644 index 369e18d94296..000000000000 --- a/packages/babel-plugin-transform-object-set-prototype-of-to-assign/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -Copyright (c) 2015 Sebastian McKenzie - -MIT License - -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. diff --git a/scripts/clone-license.sh b/scripts/clone-license.sh new file mode 100755 index 000000000000..e901ca00ba01 --- /dev/null +++ b/scripts/clone-license.sh @@ -0,0 +1,3 @@ +echo "Cloning LICENSE to babel packages" +cat LICENSE +ls -db ./packages/*/ | egrep -v '.*packages\/(babel-parser|babel-plugin-transform-object-assign)\/?$' | xargs -n 1 cp LICENSE