@fecommunity/reactpress-server 4.0.0-beta.17 → 4.0.0-beta.18
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/reactpress-server.js +17 -0
- package/package.json +2 -2
package/bin/reactpress-server.js
CHANGED
|
@@ -196,6 +196,23 @@ function startWithNode() {
|
|
|
196
196
|
console.log(`[ReactPress Server] Using existing REACTPRESS_ORIGINAL_CWD: ${process.env.REACTPRESS_ORIGINAL_CWD}`);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
+
const siteRoot = process.env.REACTPRESS_ORIGINAL_CWD;
|
|
200
|
+
for (const localSiteModule of [
|
|
201
|
+
path.join(serverDir, '..', 'cli', 'out', 'core', 'services', 'local-site.js'),
|
|
202
|
+
path.join(serverDir, '..', 'out', 'core', 'services', 'local-site.js'),
|
|
203
|
+
]) {
|
|
204
|
+
if (!siteRoot || !fs.existsSync(localSiteModule)) continue;
|
|
205
|
+
try {
|
|
206
|
+
const { ensureBundledPlugins } = require(localSiteModule);
|
|
207
|
+
if (ensureBundledPlugins(siteRoot)) {
|
|
208
|
+
console.log('[ReactPress Server] Seeded bundled plugins into project');
|
|
209
|
+
}
|
|
210
|
+
} catch {
|
|
211
|
+
// ignore — plugins seeding is best-effort
|
|
212
|
+
}
|
|
213
|
+
break;
|
|
214
|
+
}
|
|
215
|
+
|
|
199
216
|
// Change to the server directory
|
|
200
217
|
process.chdir(serverDir);
|
|
201
218
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fecommunity/reactpress-server",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.18",
|
|
4
4
|
"deprecated": "Bundled in @fecommunity/reactpress CLI from v3.1. Run `npx @fecommunity/reactpress init` for new projects.",
|
|
5
5
|
"description": "ReactPress NestJS REST API (deprecated). Bundled in @fecommunity/reactpress CLI from v3.1. Headless CMS for articles, media, plugins, and themes",
|
|
6
6
|
"author": "fecommunity",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"node": ">=18"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@fecommunity/reactpress-toolkit": "4.0.0-beta.
|
|
49
|
+
"@fecommunity/reactpress-toolkit": "4.0.0-beta.18",
|
|
50
50
|
"@nestjs/cli": "^6.9.0",
|
|
51
51
|
"@nestjs/common": "^6.7.2",
|
|
52
52
|
"@nestjs/config": "^0.6.3",
|