@strapi/strapi 4.10.2-alpha.0 → 4.10.2
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.
|
@@ -106,12 +106,30 @@ const primaryProcess = async ({ distDir, appDir, build, isTSProject, watchAdmin,
|
|
|
106
106
|
cluster.fork();
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
const workerProcess = ({ appDir, distDir, watchAdmin, polling, isTSProject }) => {
|
|
110
|
-
const strapiInstance = strapi({
|
|
109
|
+
const workerProcess = async ({ appDir, distDir, watchAdmin, polling, isTSProject }) => {
|
|
110
|
+
const strapiInstance = await strapi({
|
|
111
111
|
distDir,
|
|
112
112
|
autoReload: true,
|
|
113
113
|
serveAdminPanel: !watchAdmin,
|
|
114
|
-
});
|
|
114
|
+
}).load();
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* TypeScript automatic type generation upon dev server restart
|
|
118
|
+
* Its implementation, configuration and behavior can change in future releases
|
|
119
|
+
* @experimental
|
|
120
|
+
*/
|
|
121
|
+
const shouldGenerateTypeScriptTypes = strapiInstance.config.get('typescript.autogenerate', false);
|
|
122
|
+
|
|
123
|
+
if (shouldGenerateTypeScriptTypes) {
|
|
124
|
+
// This is run in an uncaught promise on purpose so that it doesn't block Strapi startup
|
|
125
|
+
// NOTE: We should probably add some configuration options to manage the file structure output or the verbosity level
|
|
126
|
+
tsUtils.generators.generateSchemasDefinitions({
|
|
127
|
+
strapi: strapiInstance,
|
|
128
|
+
outDir: appDir,
|
|
129
|
+
verbose: false,
|
|
130
|
+
silent: true,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
115
133
|
|
|
116
134
|
const adminWatchIgnoreFiles = strapiInstance.config.get('admin.watchIgnoreFiles', []);
|
|
117
135
|
watchFileChanges({
|
|
@@ -179,6 +197,7 @@ function watchFileChanges({ appDir, strapiInstance, watchIgnoreFiles, polling })
|
|
|
179
197
|
'**/*.db*',
|
|
180
198
|
'**/exports/**',
|
|
181
199
|
'**/dist/**',
|
|
200
|
+
'**/*.d.ts',
|
|
182
201
|
...watchIgnoreFiles,
|
|
183
202
|
],
|
|
184
203
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/strapi",
|
|
3
|
-
"version": "4.10.2
|
|
3
|
+
"version": "4.10.2",
|
|
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",
|
|
@@ -81,19 +81,19 @@
|
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@koa/cors": "3.4.3",
|
|
83
83
|
"@koa/router": "10.1.1",
|
|
84
|
-
"@strapi/admin": "4.10.2
|
|
85
|
-
"@strapi/data-transfer": "4.10.2
|
|
86
|
-
"@strapi/database": "4.10.2
|
|
87
|
-
"@strapi/generate-new": "4.10.2
|
|
88
|
-
"@strapi/generators": "4.10.2
|
|
89
|
-
"@strapi/logger": "4.10.2
|
|
90
|
-
"@strapi/permissions": "4.10.2
|
|
91
|
-
"@strapi/plugin-content-manager": "4.10.2
|
|
92
|
-
"@strapi/plugin-content-type-builder": "4.10.2
|
|
93
|
-
"@strapi/plugin-email": "4.10.2
|
|
94
|
-
"@strapi/plugin-upload": "4.10.2
|
|
95
|
-
"@strapi/typescript-utils": "4.10.2
|
|
96
|
-
"@strapi/utils": "4.10.2
|
|
84
|
+
"@strapi/admin": "4.10.2",
|
|
85
|
+
"@strapi/data-transfer": "4.10.2",
|
|
86
|
+
"@strapi/database": "4.10.2",
|
|
87
|
+
"@strapi/generate-new": "4.10.2",
|
|
88
|
+
"@strapi/generators": "4.10.2",
|
|
89
|
+
"@strapi/logger": "4.10.2",
|
|
90
|
+
"@strapi/permissions": "4.10.2",
|
|
91
|
+
"@strapi/plugin-content-manager": "4.10.2",
|
|
92
|
+
"@strapi/plugin-content-type-builder": "4.10.2",
|
|
93
|
+
"@strapi/plugin-email": "4.10.2",
|
|
94
|
+
"@strapi/plugin-upload": "4.10.2",
|
|
95
|
+
"@strapi/typescript-utils": "4.10.2",
|
|
96
|
+
"@strapi/utils": "4.10.2",
|
|
97
97
|
"bcryptjs": "2.4.3",
|
|
98
98
|
"boxen": "5.1.2",
|
|
99
99
|
"chalk": "4.1.2",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"node": ">=14.19.1 <=18.x.x",
|
|
143
143
|
"npm": ">=6.0.0"
|
|
144
144
|
},
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "a02b19866a3bcc1f30c2395698afae6e9c3e0515"
|
|
146
146
|
}
|