From bedf9de49fe1598b94f6b918e8e76c81157fc5b7 Mon Sep 17 00:00:00 2001 From: Revone Date: Fri, 16 Jun 2023 01:24:35 +0800 Subject: [PATCH] type importing bug solved --- package.json | 7 ++++--- tsconfig.json | 5 +++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 29f7eef..d3055d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "data-structure-typed", - "version": "0.8.6", + "version": "0.8.16", "description": "Hash (CoordinateSet, CoordinateMap) Heap (MaxHeap, MinHeap) Binary Tree (AVL Tree, Binary Indexed Tree, Binary Search Tree, Segment Tree, Tree Multiset) Graph (Directed Graph, Undirected Graph) Linked List (Singly Linked List, Doubly Linked List) Matrix Priority Queue (Max Priority Queue, Min Priority Queue) Queue (Queue, Dequeue) Stack Trie", "main": "dist/index.js", "scripts": { @@ -62,9 +62,10 @@ "author": "Tyler Zeng", "license": "ISC", "bugs": { - "url": "https://github.com/zrwusa/data-structure-ts/issues" + "url": "https://github.com/zrwusa/data-structure-typed/issues" }, - "homepage": "https://github.com/zrwusa/data-structure-ts#readme", + "homepage": "https://github.com/zrwusa/data-structure-typed#readme", + "types": "dist/index.d.ts", "devDependencies": { "@types/lodash": "^4.14.178", "typescript": "^4.6.2" diff --git a/tsconfig.json b/tsconfig.json index ccaff8d..8bccfa9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "strict": true, "esModuleInterop": true, "moduleResolution": "node", - "declarationDir": "./dist/types", + "declarationDir": "./dist", "skipLibCheck": true // "allowJs": true, @@ -25,7 +25,8 @@ // "noEmit": true, }, "include": [ - "src" + "src", + "node_modules/data-structure-typed" ], "exclude": [ "node_modules",