Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 |
Tags
- Java
- yaml
- scikit-learn
- io
- pandas
- json schema
- docker
- Docker Compose
- UV
- scaler
- cli
- Python
- podman
- CSS
- RandomAccessFile
- 정렬
- FileChannel
- json
- Ollama
- curl
- PowerShell
- fit_transform
- tauri
- 이미지
- Vite
- DataFrameGroupBy
- vscode
- Typescript
- vim
- Webpack
Archives
- Today
- Total
워로디스
Typescript 라이브러리 프로젝트 구성 본문
프로젝트 구성 절차
mkdir test-lib
cd test-lib
npm init -y
npm pkg set main=dist/index.js
npm pkg set types=dist/index.d.ts
npm pkg set exports=./dist/index.js
npm pkg set type=module
npm pkg set scripts.build=tsc
배포에 dist 만 포함
npm pkg set files[0]=dist
npm install -D typescript
npx tsc --init --rootDir ./src --outDir ./dist
mkdir src
New-Item ./src/index.ts
index.ts 예시
다시 내보내기 방식
export * from "./math.js";
export * from "./string.js";
export * from "./types.js";
반응형
'개발 > TypeScript' 카테고리의 다른 글
| TypeScript. Uint8Array 해싱과 문자열 ID 표현 (0) | 2026.09.16 |
|---|
