@digdir/designsystemet 1.1.9 → 1.2.0

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.
Files changed (35) hide show
  1. package/dist/bin/config.js +14 -14
  2. package/dist/bin/designsystemet.js +61 -63
  3. package/dist/src/config.d.ts +1 -1
  4. package/dist/src/config.d.ts.map +1 -1
  5. package/dist/src/config.js +8 -8
  6. package/dist/src/index.js +22 -22
  7. package/dist/src/migrations/beta-to-v1.js +5 -5
  8. package/dist/src/migrations/codemods/css/plugins.js +3 -3
  9. package/dist/src/migrations/codemods/css/run.js +2 -2
  10. package/dist/src/migrations/color-rename-next49.js +5 -5
  11. package/dist/src/migrations/index.js +5 -5
  12. package/dist/src/scripts/createJsonSchema.js +4 -4
  13. package/dist/src/scripts/update-design-tokens.js +2 -2
  14. package/dist/src/scripts/update-preview-tokens.js +22 -22
  15. package/dist/src/scripts/update-template.js +11 -11
  16. package/dist/src/tokens/build.js +33 -33
  17. package/dist/src/tokens/create/generators/$designsystemet.js +9 -9
  18. package/dist/src/tokens/create/write.d.ts.map +1 -1
  19. package/dist/src/tokens/create/write.js +18 -20
  20. package/dist/src/tokens/format.js +22 -22
  21. package/dist/src/tokens/index.js +22 -22
  22. package/dist/src/tokens/process/configs/color.js +2 -2
  23. package/dist/src/tokens/process/configs/semantic.js +2 -2
  24. package/dist/src/tokens/process/configs/typography.js +2 -2
  25. package/dist/src/tokens/process/configs.js +4 -4
  26. package/dist/src/tokens/process/formats/css/color.js +2 -2
  27. package/dist/src/tokens/process/formats/css/semantic.js +2 -2
  28. package/dist/src/tokens/process/formats/css/typography.js +2 -2
  29. package/dist/src/tokens/process/formats/css.js +2 -2
  30. package/dist/src/tokens/process/output/declarations.js +13 -13
  31. package/dist/src/tokens/process/output/theme.js +12 -12
  32. package/dist/src/tokens/process/platform.js +10 -10
  33. package/dist/src/tokens/process/utils/getMultidimensionalThemes.js +4 -4
  34. package/dist/src/utils.js +10 -10
  35. package/package.json +9 -9
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "1.1.9",
3
+ "version": "1.2.0",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "engines": {
7
- "node": ">=22.17.0"
7
+ "node": ">=22.18.0"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
@@ -40,7 +40,6 @@
40
40
  "@commander-js/extra-typings": "^14.0.0",
41
41
  "@tokens-studio/sd-transforms": "1.3.0",
42
42
  "apca-w3": "^0.1.9",
43
- "chalk": "^5.4.1",
44
43
  "change-case": "^5.4.4",
45
44
  "chroma-js": "^3.1.2",
46
45
  "colorjs.io": "^0.6.0-alpha.1",
@@ -48,25 +47,26 @@
48
47
  "fast-glob": "^3.3.3",
49
48
  "hsluv": "^1.0.1",
50
49
  "object-hash": "^3.0.0",
50
+ "picocolors": "^1.1.1",
51
51
  "postcss": "^8.5.6",
52
52
  "ramda": "^0.31.3",
53
53
  "style-dictionary": "^5.0.1",
54
- "zod": "^3.25.76",
55
- "zod-validation-error": "^3.5.3"
54
+ "zod": "^4.0.17",
55
+ "zod-validation-error": "^4.0.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@tokens-studio/types": "0.5.2",
59
59
  "@types/apca-w3": "^0.1.3",
60
60
  "@types/chroma-js": "^3.1.1",
61
61
  "@types/fs-extra": "^11.0.4",
62
- "@types/node": "^22.16.3",
62
+ "@types/node": "^22.17.1",
63
63
  "@types/object-hash": "^3.0.6",
64
- "@types/ramda": "^0.30.2",
65
- "fs-extra": "^11.3.0",
64
+ "@types/ramda": "^0.31.0",
65
+ "fs-extra": "^11.3.1",
66
66
  "tslib": "^2.8.1",
67
67
  "tsup": "^8.5.0",
68
68
  "tsx": "^4.20.3",
69
- "typescript": "^5.8.3"
69
+ "typescript": "^5.9.2"
70
70
  },
71
71
  "scripts": {
72
72
  "designsystemet": "tsx ./bin/designsystemet.ts",