Skip to content

Add support for calling kiota via standard npx command #6453

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

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

garethj-msft
Copy link
Member

Relies heavily on npm infrastructure and existing code to fix #6442

@garethj-msft garethj-msft requested a review from a team as a code owner April 12, 2025 08:37
@baywet baywet enabled auto-merge (squash) April 14, 2025 16:36

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@@ -65,8 +70,12 @@
"devDependencies": {
"@types/adm-zip": "^0.5.7",
"@types/jest": "^29.5.14",
"eslint": "^9.24.0",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See if these can come from the shared package.json

"glob": "^11.0.1",
"jest": "^29.7.0",
"jest-editor-support": "^32.0.0-beta.1",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove as it didn't work.

"author": "",
"license": "MIT",
"dependencies": {
"@microsoft/kiota": "file:./microsoft-kiota-1.0.0.tgz"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we wildcard this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or add a command line option in the test to force it to be 1.0.0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @garethj-msft, could you share more context on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

npx @microsoft/kiota should run kiota as with typical NPM packages
4 participants