@certivu/cli 1.2.0 → 1.2.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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -263,7 +263,7 @@ async function signCommand(filePath, flags) {
|
|
|
263
263
|
const msg = e instanceof Error ? e.message : String(e);
|
|
264
264
|
die(`Sign failed: ${msg}`);
|
|
265
265
|
}
|
|
266
|
-
const outPath = flags.output ?? (filePath.replace(/(\.[^.]+)$/,
|
|
266
|
+
const outPath = flags.output ?? (filePath.replace(/(\.[^.]+)$/, ".signed$1") || `${filePath}.signed${(0, import_node_path2.extname)(filePath)}`);
|
|
267
267
|
try {
|
|
268
268
|
(0, import_node_fs2.writeFileSync)(outPath, result.watermarkedContent);
|
|
269
269
|
} catch {
|