diff --git a/package.json b/package.json index 72d561bc5..00fdc2a2d 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,18 @@ "author": "Ryo Igarashi ", "license": "AGPL-3.0", "main": "./dist/index.js", - "module": "./dist/index.mjs", + "exports": { + ".": { "types": "./dist/index.d.ts", + "require": "./dist/index.js", + "import": "./dist/index.mjs" + }, + "./fetch": { + "types": "./dist/index.d.ts", + "require": "./dist/fetch.js", + "import": "./dist/fetch.mjs" + } + }, "scripts": { "test": "npm-run-all test:*", "test:jest": "jest --coverage --config=jest.config.js",