@tscircuit/cli 0.0.73 → 0.0.75
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/bun.lockb +0 -0
- package/dist/cli.js +10 -6
- package/lib/export-fns/export-gerbers.ts +5 -1
- package/package.json +2 -2
|
@@ -31,12 +31,15 @@ export const exportGerbersToFile = async (
|
|
|
31
31
|
)
|
|
32
32
|
|
|
33
33
|
console.log(kleur.gray("[soup to gerber json]..."))
|
|
34
|
-
const gerber_layer_cmds = convertSoupToGerberCommands(soup
|
|
34
|
+
const gerber_layer_cmds = convertSoupToGerberCommands(soup, {
|
|
35
|
+
flip_y_axis: true,
|
|
36
|
+
})
|
|
35
37
|
|
|
36
38
|
console.log(kleur.gray("[soup to drl json]..."))
|
|
37
39
|
const drill_cmds = convertSoupToExcellonDrillCommands({
|
|
38
40
|
soup,
|
|
39
41
|
is_plated: true,
|
|
42
|
+
flip_y_axis: true,
|
|
40
43
|
})
|
|
41
44
|
|
|
42
45
|
console.log(kleur.gray("[stringify gerber json]..."))
|
|
@@ -48,6 +51,7 @@ export const exportGerbersToFile = async (
|
|
|
48
51
|
|
|
49
52
|
console.log(kleur.gray("[writing gerbers to tmp dir]..."))
|
|
50
53
|
const tempDir = Path.join(".tscircuit", "tmp-gerber-export")
|
|
54
|
+
fs.rmSync(tempDir, { recursive: true, force: true })
|
|
51
55
|
fs.mkdirSync(tempDir, { recursive: true })
|
|
52
56
|
for (const [fileName, fileContents] of Object.entries(gerber_file_contents)) {
|
|
53
57
|
const filePath = Path.join(tempDir, fileName)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tscircuit/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Command line tool for developing, publishing and installing tscircuit circuits",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@edge-runtime/primitives": "^4.1.0",
|
|
37
37
|
"@hono/node-server": "^1.8.2",
|
|
38
|
-
"@tscircuit/builder": "1.5.
|
|
38
|
+
"@tscircuit/builder": "1.5.69",
|
|
39
39
|
"@tscircuit/react-fiber": "^1.0.35",
|
|
40
40
|
"archiver": "^7.0.1",
|
|
41
41
|
"axios": "^1.6.7",
|