@comfanion/workflow 4.36.18 → 4.36.19
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/cli.js +5 -4
- package/package.json +1 -1
- package/src/build-info.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -6,6 +6,7 @@ import inquirer from 'inquirer';
|
|
|
6
6
|
import ora from 'ora';
|
|
7
7
|
import fs from 'fs-extra';
|
|
8
8
|
import path from 'path';
|
|
9
|
+
import crypto from 'crypto';
|
|
9
10
|
import { fileURLToPath } from 'url';
|
|
10
11
|
import { execSync } from 'child_process';
|
|
11
12
|
import yaml from 'js-yaml';
|
|
@@ -293,7 +294,7 @@ program
|
|
|
293
294
|
const oldPkgPath = path.join(vectorizerDir, 'package.json');
|
|
294
295
|
if (await fs.pathExists(oldPkgPath)) {
|
|
295
296
|
const oldPkg = await fs.readFile(oldPkgPath, 'utf8');
|
|
296
|
-
oldPkgHash =
|
|
297
|
+
oldPkgHash = crypto.createHash('md5').update(oldPkg).digest('hex');
|
|
297
298
|
}
|
|
298
299
|
|
|
299
300
|
// Read existing config.yaml for merge
|
|
@@ -342,7 +343,7 @@ program
|
|
|
342
343
|
// Check if package.json changed
|
|
343
344
|
const newPkgPath = path.join(newVectorizerDir, 'package.json');
|
|
344
345
|
const newPkg = await fs.readFile(newPkgPath, 'utf8');
|
|
345
|
-
const newPkgHash =
|
|
346
|
+
const newPkgHash = crypto.createHash('md5').update(newPkg).digest('hex');
|
|
346
347
|
|
|
347
348
|
if (hadVectorizerModules && oldPkgHash === newPkgHash) {
|
|
348
349
|
// Dependencies unchanged - restore cached node_modules
|
|
@@ -620,7 +621,7 @@ program
|
|
|
620
621
|
const oldPkgPath = path.join(vectorizerDir, 'package.json');
|
|
621
622
|
if (await fs.pathExists(oldPkgPath)) {
|
|
622
623
|
const oldPkg = await fs.readFile(oldPkgPath, 'utf8');
|
|
623
|
-
oldPkgHash =
|
|
624
|
+
oldPkgHash = crypto.createHash('md5').update(oldPkg).digest('hex');
|
|
624
625
|
}
|
|
625
626
|
|
|
626
627
|
// Create full backup (unless --no-backup)
|
|
@@ -667,7 +668,7 @@ program
|
|
|
667
668
|
// Check if package.json changed
|
|
668
669
|
const newPkgPath = path.join(newVectorizerDir, 'package.json');
|
|
669
670
|
const newPkg = await fs.readFile(newPkgPath, 'utf8');
|
|
670
|
-
const newPkgHash =
|
|
671
|
+
const newPkgHash = crypto.createHash('md5').update(newPkg).digest('hex');
|
|
671
672
|
|
|
672
673
|
if (hasVectorizerModules && oldPkgHash === newPkgHash) {
|
|
673
674
|
// Dependencies unchanged - restore cached node_modules
|
package/package.json
CHANGED