-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from midday-ai/release-please--branches--main-…
…-changes--next--components--engine release: 0.1.0-alpha.23
- Loading branch information
Showing
24 changed files
with
305 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ jobs: | |
bash ./bin/check-release-environment | ||
env: | ||
NPM_TOKEN: ${{ secrets.MIDDAY_NPM_TOKEN || secrets.NPM_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
".": "0.1.0-alpha.22" | ||
".": "0.1.0-alpha.23" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 13 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/midday%2Fmidday-6971ae58e4c74321bff6eb92e399bb01bed09a4e4445bb6eef5941e14908625f.yml | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/midday%2Fmidday-8189c00a2b211a7ee12ec84f3104cf7cd3e8d45b490100748937593453e95ff8.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,24 +5,24 @@ Other package managers may work but are not officially supported for development | |
|
||
To set up the repository, run: | ||
|
||
```bash | ||
yarn | ||
yarn build | ||
```sh | ||
$ yarn | ||
$ yarn build | ||
``` | ||
|
||
This will install all the required dependencies and build output files to `dist/`. | ||
|
||
## Modifying/Adding code | ||
|
||
Most of the SDK is generated code, and any modified code will be overridden on the next generation. The | ||
`src/lib/` and `examples/` directories are exceptions and will never be overridden. | ||
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may | ||
result in merge conflicts between manual patches and changes from the generator. The generator will never | ||
modify the contents of the `src/lib/` and `examples/` directories. | ||
|
||
## Adding and running examples | ||
|
||
All files in the `examples/` directory are not modified by the Stainless generator and can be freely edited or | ||
added to. | ||
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to. | ||
|
||
```bash | ||
```ts | ||
// add an example to examples/<your-example>.ts | ||
|
||
#!/usr/bin/env -S npm run tsn -T | ||
|
@@ -41,38 +41,38 @@ If you’d like to use the repository from source, you can either install from g | |
|
||
To install via git: | ||
|
||
```bash | ||
npm install git+ssh://[email protected]:midday-ai/engine-sdk.git | ||
```sh | ||
$ npm install git+ssh://[email protected]:midday-ai/engine-sdk.git | ||
``` | ||
|
||
Alternatively, to link a local copy of the repo: | ||
|
||
```bash | ||
```sh | ||
# Clone | ||
git clone https://www.github.com/midday-ai/engine-sdk | ||
cd engine-sdk | ||
$ git clone https://www.github.com/midday-ai/engine-sdk | ||
$ cd engine-sdk | ||
|
||
# With yarn | ||
yarn link | ||
cd ../my-package | ||
yarn link @midday-ai/engine | ||
$ yarn link | ||
$ cd ../my-package | ||
$ yarn link @midday-ai/engine | ||
|
||
# With pnpm | ||
pnpm link --global | ||
cd ../my-package | ||
pnpm link -—global @midday-ai/engine | ||
$ pnpm link --global | ||
$ cd ../my-package | ||
$ pnpm link -—global @midday-ai/engine | ||
``` | ||
|
||
## Running tests | ||
|
||
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests. | ||
|
||
```bash | ||
npx prism mock path/to/your/openapi.yml | ||
```sh | ||
$ npx prism mock path/to/your/openapi.yml | ||
``` | ||
|
||
```bash | ||
yarn run test | ||
```sh | ||
$ yarn run test | ||
``` | ||
|
||
## Linting and formatting | ||
|
@@ -82,14 +82,14 @@ This repository uses [prettier](https://www.npmjs.com/package/prettier) and | |
|
||
To lint: | ||
|
||
```bash | ||
yarn lint | ||
```sh | ||
$ yarn lint | ||
``` | ||
|
||
To format and fix all lint issues automatically: | ||
|
||
```bash | ||
yarn fix | ||
```sh | ||
$ yarn fix | ||
``` | ||
|
||
## Publishing and releases | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ if [[ lenErrors -gt 0 ]]; then | |
fi | ||
|
||
echo "The environment is ready to push releases!" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@midday-ai/engine", | ||
"version": "0.1.0-alpha.22", | ||
"version": "0.1.0-alpha.23", | ||
"description": "The official TypeScript library for the Midday API", | ||
"author": "Midday <[email protected]>", | ||
"types": "dist/index.d.ts", | ||
|
@@ -21,7 +21,7 @@ | |
"prepare": "if ./scripts/utils/check-is-in-git-install.sh; then ./scripts/build; fi", | ||
"tsn": "ts-node -r tsconfig-paths/register", | ||
"lint": "./scripts/lint", | ||
"fix": "eslint --fix --ext ts,js ." | ||
"fix": "./scripts/format" | ||
}, | ||
"dependencies": { | ||
"@types/node": "^18.11.18", | ||
|
@@ -41,6 +41,7 @@ | |
"eslint": "^8.49.0", | ||
"eslint-plugin-prettier": "^5.0.1", | ||
"eslint-plugin-unused-imports": "^3.0.0", | ||
"iconv-lite": "^0.6.3", | ||
"jest": "^29.4.0", | ||
"prettier": "^3.0.0", | ||
"ts-jest": "^29.1.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ echo "==> Starting mock server with URL ${URL}" | |
|
||
# Run prism mock on the given spec | ||
if [ "$1" == "--daemon" ]; then | ||
npm exec --package=@stainless-api/[email protected].4 -- prism mock "$URL" &> .prism.log & | ||
npm exec --package=@stainless-api/[email protected].5 -- prism mock "$URL" &> .prism.log & | ||
|
||
# Wait for server to come online | ||
echo -n "Waiting for server" | ||
|
@@ -37,5 +37,5 @@ if [ "$1" == "--daemon" ]; then | |
|
||
echo | ||
else | ||
npm exec --package=@stainless-api/[email protected].4 -- prism mock "$URL" | ||
npm exec --package=@stainless-api/[email protected].5 -- prism mock "$URL" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.