diff --git a/projects/bp-strapi/package.json b/projects/bp-strapi/package.json index c41929a89..b51b87efb 100755 --- a/projects/bp-strapi/package.json +++ b/projects/bp-strapi/package.json @@ -7,8 +7,8 @@ "develop": "cross-env ENV_PATH=./config/env/development/.env strapi develop", "develop:test": "cross-env ENV_PATH=./e2e/test.env strapi develop", "start": "cross-env ENV_PATH=./config/env/production/.env strapi start", - "build": "cross-env ENV_PATH=./config/env/development/.env strapi build", - "build:prod": "cross-env ENV_PATH=./config/env/production/.env strapi build", + "build": "rm -rf ./dist && cross-env ENV_PATH=./config/env/development/.env strapi build", + "build:prod": "rm -rf ./dist && cross-env ENV_PATH=./config/env/production/.env strapi build", "test-db": "docker run -p 5432:5432 -e POSTGRES_PASSWORD=password -e POSTGRES_DB=bpgallery postgres", "strapi": "strapi", "debug": "cross-env ENV_PATH=./config/env/development/.env node --inspect debug.js",