Fix fetch:samples script after kwargs merge (#5272)
* Fix fetch:samples script after kwargs merge * Second instance * Better fix back to before #5249
This commit is contained in:
		@ -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",
 | 
			
		||||
 | 
			
		||||
@ -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)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user