Skip to content

Commit

Permalink
Symlink openscad instead of hard link, add @types/node
Browse files Browse the repository at this point in the history
  • Loading branch information
rianadon committed Jan 1, 2024
1 parent 504b657 commit 95e0b43
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
17 changes: 13 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"@sveltejs/kit": "^1.5.0",
"@threlte/preprocess": "^0.0.2",
"@types/concaveman": "^1.1.3",
"@types/node": "^20.10.6",
"@types/three": "^0.149.0",
"@unocss/extractor-svelte": "^0.52.7",
"@unocss/reset": "^0.52.7",
Expand Down
4 changes: 2 additions & 2 deletions src/model_gen/download-openscad.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { execFileSync, spawnSync } from 'child_process'
import { accessSync, constants, createWriteStream, existsSync, linkSync, lstatSync, readdirSync, rmSync, writeFileSync } from 'fs'
import { accessSync, constants, createWriteStream, existsSync, lstatSync, symlinkSync, writeFileSync } from 'fs'
import { join } from 'path'
import * as readline from 'readline/promises'
import { Readable } from 'stream'
Expand All @@ -21,7 +21,7 @@ const rl = readline.createInterface({ input: process.stdin, output: process.stdo
function linkOpenSCAD(path: string) {
console.log(`Linking ${path} to ${destination}`)
try {
linkSync(path, destination)
symlinkSync(path, destination)
} catch (e) {
console.log()
console.error(` Could not link OpenSCAD: ${e}`)
Expand Down

0 comments on commit 95e0b43

Please sign in to comment.