Skip to content

Commit da9b1da

Browse files
authored
feat: Allow starbase to be published (#60)
* feat: Allow starbase to be published * chore: Export plugins * fix: Change name
1 parent c6df745 commit da9b1da

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ out
116116
# Nuxt.js build / generate output
117117

118118
.nuxt
119-
dist
120119

121120
# Gatsby files
122121

dist/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { StarbaseDB, type StarbaseDBConfiguration } from '../src/handler'
2+
export { StarbaseDBDurableObject } from '../src/do'
3+
export type { DataSource } from '../src/types'

dist/plugins.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { StudioPlugin } from '../plugins/studio'
2+
export { WebSocketPlugin } from '../plugins/websocket'

package.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
{
2-
"name": "durable-object-starter",
3-
"version": "0.0.0",
4-
"private": true,
2+
"name": "@outerbase/starbasedb",
3+
"version": "0.1.0",
4+
"files": [
5+
"src",
6+
"dist",
7+
"plugins"
8+
],
9+
"type": "module",
10+
"main": "dist/index.ts",
11+
"types": "dist/index.ts",
12+
"exports": {
13+
".": {
14+
"types": "./dist/index.ts",
15+
"import": "./dist/index.ts"
16+
},
17+
"./plugins": {
18+
"types": "./dist/plugins.ts",
19+
"import": "./dist/plugins.ts"
20+
}
21+
},
522
"scripts": {
623
"deploy": "wrangler deploy",
724
"dev": "wrangler dev",

0 commit comments

Comments
 (0)