Rename build directory to build-command so it doesn't get ignored (#16523)

This commit is contained in:
Ben Irvin 2023-04-28 08:27:31 +02:00 committed by GitHub
parent 2b77c4ac88
commit 01c02b51b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 2 additions and 5 deletions

View File

@ -90,7 +90,6 @@ pids
logs
results
build
!**/lib/commands/actions/build
node_modules
.node_history
package-lock.json

View File

@ -98,5 +98,3 @@ __tests__
jest.config.js
testApp
coverage
!**/lib/commands/actions/build

View File

@ -11,5 +11,5 @@ module.exports = ({ command }) => {
.command('build')
.option('--no-optimization', 'Build the admin app without optimizing assets')
.description('Build the strapi admin app')
.action(getLocalScript('build'));
.action(getLocalScript('build-command')); // build-command dir to avoid problems with 'build' being commonly ignored
};

View File

@ -5,7 +5,7 @@ const { Command } = require('commander');
const strapiCommands = {
'admin/create-user': require('./actions/admin/create-user/command'),
'admin/reset-user-password': require('./actions/admin/reset-user-password/command'),
build: require('./actions/build/command'),
build: require('./actions/build-command/command'), // in 'build-command' to avoid problems with 'build' being commonly ignored
'configuration/dump': require('./actions/configuration/dump/command'),
'configuration/restore': require('./actions/configuration/restore/command'),
console: require('./actions/console/command'),