@yahoo/uds 0.5.8 → 0.5.9
Sign up to get free protection for your applications and to get access to all the features.
- package/cli/README.md +1 -0
- package/cli/bin/uds-darwin-arm64-baseline +0 -0
- package/cli/bin/uds-darwin-x64 +0 -0
- package/cli/bin/uds-linux-arm64 +0 -0
- package/cli/bin/uds-linux-x64-baseline +0 -0
- package/cli/bin/uds-windows-x64-baseline.exe +0 -0
- package/cli/cli.ts +6 -0
- package/cli/commands/purge.ts +6 -2
- package/cli/compile.ts +35 -0
- package/cli/consts.ts +9 -0
- package/cli/exec.ts +34 -0
- package/cli/tsconfig.json +1 -0
- package/cli/uds-cli +32 -6
- package/cli/utils/configWorker.ts +2 -0
- package/cli/utils/purgeCSS.test.ts +1 -1
- package/cli/utils/purgeCSS.ts +31 -11
- package/dist/{Image.native-No-SNzS_.d.cts → Image.native-BhqVvnKU.d.cts} +1 -1
- package/dist/{Image.native-taa2jsQc.d.ts → Image.native-DZW5ek69.d.ts} +1 -1
- package/dist/{VStack-pgMJmuKn.d.ts → VStack-BohShRVo.d.ts} +1 -1
- package/dist/{VStack-B4TMNdfk.d.cts → VStack-C6VjEoRP.d.cts} +1 -1
- package/dist/experimental/index.cjs +2 -2
- package/dist/experimental/index.d.cts +2 -2
- package/dist/experimental/index.d.ts +2 -2
- package/dist/experimental/index.js +2 -2
- package/dist/experimental/index.native.d.cts +3 -3
- package/dist/experimental/index.native.d.ts +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{index.native-WZqIALTD.d.cts → index.native-dtcAO8DN.d.cts} +1 -1
- package/dist/{index.native-BzvT-a_y.d.ts → index.native-uBCD4Hr4.d.ts} +1 -1
- package/dist/index.native.cjs +1 -1
- package/dist/index.native.d.cts +31 -5
- package/dist/index.native.d.ts +31 -5
- package/dist/index.native.js +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/tailwind/plugin.cjs +1 -1
- package/dist/tailwind/plugin.d.cts +1 -1
- package/dist/tailwind/plugin.d.ts +1 -1
- package/dist/tailwind/plugin.js +3 -3
- package/dist/tailwind/purger.cjs +2 -2
- package/dist/tailwind/purger.js +2 -2
- package/dist/tailwind/tsMorph.cjs +1 -1
- package/dist/tailwind/tsMorph.js +2 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +29 -3
- package/dist/tokens/index.d.ts +29 -3
- package/dist/tokens/index.js +2 -2
- package/dist/tokens/index.native.d.cts +2 -2
- package/dist/tokens/index.native.d.ts +2 -2
- package/dist/tokens/parseTokens.cjs +1 -1
- package/dist/tokens/parseTokens.d.cts +1 -1
- package/dist/tokens/parseTokens.d.ts +1 -1
- package/dist/tokens/parseTokens.js +1 -1
- package/dist/{types-CHw8YXrX.d.cts → types-BE7_GGFX.d.cts} +1 -1
- package/dist/{types-CHw8YXrX.d.ts → types-BE7_GGFX.d.ts} +1 -1
- package/dist/{types-FhFpiSwO.d.cts → types-D0b0TPQ4.d.cts} +1 -1
- package/dist/{types-FhFpiSwO.d.ts → types-D0b0TPQ4.d.ts} +1 -1
- package/package.json +199 -198
package/package.json
CHANGED
@@ -1,198 +1,199 @@
|
|
1
|
-
{
|
2
|
-
"name": "@yahoo/uds",
|
3
|
-
"description": "Yahoo Universal System",
|
4
|
-
"version": "0.5.
|
5
|
-
"type": "module",
|
6
|
-
"bin": {
|
7
|
-
"uds": "./cli/uds-cli"
|
8
|
-
},
|
9
|
-
"files": [
|
10
|
-
"cli/**",
|
11
|
-
"dist/**",
|
12
|
-
"fonts/**",
|
13
|
-
"package.json"
|
14
|
-
],
|
15
|
-
"sideEffects": false,
|
16
|
-
"exports": {
|
17
|
-
".": {
|
18
|
-
"react-native": {
|
19
|
-
"types": "./dist/index.native.d.ts",
|
20
|
-
"require": "./dist/index.native.cjs",
|
21
|
-
"default": "./dist/index.native.js"
|
22
|
-
},
|
23
|
-
"import": {
|
24
|
-
"types": "./dist/index.d.ts",
|
25
|
-
"default": "./dist/index.js"
|
26
|
-
},
|
27
|
-
"require": {
|
28
|
-
"types": "./dist/index.d.cts",
|
29
|
-
"default": "./dist/index.cjs"
|
30
|
-
}
|
31
|
-
},
|
32
|
-
"./experimental": {
|
33
|
-
"react-native": {
|
34
|
-
"types": "./dist/experimental/index.native.d.ts",
|
35
|
-
"require": "./dist/experimental/index.native.cjs",
|
36
|
-
"default": "./dist/experimental/index.native.js"
|
37
|
-
},
|
38
|
-
"import": {
|
39
|
-
"types": "./dist/experimental/index.d.ts",
|
40
|
-
"default": "./dist/experimental/index.js"
|
41
|
-
},
|
42
|
-
"require": {
|
43
|
-
"types": "./dist/experimental/index.d.cts",
|
44
|
-
"default": "./dist/experimental/index.cjs"
|
45
|
-
}
|
46
|
-
},
|
47
|
-
"./fixtures": {
|
48
|
-
"import": {
|
49
|
-
"types": "./dist/fixtures.d.ts",
|
50
|
-
"default": "./dist/fixtures.js"
|
51
|
-
},
|
52
|
-
"require": {
|
53
|
-
"types": "./dist/fixtures.d.ts",
|
54
|
-
"default": "./dist/fixtures.cjs"
|
55
|
-
}
|
56
|
-
},
|
57
|
-
"./fonts/*.otf": "./fonts/*.otf",
|
58
|
-
"./fonts/*.ttf": "./fonts/*.ttf",
|
59
|
-
"./fonts/*.woff2": "./fonts/*.woff2",
|
60
|
-
"./fonts/*": {
|
61
|
-
"types": "./fonts/*.d.ts",
|
62
|
-
"require": "./fonts/*.cjs"
|
63
|
-
},
|
64
|
-
"./package.json": "./package.json",
|
65
|
-
"./styles/*": "./dist/styles/*",
|
66
|
-
"./tailwind/*": {
|
67
|
-
"import": {
|
68
|
-
"types": "./dist/tailwind/*.d.ts",
|
69
|
-
"default": "./dist/tailwind/*.js"
|
70
|
-
},
|
71
|
-
"require": {
|
72
|
-
"types": "./dist/tailwind/*.d.cts",
|
73
|
-
"default": "./dist/tailwind/*.cjs"
|
74
|
-
}
|
75
|
-
},
|
76
|
-
"./tokens": {
|
77
|
-
"react-native": {
|
78
|
-
"types": "./dist/tokens/index.native.d.ts",
|
79
|
-
"require": "./dist/tokens/index.native.cjs",
|
80
|
-
"default": "./dist/tokens/index.native.js"
|
81
|
-
},
|
82
|
-
"import": {
|
83
|
-
"types": "./dist/tokens/index.d.ts",
|
84
|
-
"default": "./dist/tokens/index.js"
|
85
|
-
},
|
86
|
-
"require": {
|
87
|
-
"types": "./dist/tokens/index.d.cts",
|
88
|
-
"default": "./dist/tokens/index.cjs"
|
89
|
-
}
|
90
|
-
},
|
91
|
-
"./tokens/parseTokens": {
|
92
|
-
"import": {
|
93
|
-
"types": "./dist/tokens/parseTokens.d.ts",
|
94
|
-
"default": "./dist/tokens/parseTokens.js"
|
95
|
-
},
|
96
|
-
"require": {
|
97
|
-
"types": "./dist/tokens/parseTokens.d.cts",
|
98
|
-
"default": "./dist/tokens/parseTokens.cjs"
|
99
|
-
}
|
100
|
-
}
|
101
|
-
},
|
102
|
-
"scripts": {
|
103
|
-
"build": "bun run ./scripts/prebuild.ts && tsup && bun run ./scripts/postbuild.ts",
|
104
|
-
"build:
|
105
|
-
"build:
|
106
|
-
"build:
|
107
|
-
"build:
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"dev
|
111
|
-
"dev:
|
112
|
-
"dev:
|
113
|
-
"dev:
|
114
|
-
"
|
115
|
-
"lint
|
116
|
-
"
|
117
|
-
"test
|
118
|
-
"test:bun
|
119
|
-
"test:bun:
|
120
|
-
"test:
|
121
|
-
"test:
|
122
|
-
"test:
|
123
|
-
"
|
124
|
-
"typecheck
|
125
|
-
"typecheck:
|
126
|
-
"typecheck:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
"
|
131
|
-
"
|
132
|
-
"
|
133
|
-
"
|
134
|
-
"
|
135
|
-
"
|
136
|
-
"
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
"@
|
141
|
-
"@types/
|
142
|
-
"@types/react
|
143
|
-
"@
|
144
|
-
"
|
145
|
-
"
|
146
|
-
"
|
147
|
-
"
|
148
|
-
"
|
149
|
-
"
|
150
|
-
"
|
151
|
-
"
|
152
|
-
"
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
"@
|
157
|
-
"
|
158
|
-
"expo-
|
159
|
-
"expo-
|
160
|
-
"
|
161
|
-
"react
|
162
|
-
"react-
|
163
|
-
"react-native
|
164
|
-
"
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@yahoo/uds",
|
3
|
+
"description": "Yahoo Universal System",
|
4
|
+
"version": "0.5.9",
|
5
|
+
"type": "module",
|
6
|
+
"bin": {
|
7
|
+
"uds": "./cli/uds-cli"
|
8
|
+
},
|
9
|
+
"files": [
|
10
|
+
"cli/**",
|
11
|
+
"dist/**",
|
12
|
+
"fonts/**",
|
13
|
+
"package.json"
|
14
|
+
],
|
15
|
+
"sideEffects": false,
|
16
|
+
"exports": {
|
17
|
+
".": {
|
18
|
+
"react-native": {
|
19
|
+
"types": "./dist/index.native.d.ts",
|
20
|
+
"require": "./dist/index.native.cjs",
|
21
|
+
"default": "./dist/index.native.js"
|
22
|
+
},
|
23
|
+
"import": {
|
24
|
+
"types": "./dist/index.d.ts",
|
25
|
+
"default": "./dist/index.js"
|
26
|
+
},
|
27
|
+
"require": {
|
28
|
+
"types": "./dist/index.d.cts",
|
29
|
+
"default": "./dist/index.cjs"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"./experimental": {
|
33
|
+
"react-native": {
|
34
|
+
"types": "./dist/experimental/index.native.d.ts",
|
35
|
+
"require": "./dist/experimental/index.native.cjs",
|
36
|
+
"default": "./dist/experimental/index.native.js"
|
37
|
+
},
|
38
|
+
"import": {
|
39
|
+
"types": "./dist/experimental/index.d.ts",
|
40
|
+
"default": "./dist/experimental/index.js"
|
41
|
+
},
|
42
|
+
"require": {
|
43
|
+
"types": "./dist/experimental/index.d.cts",
|
44
|
+
"default": "./dist/experimental/index.cjs"
|
45
|
+
}
|
46
|
+
},
|
47
|
+
"./fixtures": {
|
48
|
+
"import": {
|
49
|
+
"types": "./dist/fixtures.d.ts",
|
50
|
+
"default": "./dist/fixtures.js"
|
51
|
+
},
|
52
|
+
"require": {
|
53
|
+
"types": "./dist/fixtures.d.ts",
|
54
|
+
"default": "./dist/fixtures.cjs"
|
55
|
+
}
|
56
|
+
},
|
57
|
+
"./fonts/*.otf": "./fonts/*.otf",
|
58
|
+
"./fonts/*.ttf": "./fonts/*.ttf",
|
59
|
+
"./fonts/*.woff2": "./fonts/*.woff2",
|
60
|
+
"./fonts/*": {
|
61
|
+
"types": "./fonts/*.d.ts",
|
62
|
+
"require": "./fonts/*.cjs"
|
63
|
+
},
|
64
|
+
"./package.json": "./package.json",
|
65
|
+
"./styles/*": "./dist/styles/*",
|
66
|
+
"./tailwind/*": {
|
67
|
+
"import": {
|
68
|
+
"types": "./dist/tailwind/*.d.ts",
|
69
|
+
"default": "./dist/tailwind/*.js"
|
70
|
+
},
|
71
|
+
"require": {
|
72
|
+
"types": "./dist/tailwind/*.d.cts",
|
73
|
+
"default": "./dist/tailwind/*.cjs"
|
74
|
+
}
|
75
|
+
},
|
76
|
+
"./tokens": {
|
77
|
+
"react-native": {
|
78
|
+
"types": "./dist/tokens/index.native.d.ts",
|
79
|
+
"require": "./dist/tokens/index.native.cjs",
|
80
|
+
"default": "./dist/tokens/index.native.js"
|
81
|
+
},
|
82
|
+
"import": {
|
83
|
+
"types": "./dist/tokens/index.d.ts",
|
84
|
+
"default": "./dist/tokens/index.js"
|
85
|
+
},
|
86
|
+
"require": {
|
87
|
+
"types": "./dist/tokens/index.d.cts",
|
88
|
+
"default": "./dist/tokens/index.cjs"
|
89
|
+
}
|
90
|
+
},
|
91
|
+
"./tokens/parseTokens": {
|
92
|
+
"import": {
|
93
|
+
"types": "./dist/tokens/parseTokens.d.ts",
|
94
|
+
"default": "./dist/tokens/parseTokens.js"
|
95
|
+
},
|
96
|
+
"require": {
|
97
|
+
"types": "./dist/tokens/parseTokens.d.cts",
|
98
|
+
"default": "./dist/tokens/parseTokens.cjs"
|
99
|
+
}
|
100
|
+
}
|
101
|
+
},
|
102
|
+
"scripts": {
|
103
|
+
"build": "bun run ./scripts/prebuild.ts && tsup && bun run ./scripts/postbuild.ts",
|
104
|
+
"build:cli": "bun ./cli/compile.ts",
|
105
|
+
"build:css": "tailwindcss --input ./src/tailwind/uds.css --output ./generated/uds.css --config ./src/tailwind/tailwind.config.ts",
|
106
|
+
"build:fixtures": "bun run ./scripts/buildFixtures.ts",
|
107
|
+
"build:fontcss": "bun run ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
|
108
|
+
"build:purgeCSSData": "bun run ./scripts/generatePurgeCSSData.ts",
|
109
|
+
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist && rm -rf .coverage",
|
110
|
+
"dev": "concurrently bun:dev:*",
|
111
|
+
"dev:fixtures": "bun run ./scripts/buildFixtures.ts --watch",
|
112
|
+
"dev:fontcss": "bun run --watch --clear-screen=false ./scripts/generateFontCSS.ts --output ./generated/fonts.css",
|
113
|
+
"dev:purgeCSSData": "bun run ./scripts/generatePurgeCSSData.ts --watch",
|
114
|
+
"dev:ts": "tsup --watch",
|
115
|
+
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs .",
|
116
|
+
"lint:pkg": "bun publint",
|
117
|
+
"test": "vitest run",
|
118
|
+
"test:bun": "bun run test:bun:scripts && bun run test:bun:cli",
|
119
|
+
"test:bun:cli": "cd ./cli && bun test",
|
120
|
+
"test:bun:scripts": "cd ./scripts && bun test",
|
121
|
+
"test:coverage": "vitest run --coverage",
|
122
|
+
"test:ui": "vitest --ui --coverage",
|
123
|
+
"test:watch": "vitest",
|
124
|
+
"typecheck": "concurrently bun:typecheck:*",
|
125
|
+
"typecheck:cli": "tsc -p ./cli --noEmit",
|
126
|
+
"typecheck:scripts": "tsc -p ./scripts --noEmit",
|
127
|
+
"typecheck:uds": "tsc -p . --noEmit"
|
128
|
+
},
|
129
|
+
"dependencies": {
|
130
|
+
"@ariakit/react": "^0.4.5",
|
131
|
+
"bluebun": "^0.0.34",
|
132
|
+
"clsx": "^2.1.0",
|
133
|
+
"lodash-es": "^4.17.21",
|
134
|
+
"prompts": "^2.4.2",
|
135
|
+
"react-toastify": "^10.0.5",
|
136
|
+
"tailwind-merge": "^2.3.0",
|
137
|
+
"ts-morph": "^23.0.0"
|
138
|
+
},
|
139
|
+
"devDependencies": {
|
140
|
+
"@fullhuman/postcss-purgecss": "^6.0.0",
|
141
|
+
"@types/prompts": "^2.4.9",
|
142
|
+
"@types/react": "^18.2.74",
|
143
|
+
"@types/react-dom": "^18.2.24",
|
144
|
+
"@yahoo/uds-icons": "0.0.13",
|
145
|
+
"autoprefixer": "^10.4.19",
|
146
|
+
"chalk": "^5.3.0",
|
147
|
+
"concurrently": "^8.2.2",
|
148
|
+
"postcss": "^8.4.38",
|
149
|
+
"shared": "0.0.7",
|
150
|
+
"tailwindcss": "^3.4.3",
|
151
|
+
"terser": "^5.30.4",
|
152
|
+
"tsconfig": "0.0.1",
|
153
|
+
"tsup": "^8.0.2"
|
154
|
+
},
|
155
|
+
"peerDependencies": {
|
156
|
+
"@gorhom/bottom-sheet": "^4.6.1",
|
157
|
+
"@react-navigation/native": "^6.1.17",
|
158
|
+
"expo-constants": "^16.0.0",
|
159
|
+
"expo-image": "^1.10.6",
|
160
|
+
"expo-status-bar": "^1.11.1",
|
161
|
+
"react": "^18.2.0",
|
162
|
+
"react-dom": "^18.2.0",
|
163
|
+
"react-native": "^0.74.0",
|
164
|
+
"react-native-safe-area-context": "^4.9.0",
|
165
|
+
"tailwindcss": "^3.4.3"
|
166
|
+
},
|
167
|
+
"peerDependenciesMeta": {
|
168
|
+
"@gorhom/bottom-sheet": {
|
169
|
+
"optional": true
|
170
|
+
},
|
171
|
+
"@react-navigation/native": {
|
172
|
+
"optional": true
|
173
|
+
},
|
174
|
+
"expo-constants": {
|
175
|
+
"optional": true
|
176
|
+
},
|
177
|
+
"expo-image": {
|
178
|
+
"optional": true
|
179
|
+
},
|
180
|
+
"expo-status-bar": {
|
181
|
+
"optional": true
|
182
|
+
},
|
183
|
+
"react": {
|
184
|
+
"optional": false
|
185
|
+
},
|
186
|
+
"react-dom": {
|
187
|
+
"optional": true
|
188
|
+
},
|
189
|
+
"react-native": {
|
190
|
+
"optional": true
|
191
|
+
},
|
192
|
+
"react-native-safe-area-context": {
|
193
|
+
"optional": true
|
194
|
+
},
|
195
|
+
"tailwindcss": {
|
196
|
+
"optional": true
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|