Skip to content

Commit

Permalink
Remove console.logs, allow viewing core version, update props (#663)
Browse files Browse the repository at this point in the history
* remove extraneous console.log, update props and core

* Update src/hooks/use-run-tsx/construct-circuit.tsx
  • Loading branch information
seveibar authored Feb 10, 2025
1 parent 8bdad02 commit b40ed0d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ test("POST /api/package_releases/get - should find release by package_name_with_
const listResponse = await axios.post("/api/package_releases/list", {
package_name: createdPackage.name,
})
console.log(listResponse.data)

// Get the release using package_name_with_version
const getResponse = await axios.post("/api/package_releases/get", {
Expand Down
46 changes: 38 additions & 8 deletions bun.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@tscircuit/math-utils": "^0.0.10",
"@tscircuit/mm": "^0.0.8",
"@tscircuit/pcb-viewer": "^1.11.12",
"@tscircuit/props": "^0.0.138",
"@tscircuit/props": "^0.0.143",
"@tscircuit/schematic-viewer": "^1.4.3",
"@types/file-saver": "^2.0.7",
"@types/ms": "^0.7.34",
Expand All @@ -76,12 +76,12 @@
"@valtown/codemirror-ts": "^2.2.0",
"@vercel/analytics": "^1.4.1",
"change-case": "^5.4.4",
"circuit-json": "^0.0.135",
"circuit-json": "^0.0.136",
"circuit-json-to-bom-csv": "^0.0.6",
"circuit-json-to-gerber": "^0.0.16",
"circuit-json-to-pnp-csv": "^0.0.6",
"circuit-json-to-tscircuit": "^0.0.4",
"circuit-json-to-readable-netlist": "^0.0.8",
"circuit-json-to-tscircuit": "^0.0.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cmdk": "^1.0.4",
Expand Down Expand Up @@ -130,7 +130,7 @@
"@babel/standalone": "^7.26.2",
"@biomejs/biome": "^1.9.2",
"@playwright/test": "^1.48.0",
"@tscircuit/core": "^0.0.306",
"@tscircuit/core": "^0.0.307",
"@tscircuit/prompt-benchmarks": "^0.0.28",
"@tscircuit/runframe": "^0.0.144",
"@types/babel__standalone": "^7.1.7",
Expand Down
1 change: 0 additions & 1 deletion scripts/generate-image-sizes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const INPUT_DIR = "src/assets/originals"
const OUTPUT_DIR = "public/assets"

async function generateImageSizes() {
console.log("one")
if (!fs.existsSync(INPUT_DIR)) {
fs.mkdirSync(INPUT_DIR, { recursive: true })
}
Expand Down
3 changes: 0 additions & 3 deletions src/components/CodeAndPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ export function CodeAndPreview({ snippet }: Props) {
...(code.match(/export const (\w+) ?=/)?.slice(1) ?? []),
]

console.log(possibleExportNames)

const exportName = possibleExportNames[0]

let entrypointContent: string
Expand All @@ -224,7 +222,6 @@ export function CodeAndPreview({ snippet }: Props) {
"main.tsx": entrypointContent,
}
}, [code, manualEditsFileContent])
console.log(fsMap)

if (!snippet && (urlParams.snippet_id || urlParams.should_create_snippet)) {
return (
Expand Down
4 changes: 4 additions & 0 deletions src/components/EditorNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import { SnippetLink } from "./SnippetLink"
import { TypeBadge } from "./TypeBadge"
import { useUpdateDescriptionDialog } from "./dialogs/edit-description-dialog"
import { useForkSnippetMutation } from "@/hooks/useForkSnippetMutation"
import tscircuitCorePkg from "@tscircuit/core/package.json"

export default function EditorNav({
circuitJson,
Expand Down Expand Up @@ -367,6 +368,9 @@ export default function EditorNav({
<Trash2 className="mr-2 h-3 w-3" />
Delete Snippet
</DropdownMenuItem>
<DropdownMenuItem className="text-xs text-gray-500" disabled>
@tscircuit/core@{tscircuitCorePkg.version}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<Button
Expand Down

0 comments on commit b40ed0d

Please sign in to comment.