fix(extensions): enforce correct naming conventions (#38167)

This commit is contained in:
Ville Brofeldt
2026-02-23 08:21:35 -08:00
committed by GitHub
parent 6e94a6c21a
commit 40f609fdce
17 changed files with 1118 additions and 167 deletions

View File

@@ -1,4 +1,4 @@
[project]
name = "{{ id }}"
name = "{{ backend_package }}"
version = "{{ version }}"
license = "{{ license }}"

View File

@@ -1 +1 @@
print("{{ name }} extension registered")
print("{{ display_name }} extension registered")

View File

@@ -11,14 +11,15 @@
"menus": {}
},
"moduleFederation": {
"name": "{{ mf_name }}",
"exposes": ["./index"]
}
},
{% endif -%}
{% if include_backend -%}
"backend": {
"entryPoints": ["{{ id }}.entrypoint"],
"files": ["backend/src/{{ id }}/**/*.py"]
"entryPoints": ["{{ backend_entry }}"],
"files": ["backend/src/superset_extensions/{{ backend_name }}/**/*.py"]
},
{% endif -%}
"permissions": []

View File

@@ -39,7 +39,7 @@ module.exports = (env, argv) => {
},
plugins: [
new ModuleFederationPlugin({
name: "{{ id }}",
name: "{{ mf_name }}",
filename: "remoteEntry.[contenthash].js",
exposes: {
"./index": "./src/index.tsx",