@tscircuit/cli 0.1.1915 → 0.1.1916
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/cli/main.js +1 -1
- package/package.json +1 -1
package/dist/cli/main.js
CHANGED
|
@@ -315897,7 +315897,7 @@ var exportSnippet = async ({
|
|
|
315897
315897
|
const projectDir = path69.dirname(filePath);
|
|
315898
315898
|
const outputBaseName = path69.basename(filePath).replace(/\.[^.]+$/, "");
|
|
315899
315899
|
const outputFileName = `${outputBaseName}${OUTPUT_EXTENSIONS[format]}`;
|
|
315900
|
-
const outputDestination = path69.join(projectDir, outputPath ?? outputFileName);
|
|
315900
|
+
const outputDestination = outputPath && path69.isAbsolute(outputPath) ? outputPath : path69.join(projectDir, outputPath ?? outputFileName);
|
|
315901
315901
|
if (format === "kicad-library") {
|
|
315902
315902
|
try {
|
|
315903
315903
|
const result = await convertToKicadLibrary({
|