Skip to content

Commit

Permalink
feat: fix exports, export from native package
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Apr 11, 2023
1 parent 8cc7fee commit 4e834f8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/soft-cycles-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@svbstrate/react-native": patch
"@svbstrate/core": patch
---

Fix exports, export `presets` directly from `react-native` package
6 changes: 4 additions & 2 deletions packages/core/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ export default defineConfig({
target: "esnext",
minify: "esbuild",
lib: {
entry: resolve(__dirname, "lib/index.ts"),
entry: [
resolve(__dirname, "lib/index.ts"),
resolve(__dirname, "lib/presets.ts"),
],
formats: ["cjs"],
fileName: "index",
},
},
test: {
Expand Down
2 changes: 2 additions & 0 deletions packages/react-native/lib/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import React from "react";
import { View, ViewProps } from "react-native";
import * as Polymorphic from "@radix-ui/react-polymorphic";

export * as presets from "@svbstrate/core/presets";

export type Theme = Partial<svbstrate.ThemeConfig>;

export type BoxPropsBase = {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"target": "es2021",
"lib": ["es2021"],
"module": "es2022",
"moduleResolution": "node",
"moduleResolution": "node16",
"types": ["vite/client"],
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
Expand Down

0 comments on commit 4e834f8

Please sign in to comment.