@digdir/designsystemet 1.1.0 → 1.1.1

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.
@@ -5,7 +5,7 @@ import * as R from "ramda";
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@digdir/designsystemet",
8
- version: "1.1.0",
8
+ version: "1.1.1",
9
9
  description: "CLI for Designsystemet",
10
10
  author: "Designsystemet team",
11
11
  engines: {
@@ -40,6 +40,7 @@ var package_default = {
40
40
  },
41
41
  scripts: {
42
42
  designsystemet: "tsx ./bin/designsystemet.ts",
43
+ "designsystemet:inspect": "tsx --inspect-brk ./bin/designsystemet.ts",
43
44
  build: "tsup && pnpm build:types && pnpm build:json-schema",
44
45
  "build:types": "tsc --emitDeclarationOnly --declaration",
45
46
  "build:json-schema": "tsx ./src/scripts/createJsonSchema.ts",
@@ -49,6 +50,7 @@ var package_default = {
49
50
  "test:tokens-build": "pnpm run designsystemet tokens build -t ./temp/options/design-tokens -o ./temp/options/build --clean",
50
51
  "test:tokens-build-tailwind": "pnpm run designsystemet tokens build -t ./temp/options/design-tokens -o ./temp/options/build --clean --experimental-tailwind",
51
52
  "test:tokens-build-config": "pnpm run designsystemet tokens build -t ./temp/config/design-tokens -o ./temp/config/build --clean",
53
+ "test:tokens-build-config:inspect": "pnpm run designsystemet:inspect tokens build -t ./temp/config/design-tokens -o ./temp/config/build --clean",
52
54
  "test:tokens-build-config-tailwind": "pnpm run designsystemet tokens build -t ./temp/config/design-tokens -o ./temp/config/build --clean --experimental-tailwind",
53
55
  "test:tokens-create-and-build-options": "pnpm test:tokens-create-options && pnpm test:tokens-build",
54
56
  "test:tokens-create-and-build-config": "pnpm test:tokens-create-config && pnpm test:tokens-build-config",
@@ -67,15 +69,15 @@ var package_default = {
67
69
  "change-case": "^5.4.4",
68
70
  "chroma-js": "^3.1.2",
69
71
  "colorjs.io": "^0.6.0-alpha.1",
70
- commander: "^13.1.0",
72
+ commander: "^14.0.0",
71
73
  "fast-glob": "^3.3.3",
72
74
  hsluv: "^1.0.1",
73
75
  "object-hash": "^3.0.0",
74
- postcss: "^8.5.5",
76
+ postcss: "^8.5.6",
75
77
  ramda: "^0.30.1",
76
- "style-dictionary": "^4.4.0",
77
- zod: "^3.25.64",
78
- "zod-validation-error": "^3.5.0"
78
+ "style-dictionary": "^5.0.0",
79
+ zod: "^3.25.67",
80
+ "zod-validation-error": "^3.5.2"
79
81
  },
80
82
  devDependencies: {
81
83
  "@tokens-studio/types": "0.5.2",
@@ -83,7 +85,7 @@ var package_default = {
83
85
  "@types/chroma-js": "^3.1.1",
84
86
  "@types/fs-extra": "^11.0.4",
85
87
  "@types/glob": "^8.1.0",
86
- "@types/node": "^22.15.31",
88
+ "@types/node": "^22.15.32",
87
89
  "@types/object-hash": "^3.0.6",
88
90
  "@types/ramda": "^0.30.2",
89
91
  "fs-extra": "^11.3.0",
@@ -101,7 +103,7 @@ var createThemeCSSFiles = ({
101
103
  fileHeader = defaultFileHeader
102
104
  }) => {
103
105
  const groupedByTheme = {};
104
- for (const [_, buildResults] of Object.entries(R.dissoc("types", processedBuilds))) {
106
+ for (const [_, buildResults] of Object.entries(processedBuilds)) {
105
107
  for (const buildResult of buildResults) {
106
108
  const themeName = buildResult.permutation.theme;
107
109
  const newOutputs = buildResult.formatted;
@@ -1,6 +1,6 @@
1
- import type { ThemeObject } from '@tokens-studio/types';
2
1
  import type { OutputFile, TokenSet } from '../types.js';
3
2
  import { type ThemePermutation } from '../types.js';
3
+ import { type ProcessedThemeObject } from './utils/getMultidimensionalThemes.js';
4
4
  type SharedOptions = {
5
5
  /** Enable verbose output */
6
6
  verbose: boolean;
@@ -11,7 +11,9 @@ type SharedOptions = {
11
11
  /** Generate preview tokens */
12
12
  preview: boolean;
13
13
  /** Token Studio `$themes.json` content */
14
- $themes: ThemeObject[];
14
+ processed$themes: ProcessedThemeObject[];
15
+ /** Color groups */
16
+ colorGroups?: string[];
15
17
  };
16
18
  export type BuildOptions = {
17
19
  type: 'build';
@@ -28,7 +30,7 @@ export type FormatOptions = {
28
30
  tokenSets: Map<string, TokenSet>;
29
31
  } & SharedOptions;
30
32
  type ProcessOptions = BuildOptions | FormatOptions;
31
- type ProcessedBuildConfigs<T> = Record<keyof typeof buildConfigs | 'types', T>;
33
+ type ProcessedBuildConfigs<T> = Record<keyof typeof buildConfigs, T>;
32
34
  export type ProcessReturn = ProcessedBuildConfigs<BuildResult[]>;
33
35
  type BuildResult = {
34
36
  permutation: ThemePermutation;
@@ -1 +1 @@
1
- {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../src/tokens/process/platform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIxD,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAqC,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIvF,KAAK,aAAa,GAAG;IACnB,4BAA4B;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,aAAa,CAAC;AAElB,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,gBAAgB;IAChB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC,GAAG,aAAa,CAAC;AAElB,KAAK,cAAc,GAAG,YAAY,GAAG,aAAa,CAAC;AAEnD,KAAK,qBAAqB,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,OAAO,YAAY,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;AAE/E,MAAM,MAAM,aAAa,GAAG,qBAAqB,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,UAAU,EAAE,CAAC;CACzB,CAAC;AAeF,eAAO,IAAI,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;AAkBpD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCqB,CAAC;AAExC,wBAAsB,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CA0IrF"}
1
+ {"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../../../../src/tokens/process/platform.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAqC,KAAK,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEvF,OAAO,EAAmB,KAAK,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAElG,KAAK,aAAa,GAAG;IACnB,4BAA4B;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,wCAAwC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACzC,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,aAAa,CAAC;AAElB,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,QAAQ,CAAC;IACf,gBAAgB;IAChB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CAClC,GAAG,aAAa,CAAC;AAElB,KAAK,cAAc,GAAG,YAAY,GAAG,aAAa,CAAC;AAEnD,KAAK,qBAAqB,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,CAAC,CAAC,CAAC;AAErE,MAAM,MAAM,aAAa,GAAG,qBAAqB,CAAC,WAAW,EAAE,CAAC,CAAC;AAEjE,KAAK,WAAW,GAAG;IACjB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,SAAS,EAAE,UAAU,EAAE,CAAC;CACzB,CAAC;AAeF,eAAO,IAAI,YAAY,EAAE,cAAc,GAAG,SAAS,CAAC;AAOpD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCqB,CAAC;AAExC,wBAAsB,eAAe,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAqIrF"}
@@ -779,20 +779,6 @@ var getMultidimensionalThemes = (processed$themes, dimensions) => {
779
779
  });
780
780
  };
781
781
  var processed = Symbol("Type brand for ProcessedThemeObject");
782
- function isProcessed(theme) {
783
- return Boolean(theme[processed]);
784
- }
785
- function processThemeObject(theme) {
786
- if (isProcessed(theme)) {
787
- return theme;
788
- }
789
- const result = { ...theme, [processed]: true };
790
- if (result.group) {
791
- result.group = kebabCase(result.group);
792
- }
793
- result.name = kebabCase(result.name);
794
- return result;
795
- }
796
782
  function groupThemes(themes) {
797
783
  const groups = {};
798
784
  for (const theme of themes) {
@@ -864,6 +850,12 @@ function filterTokenSets(tokensets) {
864
850
  function cartesian(a) {
865
851
  return a.reduce((a2, b) => a2.flatMap((d) => b.map((e) => [d, e].flat())));
866
852
  }
853
+ var getCustomColors = (processed$themes, colorGroups) => processed$themes.filter((x) => {
854
+ if (!x.group) {
855
+ return false;
856
+ }
857
+ return colorGroups.includes(x.group);
858
+ }).map((x) => x.name);
867
859
 
868
860
  // src/tokens/process/configs.ts
869
861
  void register(StyleDictionary, { withSDBuiltins: false });
@@ -946,12 +938,6 @@ var initResult = {
946
938
  };
947
939
  var buildOptions;
948
940
  var sd = new StyleDictionary2();
949
- var getCustomColors = (processed$themes, colorGroups) => processed$themes.filter((x) => {
950
- if (!x.group) {
951
- return false;
952
- }
953
- return colorGroups.includes(x.group);
954
- }).map((x) => x.name);
955
941
  var buildConfigs = {
956
942
  typography: { getConfig: configs.typographyVariables, dimensions: ["typography"] },
957
943
  "color-scheme": { getConfig: configs.colorSchemeVariables, dimensions: ["color-scheme"] },
@@ -992,7 +978,7 @@ var buildConfigs = {
992
978
  // },
993
979
  };
994
980
  async function processPlatform(options) {
995
- const { type, $themes } = options;
981
+ const { type, processed$themes } = options;
996
982
  const platform = "css";
997
983
  const tokenSets = type === "format" ? options.tokenSets : void 0;
998
984
  const tokensDir = type === "build" ? options.tokensDir : void 0;
@@ -1017,8 +1003,11 @@ async function processPlatform(options) {
1017
1003
  const colorGroups = UNSAFE_COLOR_GROUPS.length > 0 ? UNSAFE_COLOR_GROUPS : [colorCategories.main, colorCategories.support].map((c) => `${c}-color`);
1018
1004
  buildOptions = options;
1019
1005
  buildOptions.defaultColor = UNSAFE_DEFAULT_COLOR;
1020
- const processed$themes = $themes.map(processThemeObject).filter((theme) => R12.not(theme.group === "size" && theme.name !== "medium"));
1021
- const customColors = getCustomColors(processed$themes, colorGroups);
1006
+ buildOptions.colorGroups = colorGroups;
1007
+ const filteredProcessed$themes = processed$themes.filter(
1008
+ (theme) => R12.not(theme.group === "size" && theme.name !== "medium")
1009
+ );
1010
+ const customColors = getCustomColors(filteredProcessed$themes, colorGroups);
1022
1011
  if (!buildOptions.defaultColor) {
1023
1012
  const firstMainColor = R12.head(customColors);
1024
1013
  buildOptions.defaultColor = firstMainColor;
@@ -1028,10 +1017,15 @@ async function processPlatform(options) {
1028
1017
  \u{1F3A8} Using ${chalk2.blue(buildOptions.defaultColor)} as default color`);
1029
1018
  }
1030
1019
  const buildAndSdConfigs = R12.map((buildConfig) => {
1031
- const sdConfigs = getConfigsForThemeDimensions(buildConfig.getConfig, processed$themes, buildConfig.dimensions, {
1032
- tokensDir,
1033
- tokenSets
1034
- });
1020
+ const sdConfigs = getConfigsForThemeDimensions(
1021
+ buildConfig.getConfig,
1022
+ filteredProcessed$themes,
1023
+ buildConfig.dimensions,
1024
+ {
1025
+ tokensDir,
1026
+ tokenSets
1027
+ }
1028
+ );
1035
1029
  const unknownConfigs = buildConfig.dimensions.map(
1036
1030
  (dimension) => sdConfigs.filter((x) => x.permutation[dimension] === "unknown")
1037
1031
  );
@@ -1055,8 +1049,7 @@ async function processPlatform(options) {
1055
1049
  "warning-color": [initResult],
1056
1050
  "info-color": [initResult],
1057
1051
  semantic: [initResult],
1058
- typography: [initResult],
1059
- types: [initResult]
1052
+ typography: [initResult]
1060
1053
  };
1061
1054
  try {
1062
1055
  for (const [buildName, { buildConfig, sdConfigs }] of R12.toPairs(buildAndSdConfigs)) {
@@ -1091,30 +1084,8 @@ async function processPlatform(options) {
1091
1084
  }
1092
1085
  throw err;
1093
1086
  }
1094
- const colorsFileName = "colors.d.ts";
1095
- const reactColorTypes = await createColorTypeDeclaration(customColors);
1096
- processedBuilds.types = [
1097
- {
1098
- ...initResult,
1099
- formatted: [{ output: reactColorTypes, destination: colorsFileName }]
1100
- }
1101
- ];
1102
1087
  return processedBuilds;
1103
1088
  }
1104
- async function createColorTypeDeclaration(colors) {
1105
- console.log(`
1106
- \u{1F371} Building ${chalk2.green("type declarations")}`);
1107
- const typeDeclaration = `
1108
- import type {} from '@digdir/designsystemet-react/colors';
1109
-
1110
- declare module '@digdir/designsystemet-react/colors' {
1111
- export interface MainAndSupportColors {
1112
- ${colors.map((color) => ` ${color}: never;`).join("\n")}
1113
- }
1114
- }
1115
- `.trimStart();
1116
- return typeDeclaration;
1117
- }
1118
1089
  export {
1119
1090
  buildOptions,
1120
1091
  processPlatform
@@ -31,5 +31,6 @@ export type ProcessedThemeObject = ThemeObject & {
31
31
  */
32
32
  export declare function processThemeObject(theme: ThemeObject | ProcessedThemeObject): ProcessedThemeObject;
33
33
  export type GroupedThemes = Record<keyof ThemePermutation, ProcessedThemeObject[]>;
34
+ export declare const getCustomColors: (processed$themes: ProcessedThemeObject[], colorGroups: (string | RegExp)[]) => string[];
34
35
  export {};
35
36
  //# sourceMappingURL=getMultidimensionalThemes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getMultidimensionalThemes.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/process/utils/getMultidimensionalThemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKxD,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GAAI,kBAAkB,oBAAoB,EAAE,EAAE,YAAY,cAAc,EAAE,sBAe/G,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,OAAO,MAAsD,CAAC;AAC/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAAE,CAAC,SAAS,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAMvE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,oBAAoB,GAAG,oBAAoB,CAUlG;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,gBAAgB,EAAE,oBAAoB,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"getMultidimensionalThemes.d.ts","sourceRoot":"","sources":["../../../../../src/tokens/process/utils/getMultidimensionalThemes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKxD,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GAAI,kBAAkB,oBAAoB,EAAE,EAAE,YAAY,cAAc,EAAE,sBAe/G,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,WAAW,EAAE,gBAAgB,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,OAAO,MAAsD,CAAC;AAC/E;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAAE,CAAC,SAAS,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAMvE;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,WAAW,GAAG,oBAAoB,GAAG,oBAAoB,CAUlG;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,gBAAgB,EAAE,oBAAoB,EAAE,CAAC,CAAC;AA8FnF,eAAO,MAAM,eAAe,GAAI,kBAAkB,oBAAoB,EAAE,EAAE,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,aASnF,CAAC"}
@@ -921,7 +921,14 @@ function filterTokenSets(tokensets) {
921
921
  function cartesian(a) {
922
922
  return a.reduce((a2, b) => a2.flatMap((d) => b.map((e) => [d, e].flat())));
923
923
  }
924
+ var getCustomColors = (processed$themes, colorGroups) => processed$themes.filter((x) => {
925
+ if (!x.group) {
926
+ return false;
927
+ }
928
+ return colorGroups.includes(x.group);
929
+ }).map((x) => x.name);
924
930
  export {
931
+ getCustomColors,
925
932
  getMultidimensionalThemes,
926
933
  processThemeObject
927
934
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "engines": {
@@ -41,15 +41,15 @@
41
41
  "change-case": "^5.4.4",
42
42
  "chroma-js": "^3.1.2",
43
43
  "colorjs.io": "^0.6.0-alpha.1",
44
- "commander": "^13.1.0",
44
+ "commander": "^14.0.0",
45
45
  "fast-glob": "^3.3.3",
46
46
  "hsluv": "^1.0.1",
47
47
  "object-hash": "^3.0.0",
48
- "postcss": "^8.5.5",
48
+ "postcss": "^8.5.6",
49
49
  "ramda": "^0.30.1",
50
- "style-dictionary": "^4.4.0",
51
- "zod": "^3.25.64",
52
- "zod-validation-error": "^3.5.0"
50
+ "style-dictionary": "^5.0.0",
51
+ "zod": "^3.25.67",
52
+ "zod-validation-error": "^3.5.2"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@tokens-studio/types": "0.5.2",
@@ -57,7 +57,7 @@
57
57
  "@types/chroma-js": "^3.1.1",
58
58
  "@types/fs-extra": "^11.0.4",
59
59
  "@types/glob": "^8.1.0",
60
- "@types/node": "^22.15.31",
60
+ "@types/node": "^22.15.32",
61
61
  "@types/object-hash": "^3.0.6",
62
62
  "@types/ramda": "^0.30.2",
63
63
  "fs-extra": "^11.3.0",
@@ -68,6 +68,7 @@
68
68
  },
69
69
  "scripts": {
70
70
  "designsystemet": "tsx ./bin/designsystemet.ts",
71
+ "designsystemet:inspect": "tsx --inspect-brk ./bin/designsystemet.ts",
71
72
  "build": "tsup && pnpm build:types && pnpm build:json-schema",
72
73
  "build:types": "tsc --emitDeclarationOnly --declaration",
73
74
  "build:json-schema": "tsx ./src/scripts/createJsonSchema.ts",
@@ -77,6 +78,7 @@
77
78
  "test:tokens-build": "pnpm run designsystemet tokens build -t ./temp/options/design-tokens -o ./temp/options/build --clean",
78
79
  "test:tokens-build-tailwind": "pnpm run designsystemet tokens build -t ./temp/options/design-tokens -o ./temp/options/build --clean --experimental-tailwind",
79
80
  "test:tokens-build-config": "pnpm run designsystemet tokens build -t ./temp/config/design-tokens -o ./temp/config/build --clean",
81
+ "test:tokens-build-config:inspect": "pnpm run designsystemet:inspect tokens build -t ./temp/config/design-tokens -o ./temp/config/build --clean",
80
82
  "test:tokens-build-config-tailwind": "pnpm run designsystemet tokens build -t ./temp/config/design-tokens -o ./temp/config/build --clean --experimental-tailwind",
81
83
  "test:tokens-create-and-build-options": "pnpm test:tokens-create-options && pnpm test:tokens-build",
82
84
  "test:tokens-create-and-build-config": "pnpm test:tokens-create-config && pnpm test:tokens-build-config",