|
@@ -9,7 +9,7 @@ const TARO_MQTT_URL = '/mqtt'; // 使用相对路径,由 nginx 代理转发
|
|
|
const rootDir = path.join(__dirname, '..'); // 项目根目录
|
|
const rootDir = path.join(__dirname, '..'); // 项目根目录
|
|
|
|
|
|
|
|
|
|
|
|
|
-execSync(`taro build --type h5`, { cwd: rootDir, stdio: 'inherit', env: { ...process.env, TARO_API_URL, TARO_MQTT_URL } }, (error, stdout, stderr) => {
|
|
|
|
|
|
|
+execSync(`npx taro build --type h5`, { cwd: rootDir, stdio: 'inherit', env: { ...process.env, TARO_API_URL, TARO_MQTT_URL } }, (error, stdout, stderr) => {
|
|
|
if (error) {
|
|
if (error) {
|
|
|
console.error(`Error executing command: ${error.message}`);
|
|
console.error(`Error executing command: ${error.message}`);
|
|
|
return;
|
|
return;
|