@vdhewei/xlsx-template-lib 1.6.4 → 1.6.5
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/bin.js +3 -3
- package/dist/bin.js.map +1 -1
- package/dist/bin.mjs +3 -3
- package/dist/bin.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -4499,7 +4499,7 @@ async function main() {
|
|
|
4499
4499
|
opts.remove = options.remove || false;
|
|
4500
4500
|
const compiledBuffer = await compileAll(buffer, opts);
|
|
4501
4501
|
console.log(import_chalk2.default.green("\u2713 Compilation completed"));
|
|
4502
|
-
const outputFile = options.save ||
|
|
4502
|
+
const outputFile = path3.join(options.save || process.cwd(), generateOutputFilename(xlsxFile));
|
|
4503
4503
|
console.log(import_chalk2.default.gray(`Saving to: ${outputFile}`));
|
|
4504
4504
|
await fs4.writeFile(outputFile, compiledBuffer);
|
|
4505
4505
|
console.log(import_chalk2.default.green("\u2713 Excel file compiled successfully!"));
|
|
@@ -4546,7 +4546,7 @@ async function main() {
|
|
|
4546
4546
|
level: 9
|
|
4547
4547
|
}
|
|
4548
4548
|
});
|
|
4549
|
-
const outputFile = options.save ||
|
|
4549
|
+
const outputFile = path3.join(options.save || process.cwd(), generateOutputFilename(xlsxFile));
|
|
4550
4550
|
console.log(import_chalk2.default.gray(`Saving to: ${outputFile}`));
|
|
4551
4551
|
await fs4.writeFile(outputFile, outputBuffer);
|
|
4552
4552
|
console.log(import_chalk2.default.green("\u2713 Excel template rendered successfully!"));
|
|
@@ -4593,7 +4593,7 @@ async function main() {
|
|
|
4593
4593
|
console.log(import_chalk2.default.gray(`Loading file: ${filePath}`));
|
|
4594
4594
|
const buffer = await fs4.readFile(filePath);
|
|
4595
4595
|
const updatedBuffer = await addMultipleRulesToSheet(buffer, rules);
|
|
4596
|
-
const outputFile = options.save ||
|
|
4596
|
+
const outputFile = path3.join(options.save || process.cwd(), generateOutputFilename(xlsxFile));
|
|
4597
4597
|
console.log(import_chalk2.default.gray(`Saving to: ${outputFile}`));
|
|
4598
4598
|
await fs4.writeFile(outputFile, updatedBuffer);
|
|
4599
4599
|
console.log(import_chalk2.default.green("\u2713 All rules added successfully!"));
|