diff --git a/package.json b/package.json index 1382284..a1561ff 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,12 @@ "version": "2.0.0-alpha1", "license": "GPL-3.0+", "author": "Rodrigo Tomé ", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", + "exports": { + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } + }, "repository": { "type": "git", "url": "git+https://github.com/RodrigoTomeES/astro-rename.git"