fix: Add TypeScript declaration file generation to @apache-superset/core package (#35002)

This commit is contained in:
Michael S. Molina
2025-09-04 12:59:43 -03:00
committed by GitHub
parent 2e51d02806
commit 2e4ccffc11
2 changed files with 8 additions and 6 deletions

View File

@@ -1,12 +1,11 @@
{
"name": "@apache-superset/core",
"version": "0.0.1-rc2",
"version": "0.0.1-rc3",
"description": "This package contains UI elements, APIs, and utility functions used by Superset.",
"sideEffects": false,
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"files": [
"esm",
"lib"
],
"author": "",
@@ -19,14 +18,15 @@
"@babel/preset-typescript": "^7.26.0",
"@types/react": "^17.0.83",
"install": "^0.13.0",
"npm": "^11.1.0"
"npm": "^11.1.0",
"typescript": "^5.0.0"
},
"peerDependencies": {
"antd": "^5.24.6",
"react": "^17.0.2"
},
"scripts": {
"build": "babel src --out-dir lib --extensions \".ts,.tsx\"",
"build": "babel src --out-dir lib --extensions \".ts,.tsx\" && tsc --emitDeclarationOnly",
"type": "tsc --noEmit"
},
"publishConfig": {

View File

@@ -10,7 +10,9 @@
"baseUrl": ".",
"module": "esnext",
"moduleResolution": "node",
"skipLibCheck": true
"skipLibCheck": true,
"target": "es2020",
"esModuleInterop": true
},
"include": ["src/**/*.ts*"],
"exclude": ["lib"]