Skip to content

Commit

Permalink
ignore files in blueprints.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Jun 4, 2024
1 parent da574ac commit 318d8ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions generators/generate-blueprint/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ import { BLUEPRINT_API_VERSION, NODE_VERSION } from '../generator-constants.js';

const { GENERATOR_PROJECT_NAME, GENERATOR_INIT } = GENERATOR_LIST;

const defaultPublishedFiles = ['generators', '!**/__*', '!**/*.snap', '!**/*.spec.?(c|m)js'];

export default class extends BaseGenerator {
async _beforeQueue() {
if (!this.fromBlueprint) {
Expand Down Expand Up @@ -265,7 +267,7 @@ export default class extends BaseGenerator {
name: `generator-jhipster-${this.jhipsterConfig.baseName}`,
keywords: ['yeoman-generator', 'jhipster-blueprint', BLUEPRINT_API_VERSION],
type: 'module',
files: ['generators'],
files: defaultPublishedFiles,
scripts: {
ejslint: 'ejslint generators/**/*.ejs',
lint: 'eslint .',
Expand Down Expand Up @@ -301,7 +303,7 @@ export default class extends BaseGenerator {
bin: {
[cliName]: 'cli/cli.cjs',
},
files: ['cli', 'generators'],
files: ['cli', ...defaultPublishedFiles],
});
},
addGeneratorJHipsterDependency() {
Expand Down

0 comments on commit 318d8ad

Please sign in to comment.