From 246a1b2a8bf3e87585d8b3f476b7b6e6dccec814 Mon Sep 17 00:00:00 2001 From: nickfrosty <75431177+nickfrosty@users.noreply.github.com> Date: Fri, 11 Oct 2024 10:04:17 -0400 Subject: [PATCH] refactor: scripts --- package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 5450fef3b..91ef33165 100644 --- a/package.json +++ b/package.json @@ -11,11 +11,10 @@ "runner": "npx ts-node -r tsconfig-paths/register", "contentlayer:build": "npx contentlayer2 build --clearCache", "code-import": "npx esrun coder.ts", - "dev": "yarn contentlayer:build && concurrently -p \"[{name}]\" -n \"code import,next dev\" -c \"bgBlue.bold,bgGreen.bold\" \"yarn code-import --watch\" \"next dev -p 3001\"", - "prebuild": "yarn code-import", - "build": "yarn prettier:i18n && yarn contentlayer:build && next build", + "dev": "yarn code-import && yarn contentlayer:build && concurrently -p \"[{name}]\" -n \"code import,next dev\" -c \"bgBlue.bold,bgGreen.bold\" \"yarn code-import --watch\" \"next dev -p 3001\"", + "build": "yarn code-import && yarn prettier:i18n && yarn contentlayer:build && next build", "start": "next start -p 3001", - "test": "yarn contentlayer:build", + "test": "yarn code-import && yarn prettier && && yarn contentlayer:build", "lint": "next lint", "prettier:i18n": "prettier -cw \"i18n/**/*.{js,jsx,ts,tsx,md,css,md,mdx}\" --ignore-path \"[]\"", "prettier": "prettier -c \"./**/*.{js,jsx,ts,tsx,md,css,md,mdx}\"",