Needle Engine

Changes between version 3.39.0-alpha and 3.39.0-alpha.1
Files changed (1) hide show
  1. plugins/vite/build-pipeline.js +2 -2
plugins/vite/build-pipeline.js CHANGED
@@ -95,9 +95,9 @@
95
95
  const files = readdirSync(outputDirectory).filter(f => f.endsWith(".glb") || f.endsWith(".gltf"));
96
96
  log(files.length + " file(s) to process");
97
97
 
98
- const cmd = "npm run transform --prefix " + installPath;
98
+ const cmd = `needle-gltf transform "${outputDirectory}"`;
99
99
  log("Running command \"" + cmd + "\" at " + process.cwd() + "...");
100
- const sub = exec(cmd);
100
+ const sub = exec(cmd, { cwd: installPath });
101
101
  sub.stdout.on('data', data => {
102
102
  if (data.length <= 0) return;
103
103
  // ensure that it doesnt end with a newline