This is an automated email from the ASF dual-hosted git repository.
michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 2e4ccffc11 fix: Add TypeScript declaration file generation to
@apache-superset/core package (#35002)
2e4ccffc11 is described below
commit 2e4ccffc1141f0aed2b6f2dac9c0649ba2677b68
Author: Michael S. Molina <[email protected]>
AuthorDate: Thu Sep 4 12:59:43 2025 -0300
fix: Add TypeScript declaration file generation to @apache-superset/core
package (#35002)
---
superset-frontend/packages/superset-core/package.json | 10 +++++-----
superset-frontend/packages/superset-core/tsconfig.json | 4 +++-
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/superset-frontend/packages/superset-core/package.json
b/superset-frontend/packages/superset-core/package.json
index 674fa81526..f7c5865f64 100644
--- a/superset-frontend/packages/superset-core/package.json
+++ b/superset-frontend/packages/superset-core/package.json
@@ -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": {
diff --git a/superset-frontend/packages/superset-core/tsconfig.json
b/superset-frontend/packages/superset-core/tsconfig.json
index 3ce1be03ce..a84e6817ce 100644
--- a/superset-frontend/packages/superset-core/tsconfig.json
+++ b/superset-frontend/packages/superset-core/tsconfig.json
@@ -10,7 +10,9 @@
"baseUrl": ".",
"module": "esnext",
"moduleResolution": "node",
- "skipLibCheck": true
+ "skipLibCheck": true,
+ "target": "es2020",
+ "esModuleInterop": true
},
"include": ["src/**/*.ts*"],
"exclude": ["lib"]