-
Notifications
You must be signed in to change notification settings - Fork 43
/
package.json
83 lines (83 loc) · 3.06 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
82
83
{
"name": "@primer/primitives",
"version": "9.1.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/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",
"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/github": "^6.0.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": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "3.6",
"eslint-plugin-github": "5.1",
"eslint-plugin-jsx-a11y": "6.10",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-react": "7.37",
"eslint-plugin-react-hooks": "^4.6.2",
"json5": "^2.2.1",
"markdown-table-ts": "^1.0.3",
"prettier": "^3.3.3",
"style-dictionary": "^4.1.3",
"tsx": "^4.19.0",
"typescript": "5.6",
"vitest": "^2.0.3",
"zod": "3.23",
"zod-validation-error": "3.4"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "^4.22.0"
}
}