diff --git a/code/addons/essentials/package.json b/code/addons/essentials/package.json index afb37f3424a2..cb61ef08b7fa 100644 --- a/code/addons/essentials/package.json +++ b/code/addons/essentials/package.json @@ -28,22 +28,50 @@ "require": "./dist/index.js", "import": "./dist/index.mjs" }, - "./actions/preview": "./dist/actions/preview.js", + "./actions/preview": { + "types": "./dist/actions/preview.d.ts", + "import": "./dist/actions/preview.mjs", + "require": "./dist/actions/preview.js" + }, "./actions/manager": "./dist/actions/manager.js", - "./backgrounds/preview": "./dist/backgrounds/preview.js", + "./backgrounds/preview": { + "types": "./dist/backgrounds/preview.d.ts", + "import": "./dist/backgrounds/preview.mjs", + "require": "./dist/backgrounds/preview.js" + }, "./backgrounds/manager": "./dist/backgrounds/manager.js", "./controls/manager": "./dist/controls/manager.js", - "./docs/preview": "./dist/docs/preview.js", + "./docs/preview": { + "types": "./dist/docs/preview.d.ts", + "import": "./dist/docs/preview.mjs", + "require": "./dist/docs/preview.js" + }, "./docs/preset": "./dist/docs/preset.js", "./docs/mdx-react-shim": "./dist/docs/mdx-react-shim.js", - "./highlight/preview": "./dist/highlight/preview.js", - "./measure/preview": "./dist/measure/preview.js", + "./highlight/preview": { + "types": "./dist/highlight/preview.d.ts", + "import": "./dist/highlight/preview.mjs", + "require": "./dist/highlight/preview.js" + }, + "./measure/preview": { + "types": "./dist/measure/preview.d.ts", + "import": "./dist/measure/preview.mjs", + "require": "./dist/measure/preview.js" + }, "./measure/manager": "./dist/measure/manager.js", - "./outline/preview": "./dist/outline/preview.js", + "./outline/preview": { + "types": "./dist/outline/preview.d.ts", + "import": "./dist/outline/preview.mjs", + "require": "./dist/outline/preview.js" + }, "./outline/manager": "./dist/outline/manager.js", "./toolbars/manager": "./dist/toolbars/manager.js", "./viewport/manager": "./dist/viewport/manager.js", - "./viewport/preview": "./dist/viewport/preview.js", + "./viewport/preview": { + "types": "./dist/viewport/preview.d.ts", + "import": "./dist/viewport/preview.mjs", + "require": "./dist/viewport/preview.js" + }, "./package.json": "./package.json" }, "main": "dist/index.js",