@alanscodelog/utils
Advanced tools
Comparing version 4.0.0-beta.6 to 4.0.0-beta.7
{ | ||
"name": "@alanscodelog/utils", | ||
"description": "My utility functions and typescript types.", | ||
"version": "4.0.0-beta.6", | ||
"version": "4.0.0-beta.7", | ||
"module": "./dist/index.js", | ||
@@ -14,5 +14,25 @@ "types": "./dist/index.d.ts", | ||
"./*": { | ||
"types": "./dist/*/index.d.ts", | ||
"import": "./dist/*/index.js" | ||
"types": "./dist/*", | ||
"import": "./dist/*" | ||
}, | ||
"./utils": { | ||
"types": "./dist/utils/index.d.ts", | ||
"import": "./dist/utils/index.js" | ||
}, | ||
"./testing": { | ||
"types": "./dist/testing/index.d.ts", | ||
"import": "./dist/testing/index.js" | ||
}, | ||
"./retypes": { | ||
"types": "./dist/retypes/index.d.ts", | ||
"import": "./dist/retypes/index.js" | ||
}, | ||
"./types": { | ||
"types": "./dist/types/index.d.ts", | ||
"import": "./dist/types/index.js" | ||
}, | ||
"./colors": { | ||
"types": "./dist/colors/index.d.ts", | ||
"import": "./dist/colors/index.js" | ||
}, | ||
"./node": { | ||
@@ -19,0 +39,0 @@ "types": "./dist/index_node.d.ts", |
@@ -37,3 +37,9 @@  | ||
import { MakeOptional, ...} from "@alanscodelog/utils/types" | ||
// direct imports are also supported | ||
import {debounce} from "@alanscodelog/utils/utils/debounce.js" | ||
``` | ||
Vite seems to properly treeshake the 99.9%\* of the root imports, but it might be a problem with other bundlers, in which case import from one of the export paths. | ||
\* There is one small namespace (Result) that it does not seem to be able to treeshake, but this is regardless of where you import it from, unless you use direct imports everywhere. |
235943
45