brew install nodeChange to this directory before running the scripts:
cd kiotaInstall the dependencies:
npm iGenerate the TypeScript SDK:
npm run generateAdd 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"
}
}
EOFBuild the package:
npm run buildThe package is ready to be published!
See example.