rename the role to frontend-extensions
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -28,7 +28,7 @@ async function main() {
|
||||
if (
|
||||
pkgRole === 'frontend-plugin' ||
|
||||
pkgRole === 'web-library' ||
|
||||
pkgRole === 'frontend-extensions-bundle'
|
||||
pkgRole === 'frontend-extensions'
|
||||
) {
|
||||
const depKeys = Object.keys(pkg.packageJson.dependencies);
|
||||
if (depKeys.findIndex(d => d.includes('@material-ui')) !== -1) {
|
||||
|
||||
@@ -45,7 +45,7 @@ const roleRules = [
|
||||
'frontend-plugin',
|
||||
'web-library',
|
||||
'frontend-plugin-module',
|
||||
'frontend-extensions-bundle',
|
||||
'frontend-extensions',
|
||||
],
|
||||
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-extensions-bundle',
|
||||
'frontend-extensions',
|
||||
'backend-plugin',
|
||||
'node-library',
|
||||
'backend-plugin-module',
|
||||
@@ -67,7 +67,7 @@ const roleRules = [
|
||||
targetRole: [
|
||||
'frontend-plugin',
|
||||
'frontend-plugin-module',
|
||||
'frontend-extensions-bundle',
|
||||
'frontend-extensions',
|
||||
],
|
||||
except: [
|
||||
// TODO(freben): Address these
|
||||
|
||||
Reference in New Issue
Block a user