feat: auth/gameToken 모듈로의 경로 변경 및 tsdown 설정 추가

This commit is contained in:
2026-01-18 06:39:43 +00:00
parent a9ddffa97c
commit 879104622a
11 changed files with 41 additions and 13 deletions
+12 -2
View File
@@ -5,9 +5,19 @@
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./auth/gameToken": {
"types": "./dist/auth/gameToken.d.ts",
"default": "./dist/auth/gameToken.js"
}
},
"scripts": {
"build": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/common",
"dev": "tsdown -c ../../tsdown.config.ts -F @sammo-ts/common --watch",
"build": "tsdown -c ./tsdown.config.ts",
"dev": "tsdown -c ./tsdown.config.ts --watch",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest run --config vitest.config.ts",
-1
View File
@@ -1,5 +1,4 @@
export * from './rng.js';
export * from './auth/gameToken.js';
export * from './time/Clock.js';
export * from './util/BytesLike.js';
export * from './util/convertBytesLikeToArrayBuffer.js';
+18
View File
@@ -0,0 +1,18 @@
import { defineConfig } from 'tsdown';
export default defineConfig({
entry: {
index: 'src/index.ts',
'auth/gameToken': 'src/auth/gameToken.ts',
},
format: 'es',
outDir: 'dist',
dts: {
build: true,
},
sourcemap: true,
target: 'node22',
platform: 'node',
fixedExtension: false,
hash: false,
});