Skip to content

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

TypeScript

fix(core): export BaseProps through the /BaseProps subpath (#4465)

Cindy Zhanga58846aec5f6
diff --git a/.changeset/core-export-baseprops.md b/.changeset/core-export-baseprops.md
new file mode 100644
index 0000000000..fe3c18780a
--- /dev/null
+++ b/.changeset/core-export-baseprops.md
@@ -0,0 +1,7 @@
+---
+'@astryxdesign/core': patch
+---
+
+[fix] Export the `BaseProps` type through the `@astryxdesign/core/BaseProps` subpath. Previously it was only reachable through the package barrel, so the `import type {BaseProps} from '@astryxdesign/core/BaseProps'` specifier that `astryx swizzle` generates failed to resolve (#4091).
+
+@cixzhang
diff --git a/packages/core/package.json b/packages/core/package.json
index 00398db2bf..579ad560f8 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -54,6 +54,11 @@
"types": "./src/tailwind-theme.css.d.ts",
"default": "./src/tailwind-theme.css"
},
+ "./BaseProps": {
+ "source": "./src/BaseProps.ts",
+ "types": "./dist/BaseProps.d.ts",
+ "default": "./dist/BaseProps.js"
+ },
"./naming": {
"source": "./src/naming.ts",
"types": "./dist/naming.d.ts",
diff --git a/scripts/sync-exports.js b/scripts/sync-exports.js
index 408d4b627e..f6c476293d 100644
--- a/scripts/sync-exports.js
+++ b/scripts/sync-exports.js
@@ -63,6 +63,11 @@ const STATIC_EXPORTS = {
types: './src/tailwind-theme.css.d.ts',
default: './src/tailwind-theme.css',
},
+ './BaseProps': {
+ source: './src/BaseProps.ts',
+ types: './dist/BaseProps.d.ts',
+ default: './dist/BaseProps.js',
+ },
'./naming': {
source: './src/naming.ts',
types: './dist/naming.d.ts',