Skip to content

Commit

Permalink
don't check local blueprints.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Aug 14, 2023
1 parent 353e8d5 commit 88fcb87
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion generators/base/generator-base-blueprint.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -505,7 +506,7 @@ export default class JHipsterBaseBlueprintGenerator<
extraOptions: ComposeOptions = {},
): Promise<G | undefined> {
blueprint = normalizeBlueprintName(blueprint);
if (!this.skipChecks) {
if (!this.skipChecks && blueprint !== LOCAL_BLUEPRINT_PACKAGE_NAMESPACE) {
this._checkBlueprint(blueprint);
}

Expand Down
1 change: 1 addition & 0 deletions generators/base/support/constants.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const LOCAL_BLUEPRINT_PACKAGE_NAMESPACE = '@jhipster/generator-jhipster-local';

0 comments on commit 88fcb87

Please sign in to comment.