You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/06/30 17:33:55 UTC

(superset) branch master updated: build(embedded-sdk): remove test files and related files from build artifact to be published (#41584)

This is an automated email from the ASF dual-hosted git repository.

hainenber 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 95d688fb057 build(embedded-sdk): remove test files and related files from build artifact to be published (#41584)
95d688fb057 is described below

commit 95d688fb057857129240cd50cca966e41c7382c2
Author: Đỗ Trọng Hải <41...@users.noreply.github.com>
AuthorDate: Wed Jul 1 00:33:49 2026 +0700

    build(embedded-sdk): remove test files and related files from build artifact to be published (#41584)
---
 superset-embedded-sdk/babel.config.js | 1 +
 superset-embedded-sdk/package.json    | 2 +-
 superset-embedded-sdk/tsconfig.json   | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/superset-embedded-sdk/babel.config.js b/superset-embedded-sdk/babel.config.js
index 63f0c0b1562..1c5f2757625 100644
--- a/superset-embedded-sdk/babel.config.js
+++ b/superset-embedded-sdk/babel.config.js
@@ -20,4 +20,5 @@
 module.exports = {
   presets: ["@babel/preset-typescript", "@babel/preset-env"],
   sourceMaps: true,
+  ignore: ["**/*.test.ts"],
 };
diff --git a/superset-embedded-sdk/package.json b/superset-embedded-sdk/package.json
index c62bc194fd6..591204d4cc1 100644
--- a/superset-embedded-sdk/package.json
+++ b/superset-embedded-sdk/package.json
@@ -22,7 +22,7 @@
   "module": "lib/index.js",
   "types": "dist/index.d.ts",
   "scripts": {
-    "build": "tsc && babel src --out-dir lib --extensions '.ts,.tsx' && webpack --mode production",
+    "build": "tsc && babel src --out-dir lib --extensions '.ts' && webpack --mode production",
     "ci:release": "node ./release-if-necessary.js",
     "test": "vitest --run --dir src"
   },
diff --git a/superset-embedded-sdk/tsconfig.json b/superset-embedded-sdk/tsconfig.json
index 8a8e31a18d3..599acf62ce3 100644
--- a/superset-embedded-sdk/tsconfig.json
+++ b/superset-embedded-sdk/tsconfig.json
@@ -23,6 +23,7 @@
   ],
 
   "exclude": [
+    "src/**/*.test.ts",
     "dist",
     "lib",
     "node_modules"