-
Notifications
You must be signed in to change notification settings - Fork 44
/
package.json
81 lines (81 loc) · 2.99 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"name": "@primer/primitives",
"version": "10.3.2",
"description": "Typography, spacing, and color primitives for Primer design system",
"type": "module",
"files": [
"dist",
"src/tokens"
],
"repository": "https://github.com/primer/primitives",
"keywords": [
"primitives",
"colors",
"spacing",
"typography",
"variables",
"design-system"
],
"author": "GitHub, Inc.",
"license": "MIT",
"bugs": {
"url": "https://github.com/primer/primitives/issues"
},
"homepage": "https://github.com/primer/primitives#readme",
"scripts": {
"build": "npm run clean && npm run build:tokens && npm run build:fallbacks && npm run build:figma && npm run build:config",
"build:tokens": "tsx ./scripts/buildTokens.ts",
"build:fallbacks": "tsx ./scripts/buildFallbacks.ts",
"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",
"validate:tokenJson": "tsx scripts/diffThemes.ts && tsx scripts/diffTokenProps.ts",
"validate:contrast": "tsx scripts/colorContrast.ts",
"format": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
"format:fix": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --config eslint.config.mjs && npm run lint:tokens",
"lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config eslint.config.mjs",
"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",
"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": {
"@actions/core": "^1.11.1",
"@actions/glob": "^0.5.0",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.7",
"@github/prettier-config": "^0.0.6",
"@playwright/test": "^1.47.1",
"@types/node": "22.9",
"@typescript-eslint/eslint-plugin": "8.15",
"@typescript-eslint/parser": "8.15",
"@vitest/coverage-v8": "^2.0.3",
"color-blend": "^4.0.0",
"color2k": "^2.0.3",
"console-table-printer": "^2.12.1",
"eslint": "9.16",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "7.37",
"eslint-import-resolver-typescript": "3.6",
"eslint-plugin-github": "^5.1.3",
"eslint-plugin-jsx-a11y": "6.10",
"eslint-plugin-react-hooks": "^5.0.0",
"json5": "^2.2.1",
"markdown-table-ts": "^1.0.3",
"prettier": "^3.3.3",
"style-dictionary": "^4.3.0",
"tsx": "^4.19.0",
"typescript": "5.6",
"typescript-eslint": "^8.16.0",
"vitest": "^2.0.3",
"zod": "3.23",
"zod-validation-error": "3.4"
}
}