Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Kiota

Documentation

Prerequisites

Node 18+:

brew install node

Scripts

Change to this directory before running the scripts:

cd kiota

Install

Install the dependencies:

npm i

Generate

Generate the TypeScript SDK:

npm run generate

Add package.json to SDK:

cat <<EOF > sdk/package.json
{
  "name": "@your-org/sdk",
  "version": "0.1.0",
  "type": "module",
  "main": "dist/apiClient.js",
  "files": [
    "dist"
  ],
  "dependencies": {
    "@microsoft/kiota-bundle": "1.0.0-preview.99"
  }
}
EOF

Build

Build the package:

npm run build

The package is ready to be published!

Usage

See example.