@primer/primitives 10.0.0-rc.8fa0b911 → 10.0.0-rc.98e8d56c

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.
@@ -37,9 +37,9 @@ const getTokenType = (tokenTypesPath) => {
37
37
  const designTokenType = readFileSync(resolvePath(tokenTypesPath), { encoding: 'utf-8' });
38
38
  return designTokenType;
39
39
  }
40
- catch (e) {
40
+ catch (error) {
41
41
  // eslint-disable-next-line no-console
42
- throw new Error(`Error trying to load design token type from file "${tokenTypesPath}".`);
42
+ throw new Error(`Error trying to load design token type from file "${tokenTypesPath}". Error: ${error}`);
43
43
  }
44
44
  };
45
45
  /**
@@ -18,8 +18,8 @@ export const w3cJsonParser = {
18
18
  //
19
19
  return JSON5.parse(contents);
20
20
  }
21
- catch (e) {
22
- throw new Error(`Invalid json5 file "${filePath}".`);
21
+ catch (error) {
22
+ throw new Error(`Invalid json5 file "${filePath}". Error: ${error}`);
23
23
  }
24
24
  },
25
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "10.0.0-rc.8fa0b911",
3
+ "version": "10.0.0-rc.98e8d56c",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "type": "module",
6
6
  "files": [
@@ -29,21 +29,21 @@
29
29
  "build:figma": "tsx scripts/buildFigma.ts",
30
30
  "build:config": "tsc -p build.tsconfig.jsonc && tsx ./scripts/copyDir.ts src/types dist/build/types",
31
31
  "clean": "rm -rf dist",
32
- "tokenJson:check": "tsx scripts/diffThemes.ts && tsx scripts/diffTokenProps.ts",
33
- "contrast:check": "tsx scripts/color-contrast.ts",
34
- "format": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
35
- "format:check": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
36
- "install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund",
32
+ "validate:tokenJson": "tsx scripts/diffThemes.ts && tsx scripts/diffTokenProps.ts",
33
+ "validate:contrast": "tsx scripts/color-contrast.ts",
34
+ "format": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
35
+ "format:fix": "prettier --write '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
37
36
  "lint": "ESLINT_USE_FLAT_CONFIG=false eslint '**/*.{js,ts,tsx,md,mdx}' --config .eslintrc.cjs && npm run lint:tokens",
38
37
  "lint:fix": "eslint '**/*.{js,ts,tsx,md,mdx}' --fix --max-warnings=0 --config .eslintrc.cjs",
39
38
  "lint:tokens": "tsx ./scripts/validateTokenJson.ts",
39
+ "test": "npm run test:unit && npm run test:integration",
40
+ "test:unit": "vitest run --coverage",
41
+ "test:integration": "vitest run -r integration",
40
42
  "prebuild": "rm -rf dist",
41
43
  "prepack": "npm run build",
42
44
  "release": "changeset publish",
43
- "start:storybook": "npm run build && cd docs/storybook && npm run storybook",
44
- "test": "npm run test:unit && npm run test:integration",
45
- "test:unit": "vitest run --coverage",
46
- "test:integration": "vitest run -r integration"
45
+ "install:storybook": "cd docs/storybook && npm ci --legacy-peer-deps --no-audit --no-fund",
46
+ "start:storybook": "npm run build && cd docs/storybook && npm run storybook"
47
47
  },
48
48
  "prettier": "@github/prettier-config",
49
49
  "devDependencies": {
@@ -52,30 +52,27 @@
52
52
  "@changesets/cli": "^2.27.7",
53
53
  "@github/prettier-config": "^0.0.6",
54
54
  "@playwright/test": "^1.47.1",
55
- "@types/node": "^20.14.11",
56
- "@typescript-eslint/eslint-plugin": "^7.15.0",
57
- "@typescript-eslint/parser": "^7.15.0",
55
+ "@types/node": "22.9",
56
+ "@typescript-eslint/eslint-plugin": "8.15",
57
+ "@typescript-eslint/parser": "8.15",
58
58
  "@vitest/coverage-v8": "^2.0.3",
59
59
  "color-blend": "^4.0.0",
60
60
  "color2k": "^2.0.3",
61
61
  "console-table-printer": "^2.12.1",
62
- "esbuild": "^0.23.1",
63
62
  "eslint": "^8.57.0",
64
63
  "eslint-config-prettier": "^9.1.0",
65
64
  "eslint-import-resolver-typescript": "3.6",
66
- "eslint-plugin-github": "^5.0.1",
67
- "eslint-plugin-jsx-a11y": "6.9",
65
+ "eslint-plugin-github": "5.1",
66
+ "eslint-plugin-jsx-a11y": "6.10",
68
67
  "eslint-plugin-mdx": "^3.1.5",
69
- "eslint-plugin-primer-react": "^5.3.0",
70
- "eslint-plugin-react": "7.34",
68
+ "eslint-plugin-react": "7.37",
71
69
  "eslint-plugin-react-hooks": "^4.6.2",
72
- "eslint-plugin-storybook": "^0.8.0",
73
70
  "json5": "^2.2.1",
74
71
  "markdown-table-ts": "^1.0.3",
75
72
  "prettier": "^3.3.3",
76
73
  "style-dictionary": "^4.1.3",
77
74
  "tsx": "^4.19.0",
78
- "typescript": "5.5",
75
+ "typescript": "5.6",
79
76
  "vitest": "^2.0.3",
80
77
  "zod": "3.23",
81
78
  "zod-validation-error": "3.4"