@ama-styling/style-dictionary 13.0.0-next.1 → 13.0.0-next.16
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
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ama-styling/style-dictionary",
|
3
|
-
"version": "13.0.0-next.
|
3
|
+
"version": "13.0.0-next.16",
|
4
4
|
"type": "module",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -39,16 +39,16 @@
|
|
39
39
|
}
|
40
40
|
},
|
41
41
|
"dependencies": {
|
42
|
-
"@angular-devkit/architect": "~0.
|
43
|
-
"@angular-devkit/schematics": "~
|
44
|
-
"@o3r/schematics": "^13.0.0-next.
|
45
|
-
"@schematics/angular": "~
|
42
|
+
"@angular-devkit/architect": "~0.2000.0",
|
43
|
+
"@angular-devkit/schematics": "~20.0.0",
|
44
|
+
"@o3r/schematics": "^13.0.0-next.16",
|
45
|
+
"@schematics/angular": "~20.0.0",
|
46
46
|
"tslib": "^2.6.2"
|
47
47
|
},
|
48
48
|
"peerDependencies": {
|
49
|
-
"@o3r/core": "^13.0.0-next.
|
50
|
-
"@o3r/schematics": "^13.0.0-next.
|
51
|
-
"@o3r/telemetry": "^13.0.0-next.
|
49
|
+
"@o3r/core": "^13.0.0-next.16",
|
50
|
+
"@o3r/schematics": "^13.0.0-next.16",
|
51
|
+
"@o3r/telemetry": "^13.0.0-next.16",
|
52
52
|
"style-dictionary": "^4.3.2",
|
53
53
|
"type-fest": "^4.30.1"
|
54
54
|
},
|
@@ -73,32 +73,32 @@
|
|
73
73
|
}
|
74
74
|
},
|
75
75
|
"devDependencies": {
|
76
|
-
"@babel/core": "~7.
|
77
|
-
"@babel/preset-env": "~7.
|
76
|
+
"@babel/core": "~7.28.0",
|
77
|
+
"@babel/preset-env": "~7.28.0",
|
78
78
|
"@babel/preset-typescript": "~7.27.0",
|
79
79
|
"@compodoc/compodoc": "^1.1.19",
|
80
80
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.0",
|
81
|
-
"@nx/eslint": "~
|
82
|
-
"@nx/eslint-plugin": "~
|
83
|
-
"@nx/jest": "~
|
84
|
-
"@nx/js": "~
|
85
|
-
"@o3r/build-helpers": "^13.0.0-next.
|
86
|
-
"@o3r/core": "^13.0.0-next.
|
87
|
-
"@o3r/eslint-plugin": "^13.0.0-next.
|
88
|
-
"@o3r/telemetry": "^13.0.0-next.
|
89
|
-
"@o3r/test-helpers": "^13.0.0-next.
|
90
|
-
"@schematics/angular": "~
|
81
|
+
"@nx/eslint": "~21.2.0",
|
82
|
+
"@nx/eslint-plugin": "~21.2.0",
|
83
|
+
"@nx/jest": "~21.2.0",
|
84
|
+
"@nx/js": "~21.2.0",
|
85
|
+
"@o3r/build-helpers": "^13.0.0-next.16",
|
86
|
+
"@o3r/core": "^13.0.0-next.16",
|
87
|
+
"@o3r/eslint-plugin": "^13.0.0-next.16",
|
88
|
+
"@o3r/telemetry": "^13.0.0-next.16",
|
89
|
+
"@o3r/test-helpers": "^13.0.0-next.16",
|
90
|
+
"@schematics/angular": "~20.0.0",
|
91
91
|
"@stylistic/eslint-plugin": "~3.1.0",
|
92
92
|
"@types/jest": "~29.5.2",
|
93
93
|
"@types/minimist": "^1.2.2",
|
94
94
|
"@types/node": "^20.0.0",
|
95
95
|
"@types/semver": "^7.3.13",
|
96
|
-
"@typescript-eslint/parser": "~8.
|
97
|
-
"angular-eslint": "~
|
96
|
+
"@typescript-eslint/parser": "~8.37.0",
|
97
|
+
"angular-eslint": "~20.1.0",
|
98
98
|
"babel-jest": "^29.7.0",
|
99
99
|
"chokidar": "^4.0.3",
|
100
100
|
"cpy-cli": "^5.0.0",
|
101
|
-
"eslint": "~9.
|
101
|
+
"eslint": "~9.31.0",
|
102
102
|
"eslint-import-resolver-node": "~0.3.9",
|
103
103
|
"eslint-import-resolver-typescript": "~3.10.0",
|
104
104
|
"eslint-plugin-import": "~2.32.0",
|
@@ -113,18 +113,18 @@
|
|
113
113
|
"jest-junit": "~16.0.0",
|
114
114
|
"jest-resolve": "~29.7.0",
|
115
115
|
"jsonc-eslint-parser": "~2.4.0",
|
116
|
-
"nx": "~
|
116
|
+
"nx": "~21.2.0",
|
117
117
|
"pid-from-port": "^1.1.3",
|
118
118
|
"style-dictionary": "~4.4.0",
|
119
119
|
"ts-jest": "~29.3.0",
|
120
120
|
"ts-node": "~10.9.2",
|
121
121
|
"type-fest": "^4.30.1",
|
122
122
|
"typescript": "~5.8.2",
|
123
|
-
"typescript-eslint": "~8.
|
123
|
+
"typescript-eslint": "~8.37.0",
|
124
124
|
"zone.js": "~0.15.0"
|
125
125
|
},
|
126
126
|
"engines": {
|
127
|
-
"node": "^20.
|
127
|
+
"node": "^20.19.0 || ^22.12.0 || ^24.0.0"
|
128
128
|
},
|
129
129
|
"schematics": "./collection.json",
|
130
130
|
"contributors": [
|
@@ -8,21 +8,10 @@ interface TargetFileOptions {
|
|
8
8
|
/** Default file if not matching any rule */
|
9
9
|
defaultFile?: string;
|
10
10
|
}
|
11
|
-
/**
|
12
|
-
* Legacy configuration to support inputs from @o3r/design templates
|
13
|
-
* @deprecated Should prefer simple string to specify the target file, will be removed in v13
|
14
|
-
*/
|
15
|
-
interface LegacyFileConfig extends FileRuleNode {
|
16
|
-
/** Extensions node in token */
|
17
|
-
$extensions: {
|
18
|
-
/** Indicate the file where to generate the token */
|
19
|
-
o3rTargetFile: string;
|
20
|
-
};
|
21
|
-
}
|
22
11
|
/** Mapping of the Design Tokens to a given file */
|
23
12
|
export interface FileRuleNode {
|
24
13
|
/** Indicate the file where to generate the token */
|
25
|
-
[path: string]: string | FileRuleNode
|
14
|
+
[path: string]: string | FileRuleNode;
|
26
15
|
}
|
27
16
|
/**
|
28
17
|
* Get the list of the target files based of given rule
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"target-file.filter.d.mts","sourceRoot":"","sources":["../../../src/filters/target-file.filter.mts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,IAAI,EACJ,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAKhC,kCAAkC;AAClC,UAAU,iBAAiB;IACzB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED
|
1
|
+
{"version":3,"file":"target-file.filter.d.mts","sourceRoot":"","sources":["../../../src/filters/target-file.filter.mts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,IAAI,EACJ,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAKhC,kCAAkC;AAClC,UAAU,iBAAiB;IACzB,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,mDAAmD;AACnD,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CACvC;AAgBD;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,WAAW,YAAY,EAAE,UAAU,iBAAiB,KAAG,IAAI,EAgCzF,CAAC"}
|
@@ -1,11 +1,6 @@
|
|
1
1
|
import { normalize, resolve, } from 'node:path';
|
2
2
|
import { deflatten, } from '../helpers/config-deflatten.helpers.mjs';
|
3
|
-
const isLegacyConfig = (config) => typeof config.$extensions?.o3rTargetFile === 'string';
|
4
3
|
const getPathMap = (rule, path = [], map = new Map()) => {
|
5
|
-
if (isLegacyConfig(rule)) {
|
6
|
-
map.set(rule.$extensions.o3rTargetFile, [...(map.get(rule.$extensions.o3rTargetFile) || []), path]);
|
7
|
-
return map;
|
8
|
-
}
|
9
4
|
return Object.entries(rule)
|
10
5
|
.filter(([name]) => name !== '$extensions')
|
11
6
|
.reduce((acc, [name, value]) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"target-file.filter.mjs","sourceRoot":"","sources":["../../../src/filters/target-file.filter.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,GACR,MAAM,WAAW,CAAC;AAKnB,OAAO,EACL,SAAS,GACV,MAAM,yCAAyC,CAAC;
|
1
|
+
{"version":3,"file":"target-file.filter.mjs","sourceRoot":"","sources":["../../../src/filters/target-file.filter.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,OAAO,GACR,MAAM,WAAW,CAAC;AAKnB,OAAO,EACL,SAAS,GACV,MAAM,yCAAyC,CAAC;AAkBjD,MAAM,UAAU,GAAG,CAAC,IAAkB,EAAE,OAAiB,EAAE,EAAE,MAA+B,IAAI,GAAG,EAAE,EAA2B,EAAE;IAChI,OAAO,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;SACxB,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,aAAa,CAAC;SAC1C,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,EAAE;QAC7B,MAAM,WAAW,GAAG,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,CAAC;QACpC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YAC9B,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC;YACzD,OAAO,GAAG,CAAC;QACb,CAAC;QAED,OAAO,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,CAAC,CAAC;IAC7C,CAAC,EAAE,GAAG,CAAC,CAAC;AACZ,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAA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