@primer/primitives 9.1.0 → 9.1.1-rc.694a8233

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.
@@ -18,7 +18,7 @@ const javascriptCommonJs = ({ dictionary, file, platform }) => {
18
18
  // add prefix if defined
19
19
  const tokens = (0, prefixTokens_1.prefixTokens)(dictionary.tokens, platform);
20
20
  // add file header and convert output
21
- const output = `${fileHeader({ file })}exports.default = ${JSON.stringify((0, jsonToNestedValue_1.jsonToNestedValue)(tokens), null, 2)}\n`;
21
+ const output = `${fileHeader({ file })}module.exports = ${JSON.stringify((0, jsonToNestedValue_1.jsonToNestedValue)(tokens), null, 2)}\n`;
22
22
  // return prettified
23
23
  return sync_1.default.format(output, { parser: 'typescript', printWidth: 500 });
24
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "9.1.0",
3
+ "version": "9.1.1-rc.694a8233",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "files": [
6
6
  "dist",
@@ -22,9 +22,8 @@
22
22
  },
23
23
  "homepage": "https://github.com/primer/primitives#readme",
24
24
  "scripts": {
25
- "build": "npm run build:v8 && npm run build:fallbacks && npm run build:figma && npm run build:config",
26
- "build:next": "echo '\\033[31m 🛑 Use npm run build instead of npm run build:next\\033[0m'",
27
- "build:v8": "tsx ./scripts/buildTokens.ts",
25
+ "build": "npm run build:tokens && npm run build:fallbacks && npm run build:figma && npm run build:config",
26
+ "build:tokens": "tsx ./scripts/buildTokens.ts",
28
27
  "build:fallbacks": "tsx ./scripts/buildFallbacks.ts",
29
28
  "build:figma": "tsx scripts/buildFigma.ts",
30
29
  "build:config": "tsc -p buildConfig.tsconfig.jsonc",
@@ -40,17 +39,21 @@
40
39
  "prepack": "npm run build",
41
40
  "release": "changeset publish",
42
41
  "start:storybook": "npm run build && cd docs/storybook && npm run storybook",
43
- "test": "vitest run --coverage",
42
+ "test": "npm run test:unit && npm run test:integration",
43
+ "test:unit": "vitest run --coverage",
44
44
  "test:integration": "vitest run -r integration"
45
45
  },
46
46
  "prettier": "@github/prettier-config",
47
+ "dependencies": {
48
+ "prettier": "3.3",
49
+ "@prettier/sync": "^0.5.2"
50
+ },
47
51
  "devDependencies": {
48
52
  "@actions/github": "^6.0.0",
49
53
  "@changesets/changelog-github": "^0.5.0",
50
54
  "@changesets/cli": "^2.27.7",
51
55
  "@github/prettier-config": "^0.0.6",
52
56
  "@playwright/test": "^1.45.1",
53
- "@prettier/sync": "^0.5.2",
54
57
  "@types/node": "^20.14.9",
55
58
  "@typescript-eslint/eslint-plugin": "^7.15.0",
56
59
  "@typescript-eslint/parser": "^7.15.0",
@@ -70,7 +73,6 @@
70
73
  "eslint-plugin-storybook": "^0.8.0",
71
74
  "json5": "^2.2.1",
72
75
  "markdown-table-ts": "^1.0.3",
73
- "prettier": "3.3",
74
76
  "style-dictionary": "^3.9.2",
75
77
  "tsx": "^4.16.2",
76
78
  "typescript": "5.5",