ultimate-jekyll-manager 1.6.1 → 1.6.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.
- package/CHANGELOG.md +7 -0
- package/dist/commands/setup.js +20 -23
- package/dist/defaults/_.env +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
---
|
|
18
|
+
## [1.6.2] - 2026-06-02
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- **`npx mgr setup` now merges new `.env` keys into existing consumer projects.** Previously, `ensureCoreFiles()` returned early when `src/_config.yml` existed, skipping the `gulp defaults` task that handles `.env` merging. New framework keys (like `BACKEND_MANAGER_OPENAI_API_KEY`) were never added to consumers that had already run setup once.
|
|
23
|
+
|
|
17
24
|
---
|
|
18
25
|
## [1.6.1] - 2026-06-02
|
|
19
26
|
|
package/dist/commands/setup.js
CHANGED
|
@@ -268,31 +268,28 @@ function setupScripts() {
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
async function ensureCoreFiles() {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
const sourcePath = path.join(rootPathPackage, 'dist/defaults', relPath);
|
|
287
|
-
const targetPath = path.join(rootPathProject, relPath);
|
|
288
|
-
jetpack.copy(sourcePath, targetPath, { overwrite: false });
|
|
289
|
-
logger.log(`Copied default ${relPath}`);
|
|
290
|
-
});
|
|
271
|
+
// First-time setup: scaffold core files that must exist before gulp can load
|
|
272
|
+
if (!jetpack.exists('src/_config.yml')) {
|
|
273
|
+
logger.log('No src/_config.yml found. Creating default config file...');
|
|
274
|
+
|
|
275
|
+
const coreFiles = [
|
|
276
|
+
'src/_config.yml',
|
|
277
|
+
'config/ultimate-jekyll-manager.json',
|
|
278
|
+
];
|
|
279
|
+
|
|
280
|
+
coreFiles.forEach((relPath) => {
|
|
281
|
+
const sourcePath = path.join(rootPathPackage, 'dist/defaults', relPath);
|
|
282
|
+
const targetPath = path.join(rootPathProject, relPath);
|
|
283
|
+
jetpack.copy(sourcePath, targetPath, { overwrite: false });
|
|
284
|
+
logger.log(`Copied default ${relPath}`);
|
|
285
|
+
});
|
|
291
286
|
|
|
292
|
-
|
|
293
|
-
|
|
287
|
+
// Inject new config into config variable
|
|
288
|
+
config = Manager.getConfig('project');
|
|
289
|
+
}
|
|
294
290
|
|
|
295
|
-
//
|
|
291
|
+
// Always run gulp defaults — merges new framework keys into .env, .gitignore,
|
|
292
|
+
// CLAUDE.md, and config files without overwriting user values
|
|
296
293
|
await execute('UJ_BUILD_MODE=true npm run gulp -- defaults', { log: true });
|
|
297
294
|
}
|
|
298
295
|
|
package/dist/defaults/_.env
CHANGED