@primer/primitives 0.0.0-20260420080412 → 0.0.0-20260420082720
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +14 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/primitives",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-20260420082720",
|
|
4
4
|
"description": "Typography, spacing, and color primitives for Primer design system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -25,27 +25,28 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/primer/primitives#readme",
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "npm run
|
|
29
|
-
"build:tokens": "tsx
|
|
30
|
-
"build:fallbacks": "tsx
|
|
28
|
+
"build": "npm run build:tokens && npm run build:fallbacks && npm run build:figma && npm run build:types && npm run build:llm",
|
|
29
|
+
"build:tokens": "tsx scripts/buildTokens.ts",
|
|
30
|
+
"build:fallbacks": "tsx scripts/buildFallbacks.ts",
|
|
31
31
|
"build:figma": "tsx scripts/buildFigma.ts",
|
|
32
|
-
"build:
|
|
33
|
-
"build:llm": "tsx
|
|
32
|
+
"build:types": "tsc -p build.tsconfig.jsonc && tsx scripts/copyDir.ts src/types dist/build/types",
|
|
33
|
+
"build:llm": "tsx scripts/buildLlm.ts",
|
|
34
|
+
"check": "npm run lint && npm run format:check && npm run test && npm run build",
|
|
35
|
+
"check:contrast": "tsx scripts/colorContrast.ts",
|
|
34
36
|
"clean": "rm -rf dist",
|
|
35
|
-
"
|
|
36
|
-
"format": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
|
|
37
|
-
"
|
|
38
|
-
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --config eslint.config.mjs && npm run lint:tokens",
|
|
37
|
+
"format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
|
|
38
|
+
"format:check": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
|
|
39
|
+
"lint": "eslint '**/*.{js,ts,tsx,md,mdx}' --max-warnings=0 --config eslint.config.mjs && npm run lint:tokens",
|
|
39
40
|
"lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config eslint.config.mjs",
|
|
40
|
-
"lint:tokens": "tsx
|
|
41
|
+
"lint:tokens": "tsx scripts/validateTokenJson.ts",
|
|
41
42
|
"test": "npm run test:unit && npm run test:integration",
|
|
42
43
|
"test:unit": "vitest run --coverage",
|
|
43
44
|
"test:integration": "vitest run -r integration",
|
|
44
45
|
"prebuild": "rm -rf dist",
|
|
45
46
|
"prepack": "npm run build",
|
|
46
47
|
"release": "changeset publish",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
48
|
+
"storybook": "npm run build:tokens && cd docs/storybook && npm run storybook",
|
|
49
|
+
"storybook:install": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund"
|
|
49
50
|
},
|
|
50
51
|
"prettier": "@github/prettier-config",
|
|
51
52
|
"devDependencies": {
|