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 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
 
@@ -268,31 +268,28 @@ function setupScripts() {
268
268
  }
269
269
 
270
270
  async function ensureCoreFiles() {
271
- if (jetpack.exists('src/_config.yml')) {
272
- return;
273
- }
274
-
275
- logger.log('No src/_config.yml found. Creating default config file...');
276
-
277
- // Files that must exist BEFORE the gulpfile loads. Several task modules
278
- // (sass/distribute/imagemin) read these at module top-level, so a fresh
279
- // consumer can't even invoke `gulp defaults` without them.
280
- const coreFiles = [
281
- 'src/_config.yml',
282
- 'config/ultimate-jekyll-manager.json',
283
- ];
284
-
285
- coreFiles.forEach((relPath) => {
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
- // Inject new config into config variable
293
- config = Manager.getConfig('project');
287
+ // Inject new config into config variable
288
+ config = Manager.getConfig('project');
289
+ }
294
290
 
295
- // Run gulp defaults task since this is likely the first run
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
 
@@ -1,6 +1,5 @@
1
1
  # ========== Default Values ==========
2
2
  # Github Token
3
- # Get token at: https://github.com/settings/tokens
4
3
  GH_TOKEN=""
5
4
 
6
5
  # Backend Manager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultimate-jekyll-manager",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Ultimate Jekyll dependency manager",
5
5
  "main": "dist/index.js",
6
6
  "exports": {