From 22edc65fb5e7a277efa04206995b9e16e280774f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B0=95=ED=98=84?= Date: Sun, 21 Jan 2024 18:20:10 +0900 Subject: [PATCH] declaration, emitDeclarationOnly --- package.json | 14 ++++++++------ tsconfig.json | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 5f29620..2503845 100644 --- a/package.json +++ b/package.json @@ -2,15 +2,17 @@ "name": "dxf-json", "version": "1.0.0", "description": "perfect dxf parser", - "main": "./src/index.ts", + "main": "./dist/index.ts", "type": "module", + "types": "./dist/index.d.ts", + "module": "./dist/index.js", "scripts": { "build": "tsc && webpack --mode production", "test:parser": "jest --silent=false" }, "repository": { "type": "git", - "url": "git+https://github.com/dotoritos-kim/dxf-json.git" + "url": "git+https://github.com/kimkanghyune/dxf-json.git" }, "keywords": [ "dxf", @@ -22,7 +24,7 @@ "typescript" ], "author": { - "name": "dotoritos-kim", + "name": "kanghyune kim", "email": "wwponv158@gmail.com" }, "publishConfig": { @@ -30,10 +32,10 @@ }, "license": "GPL-3.0", "bugs": { - "url": "https://github.com/dotoritos-kim/dxf-json/issues", + "url": "https://github.com/kimkanghyune/dxf-json/issues", "email": "wwponv158@gmail.com" }, - "homepage": "https://github.com/dotoritos-kim/dxf-json#readme", + "homepage": "https://github.com/kimkanghyune/dxf-json#readme", "dependencies": { "@fxts/core": "^0.23.0", "@swc/cli": "^0.1.63", @@ -53,4 +55,4 @@ "ts-jest": "^29.1.1", "typescript": "^5.3.3" } -} +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 2aa8085..301d9be 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,6 +18,8 @@ "./node_modules/@types" // 설정 안할시 기본적으로 ./node_modules/@types ], "baseUrl": "./src", + "declaration": true, + "emitDeclarationOnly": true, "plugins": [ { "transform": "typia/lib/transform"