-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
856afe7
commit 4b37903
Showing
3 changed files
with
14 additions
and
5 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 |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
[ | ||
"@semantic-release/exec", | ||
{ | ||
"publishCmd": "npm run build" | ||
"addChannelCmd": "npm run build" | ||
} | ||
] | ||
], | ||
|
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,11 +1,20 @@ | ||
#!/bin/sh | ||
|
||
#preparation | ||
# preparation | ||
npx rimraf ./lib | ||
|
||
#build tsc | ||
# build tsc | ||
npx tsc -p tsconfig.json | ||
npx terser ./lib/main.js -c -m -o ./lib/main.js | ||
|
||
#postbuild process | ||
# copy readme | ||
cp ./README.md ./lib/README.md | ||
|
||
# post build process | ||
node ./scripts/pkg-builder.js | ||
|
||
# check if the package was writen | ||
if [ ! -f "./lib/package.json" ]; then | ||
echo "package.json was created" | ||
exit 1 | ||
fi |
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