Add LICENSE file to published npm packages [skip ci] (#8409)

This commit is contained in:
Standa Opichal 2018-08-24 01:49:27 +02:00 committed by Henry Zhu
parent 023044c1d4
commit a7cc3325cd
4 changed files with 10 additions and 22 deletions

3
.gitignore vendored
View File

@ -1,6 +1,9 @@
.DS_Store .DS_Store
/node_modules /node_modules
/packages/*/node_modules /packages/*/node_modules
/packages/*/LICENSE
!/packages/babel-parser/LICENSE
!/packages/babel-plugin-transform-object-assign/LICENSE
*.log *.log
*.cache *.cache
/build /build

View File

@ -104,6 +104,9 @@ test-test262-ci: bootstrap test-test262
test-test262-update-whitelist: test-test262-update-whitelist:
node scripts/tests/test262/run_babel_parser_test262.js --update-whitelist node scripts/tests/test262/run_babel_parser_test262.js --update-whitelist
clone-license:
./scripts/clone-license.sh
publish: publish:
git pull --rebase git pull --rebase
make clean-lib make clean-lib
@ -112,6 +115,7 @@ publish:
rm -rf packages/babel-runtime-corejs2/core-js rm -rf packages/babel-runtime-corejs2/core-js
BABEL_ENV=production make build-dist BABEL_ENV=production make build-dist
make test make test
make clone-license
# not using lerna independent mode atm, so only update packages that have changed since we use ^ # not using lerna independent mode atm, so only update packages that have changed since we use ^
# --only-explicit-updates # --only-explicit-updates
./node_modules/.bin/lerna publish --force-publish=* --exact --skip-temp-tag ./node_modules/.bin/lerna publish --force-publish=* --exact --skip-temp-tag

View File

@ -1,22 +0,0 @@
Copyright (c) 2015 Sebastian McKenzie <sebmck@gmail.com>
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.

3
scripts/clone-license.sh Executable file
View File

@ -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