Revert "added the frontend-extensions package role"

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-08-13 14:41:20 +02:00
parent 115d684716
commit e910e572e0
31 changed files with 86 additions and 357 deletions
@@ -25,11 +25,7 @@ async function main() {
for (const pkg of packages) {
pkgRole = pkg.packageJson.backstage?.role;
if (
pkgRole === 'frontend-plugin' ||
pkgRole === 'web-library' ||
pkgRole === 'frontend-extensions'
) {
if (pkgRole === 'frontend-plugin' || pkgRole === 'web-library') {
const depKeys = Object.keys(pkg.packageJson.dependencies);
if (depKeys.findIndex(d => d.includes('@material-ui')) !== -1) {
const eslintrcPath = join(pkg.dir, '.eslintrc.js');
+2 -13
View File
@@ -41,12 +41,7 @@ const roleRules = [
},
{
sourceRole: ['backend-plugin', 'node-library', 'backend-plugin-module'],
targetRole: [
'frontend-plugin',
'web-library',
'frontend-plugin-module',
'frontend-extensions',
],
targetRole: ['frontend-plugin', 'web-library'],
message: `Package SOURCE_NAME with backend role SOURCE_ROLE has a dependency on package TARGET_NAME with frontend role TARGET_ROLE, which is not permitted`,
},
{
@@ -54,8 +49,6 @@ const roleRules = [
targetRole: [
'frontend-plugin',
'web-library',
'frontend-plugin-module',
'frontend-extensions',
'backend-plugin',
'node-library',
'backend-plugin-module',
@@ -64,11 +57,7 @@ const roleRules = [
},
{
sourceRole: ['frontend-plugin', 'web-library'],
targetRole: [
'frontend-plugin',
'frontend-plugin-module',
'frontend-extensions',
],
targetRole: 'frontend-plugin',
except: [
// TODO(freben): Address these
'@backstage/plugin-api-docs',