Skip to content

Commit 3227d2d

Browse files
committed
feat: add static entrypoint
1 parent 6f09dc4 commit 3227d2d

3 files changed

Lines changed: 14 additions & 4 deletions

File tree

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
"description": "Static files for gearbox services",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",
7+
"exports": {
8+
".": {
9+
"types": "./lib/index.d.ts",
10+
"default": "./lib/index.js"
11+
},
12+
"./static": {
13+
"types": "./lib/static/index.d.ts",
14+
"default": "./lib/static/index.js"
15+
}
16+
},
717
"files": [
818
"lib"
919
],

src/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,4 @@ export * from "./social/discord";
4040
export * from "./social/github";
4141
export * from "./social/telegram";
4242
export * from "./social/twitter";
43-
44-
export const STATIC_SERVER = "https://static.gearbox.finance";
45-
46-
export const getStatic = (url: string) => `${STATIC_SERVER}${url}`;
43+
export * from "./static";

src/static/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const STATIC_SERVER = "https://static.gearbox.finance";
2+
3+
export const getStatic = (url: string) => `${STATIC_SERVER}${url}`;

0 commit comments

Comments
 (0)