diff --git a/package.json b/package.json index 3acf628fd9c..9d1dddb4780 100644 --- a/package.json +++ b/package.json @@ -3,9 +3,9 @@ "version": "5.1.0-preview.1", "description": "The Python extension for generators in AutoRest.", "scripts": { - "prepare": "python prepare.py", - "start": "python start.py", - "install": "python install.py" + "prepare": "node run-python3.js prepare.py", + "start": "node run-python3.js start.py", + "install": "node run-python3.js install.py" }, "repository": { "type": "git", @@ -22,9 +22,11 @@ "url": "https://github.com/Azure/autorest.python/issues" }, "homepage": "https://github.com/Azure/autorest.python/blob/autorestv3/README.md", + "dependencies": { + "@azure-tools/extension": "^3.0.249" + }, "devDependencies": { "@autorest/autorest": "^3.0.0", - "@azure-tools/extension": "^3.0.249", "@microsoft.azure/autorest.testserver": "2.10.42" }, "files": [ diff --git a/run-python3.js b/run-python3.js index 713f7e42aa8..f9d6ee99a11 100644 --- a/run-python3.js +++ b/run-python3.js @@ -12,7 +12,9 @@ const extension = require("@azure-tools/extension"); async function runPython3(scriptName) { const command = ["python"]; await extension.updatePythonPath(command); - cp.execSync(command[0] + " " + scriptName); + cp.execSync(command[0] + " " + scriptName, { + stdio: [0, 1, 2] + }); } runPython3(process.argv[2]).catch(err => {