permachine 0.9.1 → 0.9.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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -8
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -6306,22 +6306,17 @@ async function scanForMergeOperations(machineName, cwd = process.cwd()) {
6306
6306
  if (hasFilters(basename)) {
6307
6307
  const result = matchFilters(basename, context);
6308
6308
  shouldProcess = result.matches;
6309
- const operation = createMergeOperation(file, machineName, cwd);
6310
- if (operation && operation.basePath) {
6311
- baseFilesWithMachineFiles.add(operation.basePath);
6312
- }
6313
6309
  } else if (isLegacyFilename(basename, machineName)) {
6314
6310
  shouldProcess = true;
6315
- const operation = createMergeOperation(file, machineName, cwd);
6316
- if (operation && operation.basePath) {
6317
- baseFilesWithMachineFiles.add(operation.basePath);
6318
- }
6319
6311
  }
6320
6312
  if (shouldProcess) {
6321
6313
  const operation = createMergeOperation(file, machineName, cwd);
6322
6314
  if (operation) {
6323
6315
  operations.push(operation);
6324
6316
  processedOutputs.add(operation.outputPath);
6317
+ if (operation.basePath) {
6318
+ baseFilesWithMachineFiles.add(operation.basePath);
6319
+ }
6325
6320
  }
6326
6321
  }
6327
6322
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permachine",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Automatically merge machine-specific config files with base configs using git hooks",
5
5
  "type": "module",
6
6
  "bin": {