@strapi/strapi 4.0.2 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/strapi.js +0 -1
- package/lib/commands/build.js +3 -4
- package/lib/commands/develop.js +3 -1
- package/package.json +13 -13
package/bin/strapi.js
CHANGED
|
@@ -133,7 +133,6 @@ program
|
|
|
133
133
|
|
|
134
134
|
program
|
|
135
135
|
.command('build')
|
|
136
|
-
.option('--clean', 'Remove the build and .cache folders', false)
|
|
137
136
|
.option('--no-optimization', 'Build the Administration without assets optimization')
|
|
138
137
|
.description('Builds the strapi admin app')
|
|
139
138
|
.action(getLocalScript('build'));
|
package/lib/commands/build.js
CHANGED
|
@@ -12,7 +12,7 @@ const getEnabledPlugins = require('../core/loaders/plugins/get-enabled-plugins')
|
|
|
12
12
|
/**
|
|
13
13
|
* `$ strapi build`
|
|
14
14
|
*/
|
|
15
|
-
module.exports = async ({
|
|
15
|
+
module.exports = async ({ optimization, forceBuild = true }) => {
|
|
16
16
|
const dir = process.cwd();
|
|
17
17
|
|
|
18
18
|
const strapiInstance = strapi({
|
|
@@ -28,9 +28,8 @@ module.exports = async ({ clean, optimization, forceBuild = true }) => {
|
|
|
28
28
|
|
|
29
29
|
console.log(`Building your admin UI with ${green(env)} configuration ...`);
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
31
|
+
// Always remove the .cache and build folders
|
|
32
|
+
await strapiAdmin.clean({ dir });
|
|
34
33
|
|
|
35
34
|
ee({ dir });
|
|
36
35
|
|
package/lib/commands/develop.js
CHANGED
|
@@ -29,7 +29,7 @@ module.exports = async function({ build, watchAdmin, polling, browser }) {
|
|
|
29
29
|
// Don't run the build process if the admin is in watch mode
|
|
30
30
|
if (build && !watchAdmin && serveAdminPanel && !buildExists) {
|
|
31
31
|
try {
|
|
32
|
-
await buildAdmin({
|
|
32
|
+
await buildAdmin({ optimization: false, forceBuild: false });
|
|
33
33
|
} catch (err) {
|
|
34
34
|
process.exit(1);
|
|
35
35
|
}
|
|
@@ -126,6 +126,8 @@ function watchFileChanges({ dir, strapiInstance, watchIgnoreFiles, polling }) {
|
|
|
126
126
|
'**/node_modules',
|
|
127
127
|
'**/node_modules/**',
|
|
128
128
|
'**/plugins.json',
|
|
129
|
+
'**/build',
|
|
130
|
+
'**/build/**',
|
|
129
131
|
'**/index.html',
|
|
130
132
|
'**/public',
|
|
131
133
|
'**/public/**',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/strapi",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -80,16 +80,16 @@
|
|
|
80
80
|
"dependencies": {
|
|
81
81
|
"@koa/cors": "3.1.0",
|
|
82
82
|
"@koa/router": "10.1.1",
|
|
83
|
-
"@strapi/admin": "4.0.
|
|
84
|
-
"@strapi/database": "4.0.
|
|
85
|
-
"@strapi/generate-new": "4.0.
|
|
86
|
-
"@strapi/generators": "4.0.
|
|
87
|
-
"@strapi/logger": "4.0.
|
|
88
|
-
"@strapi/plugin-content-manager": "4.0.
|
|
89
|
-
"@strapi/plugin-content-type-builder": "4.0.
|
|
90
|
-
"@strapi/plugin-email": "4.0.
|
|
91
|
-
"@strapi/plugin-upload": "4.0.
|
|
92
|
-
"@strapi/utils": "4.0.
|
|
83
|
+
"@strapi/admin": "4.0.3",
|
|
84
|
+
"@strapi/database": "4.0.3",
|
|
85
|
+
"@strapi/generate-new": "4.0.3",
|
|
86
|
+
"@strapi/generators": "4.0.3",
|
|
87
|
+
"@strapi/logger": "4.0.3",
|
|
88
|
+
"@strapi/plugin-content-manager": "4.0.3",
|
|
89
|
+
"@strapi/plugin-content-type-builder": "4.0.3",
|
|
90
|
+
"@strapi/plugin-email": "4.0.3",
|
|
91
|
+
"@strapi/plugin-upload": "4.0.3",
|
|
92
|
+
"@strapi/utils": "4.0.3",
|
|
93
93
|
"bcryptjs": "2.4.3",
|
|
94
94
|
"boxen": "5.1.2",
|
|
95
95
|
"chalk": "4.1.2",
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
"supertest": "^6.1.6"
|
|
133
133
|
},
|
|
134
134
|
"engines": {
|
|
135
|
-
"node": ">=12.
|
|
135
|
+
"node": ">=12.22.0 <=16.x.x",
|
|
136
136
|
"npm": ">=6.0.0"
|
|
137
137
|
},
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "48893ae3fc951b618fd8c4fdc6970e623d2c92db"
|
|
139
139
|
}
|