This commit is contained in:
Shotaro Nakamura
2026-06-24 21:29:37 +09:00
parent fed3ac1b61
commit e08920bc47
12 changed files with 109 additions and 30 deletions
+3 -2
View File
@@ -2,15 +2,16 @@
"name": "@repo/client-sbi",
"private": true,
"type": "module",
"module": "index.ts",
"module": "./dist/index.mjs",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
"import": "./dist/index.mjs"
}
},
"scripts": {
"build": "cd ../.. && vp run @repo/mnie-types#build && cd packages/client-sbi && vp pack",
"clean": "rm -rf dist",
"typecheck": "tsc"
},
+1
View File
@@ -1 +1,2 @@
export type * from '@repo/mnie-types'
export type { SbiClientMethods } from '@repo/mnie-types'
+14
View File
@@ -0,0 +1,14 @@
import { defineConfig } from 'vite-plus'
export default defineConfig({
pack: {
entry: ['src/index.ts'],
deps: {
alwaysBundle: [/^@repo\//, 'iconv-lite', 'safer-buffer'],
onlyBundle: false,
},
dts: { eager: true },
format: ['esm'],
platform: 'node',
},
})