diff --git a/CONTEXT.md b/CONTEXT.md index 3d0cb73..d90b6d1 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -186,6 +186,12 @@ The `AccountSwitcher` component displays a "Log in" button when the user is logg ## Testing Your Changes -Whenever you modify code, you should test your changes after you're finished. +Whenever you modify code, you should test your changes after you're finished by running: -To test your changes, run `npm run build`. The task is not considered finished until there are no build errors. \ No newline at end of file +```bash +npm run ci +``` + +This command will typecheck the code and attempt to build it. + +Your task is not considered finished until this test passes without errors. \ No newline at end of file diff --git a/package.json b/package.json index d29fa43..527e627 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "dev": "npm i && vite", "build": "npm i && vite build", "build:dev": "npm i && vite build --mode development", + "ci": "npm i && tsc --noEmit && vite build", "lint": "npm i && eslint .", "preview": "npm i && vite preview" },