-
Notifications
You must be signed in to change notification settings - Fork 530
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(publish): publish react-instantsearch/dist instead of root (#1884)
Before this commit, we broke the publishing process
- Loading branch information
Showing
6 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/react-instantsearch-theme-algolia/scripts/build-and-publish.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
yarn build && | ||
npm publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
yarn build && | ||
cd dist/ && | ||
npm publish && | ||
rm -rf dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e # exit when error | ||
|
||
mkdir -p dist/ | ||
rm -rf dist/* | ||
cp package.json dist/ | ||
cp README.md dist/ | ||
babel -q index.js -o dist/index.js | ||
babel -q dom.js -o dist/dom.js | ||
babel -q connectors.js -o dist/connectors.js | ||
babel -q native.js -o dist/native.js | ||
mkdir -p dist/ && | ||
rm -rf dist/* && | ||
cp package.json dist/ && | ||
cp README.md dist/ && | ||
babel -q index.js -o dist/index.js && | ||
babel -q dom.js -o dist/dom.js && | ||
babel -q connectors.js -o dist/connectors.js && | ||
babel -q native.js -o dist/native.js && | ||
babel -q --ignore test.js,__mocks__ --out-dir dist/src src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters