Skip to content

Commit

Permalink
Fix fetch:samples script after kwargs merge (#5272)
Browse files Browse the repository at this point in the history
* Fix fetch:samples script after kwargs merge

* Second instance

* Better fix back to before #5249
  • Loading branch information
pierremtb authored Feb 5, 2025
1 parent df86c93 commit a277cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"fmt": "prettier --write ./src *.ts *.json *.js ./e2e ./packages",
"fmt-check": "prettier --check ./src *.ts *.json *.js ./e2e ./packages",
"fetch:wasm": "./get-latest-wasm-bundle.sh",
"fetch:samples": "echo \"Fetching latest KCL samples...\" && curl -o public/kcl-samples-manifest-fallback.json https://raw.githubusercontent.com/KittyCAD/kcl-samples/achalmers/kwargs-line/manifest.json",
"fetch:samples": "echo \"Fetching latest KCL samples...\" && curl -o public/kcl-samples-manifest-fallback.json https://raw.githubusercontent.com/KittyCAD/kcl-samples/main/manifest.json",
"isomorphic-copy-wasm": "(copy src/wasm-lib/pkg/wasm_lib_bg.wasm public || cp src/wasm-lib/pkg/wasm_lib_bg.wasm public)",
"build:wasm-dev": "yarn wasm-prep && (cd src/wasm-lib && wasm-pack build --dev --target web --out-dir pkg && cargo test -p kcl-lib export_bindings) && yarn isomorphic-copy-wasm && yarn fmt",
"build:wasm": "yarn wasm-prep && cd src/wasm-lib && wasm-pack build --release --target web --out-dir pkg && cargo test -p kcl-lib export_bindings && cd ../.. && yarn isomorphic-copy-wasm && yarn fmt",
Expand Down
9 changes: 1 addition & 8 deletions src/lang/kclSamples.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,7 @@ try {
console.log(e)
}

child_process.spawnSync('git', [
'clone',
'--single-branch',
'--branch',
'achalmers/kwargs-line',
URL_GIT_KCL_SAMPLES,
DIR_KCL_SAMPLES,
])
child_process.spawnSync('git', ['clone', URL_GIT_KCL_SAMPLES, DIR_KCL_SAMPLES])

// @ts-expect-error
let files = await fs.readdir(DIR_KCL_SAMPLES)
Expand Down

0 comments on commit a277cce

Please sign in to comment.