From f16aef0dd1e76d96b22059e39305523b98dfa9f0 Mon Sep 17 00:00:00 2001 From: David Liu Date: Fri, 10 Feb 2023 08:55:43 +0800 Subject: [PATCH] add configs for lib project --- dist/index.d.ts | 2 ++ dist/index.d.ts.map | 1 + dist/index.js | 2 ++ package.json | 2 ++ tsconfig.json | 3 +++ 5 files changed, 10 insertions(+) create mode 100644 dist/index.d.ts create mode 100644 dist/index.d.ts.map diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..e26a57a --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map new file mode 100644 index 0000000..535b86d --- /dev/null +++ b/dist/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index e69de29..c8ad2e5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/package.json b/package.json index ef44215..f2451be 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,8 @@ "compile": "tsc --project tsconfig.json", "test": "jest" }, + "main": "dist/index.js", + "types": "dist/index.d.ts", "devDependencies": { "@typescript-eslint/eslint-plugin": "latest", "@typescript-eslint/parser": "latest", diff --git a/tsconfig.json b/tsconfig.json index c4ff3d9..687e614 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,9 @@ { "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { + "declaration": true, + "declarationMap": true, + "module": "NodeNext", "esModuleInterop": true, "outDir": "dist", "target": "ESNext",