mirror of
https://github.com/strapi/strapi.git
synced 2025-07-23 17:10:08 +00:00
Rename build directory to build-command so it doesn't get ignored (#16523)
This commit is contained in:
parent
2b77c4ac88
commit
01c02b51b4
1
packages/core/strapi/.gitignore
vendored
1
packages/core/strapi/.gitignore
vendored
@ -90,7 +90,6 @@ pids
|
||||
logs
|
||||
results
|
||||
build
|
||||
!**/lib/commands/actions/build
|
||||
node_modules
|
||||
.node_history
|
||||
package-lock.json
|
||||
|
@ -98,5 +98,3 @@ __tests__
|
||||
jest.config.js
|
||||
testApp
|
||||
coverage
|
||||
|
||||
!**/lib/commands/actions/build
|
||||
|
@ -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
|
||||
};
|
@ -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'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user