diff --git a/.github/workflows/a11y-contrast.yml b/.github/workflows/a11y-contrast.yml index a17cbbdbc..3c50f1d15 100644 --- a/.github/workflows/a11y-contrast.yml +++ b/.github/workflows/a11y-contrast.yml @@ -34,9 +34,9 @@ jobs: - name: Build tokens run: npm run build:tokens - - name: Run required checks + - name: Run required contrast validation tests run: | - npm run contrast:check + npm run validate:contrast - name: Prepare check results id: check-results diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1d9c60e64..2385955b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: run: npm run lint - name: Code formatting check - run: npm run format:check + run: npm run format - name: Run unit tests run: npm test diff --git a/package.json b/package.json index 2d9809886..2555fb447 100644 --- a/package.json +++ b/package.json @@ -29,21 +29,21 @@ "build:figma": "tsx scripts/buildFigma.ts", "build:config": "tsc -p build.tsconfig.jsonc && tsx ./scripts/copyDir.ts src/types dist/build/types", "clean": "rm -rf dist", - "tokenJson:check": "tsx scripts/diffThemes.ts && tsx scripts/diffTokenProps.ts", - "contrast:check": "tsx scripts/color-contrast.ts", - "format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'", - "format:check": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'", - "install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund", + "validate:tokenJson": "tsx scripts/diffThemes.ts && tsx scripts/diffTokenProps.ts", + "validate:contrast": "tsx scripts/color-contrast.ts", + "format": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'", + "format:fix": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'", "lint": "ESLINT_USE_FLAT_CONFIG=false eslint '**/*.{js,ts,tsx,md,mdx}' --config .eslintrc.cjs && npm run lint:tokens", "lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config .eslintrc.cjs", "lint:tokens": "tsx ./scripts/validateTokenJson.ts", + "test": "npm run test:unit && npm run test:integration", + "test:unit": "vitest run --coverage", + "test:integration": "vitest run -r integration", "prebuild": "rm -rf dist", "prepack": "npm run build", "release": "changeset publish", - "start:storybook": "npm run build && cd docs/storybook && npm run storybook", - "test": "npm run test:unit && npm run test:integration", - "test:unit": "vitest run --coverage", - "test:integration": "vitest run -r integration" + "install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund", + "start:storybook": "npm run build && cd docs/storybook && npm run storybook" }, "prettier": "@github/prettier-config", "devDependencies": {