Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch typespec-python over to js #3013

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .chronus/changes/remove_tsx-2025-0-16-14-52-40.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
changeKind: fix
packages:
- "@azure-tools/typespec-python"
---

Remove tsx from `@azure-tools/typespec-python`
13 changes: 6 additions & 7 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"clean": "rimraf ./dist ./temp ./venv ./node_modules",
"build": "tsc -p .",
"watch": "tsc -p . --watch",
"install": "tsx ./scripts/run-python3.ts ./scripts/install.py",
"prepare": "tsx ./scripts/run-python3.ts ./scripts/prepare.py",
"lint": "tsx ./scripts/eng/lint.ts",
"install": "node ./dist/scripts/run-python3.js ./scripts/install.py",
"prepare": "node ./dist/scripts/run-python3.js ./scripts/prepare.py",
"lint": "node ./dist/scripts/eng/lint.js",
"lint:fix": "eslint . --fix --ext .ts",
"format": "npx prettier **/*.ts --write && tsx ./scripts/eng/format.ts",
"regenerate": "tsx ./scripts/eng/regenerate.ts",
"test": "tsx ./scripts/eng/run-tests.ts"
"format": "npx prettier **/*.ts --write && node ./dist/scripts/eng/format.js",
"regenerate": "node ./dist/scripts/eng/regenerate.js",
"test": "node ./dist/scripts/eng/run-tests.js"
},
"files": [
"dist/**",
Expand All @@ -59,7 +59,6 @@
"dependencies": {
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "~4.19.1",
"@typespec/http-client-python": "~0.6.5",
"fs-extra": "~11.2.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-python/scripts/run-python3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// path resolution algorithm as AutoRest so that the behavior
// is fully consistent (and also supports AUTOREST_PYTHON_EXE).
//
// Invoke it like so: "tsx run-python3.ts script.py"
// Invoke it like so: "node ./dist/scripts/run-python3.ts script.py"

import cp from "child_process";
import { patchPythonPath } from "./system-requirements.js";
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading