Skip to content

Commit

Permalink
Add LICENSE file to published npm packages [skip ci] (babel#8409)
Browse files Browse the repository at this point in the history
  • Loading branch information
opichals authored and hzoo committed Aug 23, 2018
1 parent 023044c commit a7cc332
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

This file was deleted.

3 changes: 3 additions & 0 deletions scripts/clone-license.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a7cc332

Please sign in to comment.