-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/.github | ||
/dist | ||
/docs | ||
/examples | ||
/facades | ||
/node_modules | ||
/scripts | ||
/src | ||
/tests | ||
/zephyr | ||
/tsconfig.json | ||
/tsconfig.prod.json | ||
/gatt-profiles.json |
File renamed without changes.
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 |
---|---|---|
@@ -1,26 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Create a temporary directory | ||
TMP_DIR=$(mktemp -d) | ||
echo $TMP_DIR | ||
|
||
rm -fr lib/ | ||
npm run build.prod | ||
|
||
# Copy the contents of /lib to the temporary directory | ||
cp -r lib/* $TMP_DIR/ | ||
|
||
# Optionally, copy other necessary files like package.json, README.md, etc. | ||
cp package.json $TMP_DIR/ | ||
cp README.md $TMP_DIR/ | ||
cp LICENSE $TMP_DIR/ | ||
cp CHANGELOG.md $TMP_DIR/ | ||
|
||
# Change to the temporary directory and publish | ||
( | ||
cd $TMP_DIR | ||
npm publish | ||
) | ||
|
||
# Clean up: Delete the temporary directory | ||
rm -rf $TMP_DIR | ||
npm publish |