diff options
-rw-r--r-- | package.json | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/package.json b/package.json index e227da3..b49116b 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,16 @@ "browser": "dist/svg.esm.js", "module": "src/main.js", "exports": { - "import": "./src/main.js", - "require": "./dist/svg.node.cjs" + ".": { + "import": { + "default": "./src/main.js", + "types": "./svg.js.d.ts" + }, + "require": { + "default": "./dist/svg.node.cjs", + "types": "./svg.js.d.ts" + } + } }, "files": [ "/dist", |