Skip to content

Commit

Permalink
feat: use exports package.json field
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Apr 11, 2023
1 parent e58c273 commit 2af9786
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/olive-meals-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@svbstrate/react-native": patch
"@svbstrate/core": patch
---

Update `package.json`s to use `exports` field
Empty file removed packages/core/.gitignore
Empty file.
6 changes: 4 additions & 2 deletions packages/core/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/lib
.gitignore
lib
scripts
coverage
dist/__tests__
tsconfig.json
4 changes: 4 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": "./dist/index.js",
"./presets": "./dist/presets.js"
},
"scripts": {
"build": "vite build && pnpm typegen",
"test": "vitest run --coverage",
Expand Down
5 changes: 5 additions & 0 deletions packages/react-native/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
lib
scripts
coverage
dist/__tests__
tsconfig.json
2 changes: 0 additions & 2 deletions packages/react-native/lib/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import * as Polymorphic from "@radix-ui/react-polymorphic";

export type Theme = Partial<svbstrate.ThemeConfig>;

export { createTheme } from "@svbstrate/core";

export type BoxPropsBase = {
cx?:
| svbstrate.SvbstrateStyleObject
Expand Down

0 comments on commit 2af9786

Please sign in to comment.