Skip to content

Commit

Permalink
chore: refactor npm scripts (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
toomuchdesign authored Jul 5, 2024
1 parent 1328955 commit 68b9630
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@
"preversion": "npm run prepare",
"version": "git add package.json",
"postversion": "git push && git push --tags",
"prepare": "npx simple-git-hooks && npm run test:source && npm run build && npm run test:bundles",
"test": "jest",
"test:source": "npm t -- --coverage",
"prepare": "npx simple-git-hooks && npm run source:check && npm run test && npm run build && npm run test:bundles",
"test": "jest --coverage",
"test:bundles": "es-check es5 --module './@(dist)/*.js'",
"tag": "node ./scripts/tag.js",
"format": "prettier --write \"**/*.{js,json,md}\"",
"prettier:check": "prettier . --check",
"prettier:fix": "npm run prettier:check -- --write",
"type:check": "tsc --noEmit",
"source:check": "npm run prettier:check && npm run type:check",
"source:fix": "npm run prettier:fix",
"start": "npm run demo:start",
"demo:start": "cd ./demo && next",
"demo:build": "npm run build && cd ./demo && BUILD_TARGET=github-pages next build && touch ./out/.nojekyll"
Expand Down Expand Up @@ -82,6 +85,6 @@
"testEnvironment": "jsdom"
},
"simple-git-hooks": {
"pre-commit": "npm run test:source"
"pre-commit": "npm run source:check && npm run test"
}
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"allowJs": true,
"jsx": "react"
},
"include": ["./src", "./demo"]
"include": ["./src"]
}

0 comments on commit 68b9630

Please sign in to comment.