Skip to content

Commit 8772ade

Browse files
Update test_exports.yml
1 parent d161229 commit 8772ade

File tree

1 file changed

+3
-32
lines changed

1 file changed

+3
-32
lines changed

.github/workflows/test_exports.yml

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ jobs:
9191
'dist/css/functional/typography/typography.css',
9292
'dist/css/functional/themes/light.css',
9393
'dist/css/functional/themes/dark.css',
94+
'themes/dark.css',
95+
'functional/border.css',
9496
];
9597
9698
console.log('Testing CSS file exports...');
@@ -192,37 +194,6 @@ jobs:
192194
EOF
193195
node test-built-tokens.mjs
194196
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-
226197
- name: Test import resolution
227198
run: |
228199
cd test-exports
@@ -267,4 +238,4 @@ jobs:
267238
echo "- Source token files"
268239
echo "- Built token files"
269240
echo "- TypeScript type definitions"
270-
echo "- Import path resolution"
241+
echo "- Import path resolution"

0 commit comments

Comments
 (0)