mirror of
https://gitea.tendokyu.moe/ppc/amnet.git
synced 2026-09-26 16:18:17 +03:00
use single exported file
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
"scripts": {
|
||||
"build": "tsup"
|
||||
},
|
||||
"exports": {
|
||||
".": "./dist/index.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"tsup": "^8.2.4",
|
||||
"typescript": "^5.5.4"
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from './api';
|
||||
export * from './card';
|
||||
@@ -7,7 +7,8 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"skipLibCheck": true
|
||||
"skipLibCheck": true,
|
||||
"baseUrl": "."
|
||||
},
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { defineConfig } from "tsup";
|
||||
|
||||
export default defineConfig({
|
||||
entry: ["src/amnet-api.ts", "src/cardgen.ts"],
|
||||
entry: ["src/index.ts"],
|
||||
format: ["cjs", "esm"],
|
||||
splitting: false,
|
||||
sourcemap: true,
|
||||
|
||||
Reference in New Issue
Block a user