diff --git a/packages/amis-core/package.json b/packages/amis-core/package.json index 046bb570d..b1b065b84 100644 --- a/packages/amis-core/package.json +++ b/packages/amis-core/package.json @@ -4,6 +4,7 @@ "description": "amis-core", "main": "lib/index.js", "module": "esm/index.js", + "types": "lib/index.d.ts", "author": "fex", "license": "Apache-2.0", "devDependencies": { diff --git a/packages/amis-formula/package.json b/packages/amis-formula/package.json index 006f00285..093e8e305 100644 --- a/packages/amis-formula/package.json +++ b/packages/amis-formula/package.json @@ -3,6 +3,7 @@ "version": "2.0.0-rc.20", "description": "负责 amis 里面的表达式实现,内置公式,编辑器等", "main": "lib/index.js", + "types": "lib/index.d.ts", "scripts": { "build": "npm run clean-dist && NODE_ENV=production rollup -c && npm run genDoc && npm run declaration ", "lib": "npm run clean-dist && NODE_ENV=lib rollup -c", diff --git a/packages/amis-ui/package.json b/packages/amis-ui/package.json index b84360c0a..f687266a5 100644 --- a/packages/amis-ui/package.json +++ b/packages/amis-ui/package.json @@ -2,6 +2,7 @@ "name": "amis-ui", "main": "lib/index.js", "module": "esm/index.js", + "types": "lib/index.d.ts", "version": "2.0.0-rc.20", "description": "", "scripts": { diff --git a/packages/amis/package.json b/packages/amis/package.json index 420facc0d..7c8c16760 100644 --- a/packages/amis/package.json +++ b/packages/amis/package.json @@ -4,6 +4,7 @@ "description": "一种MIS页面生成工具", "main": "lib/index.js", "module": "esm/index.js", + "types": "lib/index.d.ts", "scripts": { "test": "jest", "update-snapshot": "jest --updateSnapshot",