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 -1
View File
@@ -2,14 +2,16 @@
"name": "@repo/mnie-types",
"private": true,
"type": "module",
"module": "./dist/index.mjs",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts"
"import": "./dist/index.mjs"
}
},
"scripts": {
"build": "vp pack",
"clean": "rm -rf dist",
"typecheck": "tsc"
},
+11
View File
@@ -0,0 +1,11 @@
import { defineConfig } from 'vite-plus'
export default defineConfig({
pack: {
entry: ['src/index.ts'],
dts: { eager: true },
format: ['esm'],
platform: 'neutral',
fixedExtension: true,
},
})