Skip to content

Commit

Permalink
chore: simplified the 'build' script
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowplay1 committed Dec 4, 2023
1 parent 8958cfb commit c8d4cea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "./dist/typings/src/index.d.ts",
"scripts": {
"test": "jest",
"build": "rm -rf ./dist && npx tsc",
"build": "rm -rf ./dist && tsc",
"postinstall": "node postinstall.js",
"lint": "bash ./scripts/lint.sh",
"lint:fix": "bash ./scripts/lint.sh --fix"
Expand Down
4 changes: 2 additions & 2 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ output=""

lint() {
if [[ $1 == '--fix' ]]; then
echo 'Fixing all the fixable linting issues...'
echo 'Fixing all fixable linting issues...'
echo

eslint ./src --fix & output=$(eslint ./src --fix)
else
echo 'Checking the code for linting issues...'
echo 'Checking code for linting issues...'
echo

eslint ./src & output=$(eslint ./src)
Expand Down

0 comments on commit c8d4cea

Please sign in to comment.