Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(build): give the PostCSS fixture's Astryx package a manifest (#7797)

Cindy Zhang2c3ed9933567
diff --git a/packages/build/src/postcss.test.mjs b/packages/build/src/postcss.test.mjs
index 7841a8f275..1efa6232f6 100644
--- a/packages/build/src/postcss.test.mjs
+++ b/packages/build/src/postcss.test.mjs
@@ -47,6 +47,11 @@ beforeAll(() => {
'};',
'',
].join('\n'),
+ // An installed Astryx package has a manifest; the plugin scans what each
+ // one publishes, so without it the module would count as app code.
+ 'node_modules/@astryxdesign/core/package.json': JSON.stringify({
+ name: '@astryxdesign/core',
+ }),
[LIBRARY_FILE]: [
"import * as stylex from '@stylexjs/stylex';",
"export const styles = stylex.create({box: {color: 'red'}});",