diff --git a/.eslintrc.json b/.eslintrc.json index b9677dd37732..dbf42fdbf41a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -54,6 +54,7 @@ "rules": { "default-param-last": "off", "import/no-unresolved": [2, { "ignore": ["^#[\\w\\d/\\-]+$"] }], + "import/prefer-default-export": "off", "prettier/prettier": "error", "prefer-regex-literals": "off", "linebreak-style": 0, diff --git a/generators/base/generator-base-blueprint.mts b/generators/base/generator-base-blueprint.mts index 9dad28449ae5..eb9610307cb8 100644 --- a/generators/base/generator-base-blueprint.mts +++ b/generators/base/generator-base-blueprint.mts @@ -30,6 +30,7 @@ import { PRIORITY_NAMES } from './priorities.mjs'; import { BaseGeneratorDefinition, GenericTaskGroup } from './tasks.mjs'; import { JHipsterGeneratorFeatures, JHipsterGeneratorOptions } from './api.mjs'; import CoreGenerator from '../base-core/generator-base.mjs'; +import { LOCAL_BLUEPRINT_PACKAGE_NAMESPACE } from './support/constants.mjs'; /** * Base class that contains blueprints support. @@ -505,7 +506,7 @@ export default class JHipsterBaseBlueprintGenerator< extraOptions: ComposeOptions = {}, ): Promise { blueprint = normalizeBlueprintName(blueprint); - if (!this.skipChecks) { + if (!this.skipChecks && blueprint !== LOCAL_BLUEPRINT_PACKAGE_NAMESPACE) { this._checkBlueprint(blueprint); } diff --git a/generators/base/support/constants.mts b/generators/base/support/constants.mts new file mode 100644 index 000000000000..7cc3f237e279 --- /dev/null +++ b/generators/base/support/constants.mts @@ -0,0 +1 @@ +export const LOCAL_BLUEPRINT_PACKAGE_NAMESPACE = '@jhipster/generator-jhipster-local';