diff --git a/packages/hooks/package.json b/packages/hooks/package.json index 1b608b37d..aabc7763d 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -8,6 +8,12 @@ "type": "git", "url": "https://github.com/cloud-pi-native/console" }, + "exports": { + ".": { + "types": "./types/index.d.ts", + "import": "./dist/index.js" + } + }, "main": "dist/index.js", "module": "dist/index.js", "types": "types/index.d.ts", diff --git a/packages/shared/package.json b/packages/shared/package.json index 2946b5ba0..703a35a24 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -8,6 +8,12 @@ "type": "git", "url": "https://github.com/cloud-pi-native/console" }, + "exports": { + ".": { + "types": "./types/index.d.ts", + "import": "./dist/index.js" + } + }, "main": "dist/index.js", "module": "dist/index.js", "types": "types/index.d.ts",