@fuzzle/opencode-accountant 0.13.3-next.1 → 0.13.4-next.1
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/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23639,6 +23639,14 @@ async function executeImports(fileResults, directory, pendingDir, doneDir, hledg
|
|
|
23639
23639
|
const destDir = path9.dirname(destPath);
|
|
23640
23640
|
ensureDirectory(destDir);
|
|
23641
23641
|
fs10.renameSync(csvFile, destPath);
|
|
23642
|
+
if (csvFile.endsWith("-filtered.csv")) {
|
|
23643
|
+
const originalCsv = csvFile.replace(/-filtered\.csv$/, ".csv");
|
|
23644
|
+
if (fs10.existsSync(originalCsv)) {
|
|
23645
|
+
const originalRelative = path9.relative(pendingDir, originalCsv);
|
|
23646
|
+
const originalDest = path9.join(doneDir, originalRelative);
|
|
23647
|
+
fs10.renameSync(originalCsv, originalDest);
|
|
23648
|
+
}
|
|
23649
|
+
}
|
|
23642
23650
|
}
|
|
23643
23651
|
return {
|
|
23644
23652
|
success: true,
|
package/package.json
CHANGED