add example package

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-08-09 16:42:10 +02:00
parent 8669210f3b
commit 0f7452c030
30 changed files with 295 additions and 95 deletions
@@ -28,7 +28,7 @@ async function main() {
if (
pkgRole === 'frontend-plugin' ||
pkgRole === 'web-library' ||
pkgRole === 'frontend-extension-bundle'
pkgRole === 'frontend-extensions-bundle'
) {
const depKeys = Object.keys(pkg.packageJson.dependencies);
if (depKeys.findIndex(d => d.includes('@material-ui')) !== -1) {
+3 -3
View File
@@ -45,7 +45,7 @@ const roleRules = [
'frontend-plugin',
'web-library',
'frontend-plugin-module',
'frontend-extension-bundle',
'frontend-extensions-bundle',
],
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`,
},
@@ -55,7 +55,7 @@ const roleRules = [
'frontend-plugin',
'web-library',
'frontend-plugin-module',
'frontend-extension-bundle',
'frontend-extensions-bundle',
'backend-plugin',
'node-library',
'backend-plugin-module',
@@ -67,7 +67,7 @@ const roleRules = [
targetRole: [
'frontend-plugin',
'frontend-plugin-module',
'frontend-extension-bundle',
'frontend-extensions-bundle',
],
except: [
// TODO(freben): Address these