91
91
'dist/css/functional/typography/typography.css',
92
92
'dist/css/functional/themes/light.css',
93
93
'dist/css/functional/themes/dark.css',
94
+ 'themes/dark.css',
95
+ 'functional/border.css',
94
96
];
95
97
96
98
console.log('Testing CSS file exports...');
@@ -192,37 +194,6 @@ jobs:
192
194
EOF
193
195
node test-built-tokens.mjs
194
196
195
- - name : Test TypeScript types
196
- run : |
197
- cd test-exports
198
- npm install --save-dev typescript
199
- cat > test-types.ts << 'EOF'
200
- import { PrimerStyleDictionary } from '@primer/primitives';
201
-
202
- // Test that TypeScript can use the exports
203
- const sd = PrimerStyleDictionary.extend({
204
- source: ['test-tokens.json'],
205
- platforms: {
206
- css: {
207
- transformGroup: 'css',
208
- buildPath: 'build/',
209
- files: [{
210
- destination: 'test.css',
211
- format: 'css/variables'
212
- }]
213
- }
214
- }
215
- });
216
-
217
- console.log('✓ TypeScript types work correctly');
218
- EOF
219
-
220
- # Create a dummy token file for the test
221
- echo '{"color": {"primary": {"$value": "#ff0000", "$type": "color"}}}' > test-tokens.json
222
-
223
- # Test TypeScript compilation
224
- npx tsc test-types.ts --noEmit --moduleResolution node --esModuleInterop
225
-
226
197
- name : Test import resolution
227
198
run : |
228
199
cd test-exports
@@ -267,4 +238,4 @@ jobs:
267
238
echo "- Source token files"
268
239
echo "- Built token files"
269
240
echo "- TypeScript type definitions"
270
- echo "- Import path resolution"
241
+ echo "- Import path resolution"
0 commit comments