From 8a5f664aed3937700b99f92253d87bb54d99149c Mon Sep 17 00:00:00 2001 From: Agustinus Nathaniel Date: Tue, 10 Jan 2023 12:38:44 +0700 Subject: [PATCH] chore: update scripts --- .husky/pre-commit | 2 +- .husky/pre-push | 2 +- package.json | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 0bf2091..df8706b 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,4 @@ . "$(dirname "$0")/_/husky.sh" yarn lint-staged -npx turbo type-check +yarn type-check:turbo diff --git a/.husky/pre-push b/.husky/pre-push index 1b72ec1..00f1fe2 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx turbo lint +yarn lint:turbo diff --git a/package.json b/package.json index 8df0f55..bec7b58 100644 --- a/package.json +++ b/package.json @@ -6,11 +6,14 @@ "scripts": { "dev": "next dev", "build": "next build", + "build:turbo": "npx turbo build", "postbuild": "next-sitemap --config next-sitemap.config.js", "start": "next start", "lint": "next lint", "lint:fix": "eslint src --fix && yarn format", + "lint:turbo": "npx turbo lint", "type-check": "tsc --noEmit", + "type-check:turbo": "npx turbo type-check", "format": "prettier --write src", "release": "cross-env HUSKY=0 standard-version", "push-release": "git push --follow-tags origin dev",