Skip to content

Commit 2dde424

Browse files
committed
adding tsup
1 parent 0a4a058 commit 2dde424

File tree

21 files changed

+2596
-215
lines changed

21 files changed

+2596
-215
lines changed

.genignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tsconfig.json
2+
3+

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ id: 521af75f-d011-41f9-a5ff-9f8033773118
33
management:
44
docChecksum: a16089f06495dd5f7de1f5121d72ec45
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.488.0
7-
generationVersion: 2.506.0
8-
releaseVersion: 2.1.11
9-
configChecksum: 6110142ef342c1d51bd542a38c650667
6+
speakeasyVersion: 1.495.1
7+
generationVersion: 2.515.4
8+
releaseVersion: 2.2.1
9+
configChecksum: 8f895bd14d372b2800021914dc852e74
1010
repoURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts.git
1111
installationURL: https://github.com/speakeasy-api/speakeasy-code-samples-ts
1212
published: true
1313
features:
1414
typescript:
1515
additionalDependencies: 0.1.0
16-
core: 3.19.0
16+
core: 3.20.0
1717
deepObjectParams: 0.1.0
1818
defaultEnabledRetries: 0.1.0
1919
devContainers: 2.90.0
2020
enumUnions: 0.1.0
2121
envVarSecurityUsage: 0.1.2
22-
globalSecurity: 2.82.12
22+
globalSecurity: 2.82.13
2323
globalSecurityCallbacks: 0.1.0
2424
globalSecurityFlattening: 0.1.0
2525
globalServerURLs: 2.82.4
@@ -95,6 +95,7 @@ generatedFiles:
9595
- src/sdk/codesamples.ts
9696
- src/sdk/index.ts
9797
- src/sdk/sdk.ts
98+
- src/types/async.ts
9899
- src/types/blobs.ts
99100
- src/types/constdatetime.ts
100101
- src/types/enums.ts
@@ -103,7 +104,6 @@ generatedFiles:
103104
- src/types/operations.ts
104105
- src/types/rfcdate.ts
105106
- src/types/streams.ts
106-
- tsconfig.json
107107
examples:
108108
getCodeSamples:
109109
"":

.speakeasy/gen.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,23 @@ generation:
99
optionalPropertyRendering: withExample
1010
useClassNamesForArrayFields: true
1111
fixes:
12-
nameResolutionDec2023: false
12+
nameResolutionFeb2025: false
1313
parameterOrderingFeb2024: false
1414
requestResponseComponentNamesFeb2024: false
15+
securityFeb2025: false
1516
auth:
1617
oAuth2ClientCredentialsEnabled: false
1718
oAuth2PasswordEnabled: false
1819
typescript:
19-
version: 2.1.11
20+
version: 2.2.1
2021
additionalDependencies:
22+
'@types/react': ^18.3.18
2123
dependencies:
22-
'@emotion/react': ^11.14.0
24+
'@emotion/css': ^11.13.5
2325
codehike: ^1.0.4
24-
devDependencies: {}
26+
devicons-react: ^1.4.0
27+
devDependencies:
28+
tsup: ^8.3.6
2529
peerDependencies: {}
2630
additionalPackageJSON: {}
2731
author: Speakeasy

.speakeasy/workflow.lock

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.488.0
1+
speakeasyVersion: 1.495.1
22
sources:
33
speakeasy-OAS:
44
sourceNamespace: speakeasy-oas
@@ -13,8 +13,6 @@ targets:
1313
sourceNamespace: speakeasy-oas
1414
sourceRevisionDigest: sha256:ceb63058aef0e2e7f88d746e8356be77e3bf8cb1cdf297aedc1b08ff912abc5f
1515
sourceBlobDigest: sha256:63701f5ff26c0ac6e0ea6e314b9dc7bf7063bf75b72a16206b62050baf740623
16-
codeSamplesNamespace: speakeasy-oas-typescript-code-samples
17-
codeSamplesRevisionDigest: sha256:7b6e59994169e6ffadcc883206b4b2e8d5bd04a69d9d71bc871916edaa94356c
1816
workflow:
1917
workflowVersion: 1.0.0
2018
speakeasyVersion: latest

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,9 @@ In some rare cases, the SDK can fail to get a response from the server or even m
531531

532532
You can override the default server globally by passing a server name to the `server: keyof typeof ServerList` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
533533

534-
| Name | Server |
535-
| ------ | ----------------------------------- |
536-
| `prod` | `https://api.prod.speakeasyapi.dev` |
534+
| Name | Server | Description |
535+
| ------ | ----------------------------------- | ----------- |
536+
| `prod` | `https://api.prod.speakeasyapi.dev` | |
537537

538538
#### Example
539539

example/src/App.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ import {
66
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
77
import "./App.css";
88
import { SpeakeasyCodeSamplesCore } from "@speakeasyapi/code-samples/core";
9+
import { SpeakeasyCodeSamples } from "@speakeasyapi/code-samples";
910

1011
function App() {
12+
console.log({ SpeakeasyCodeSamples });
13+
1114
const queryClient = new QueryClient();
1215
const coreSdk = new SpeakeasyCodeSamplesCore({
1316
apiKey: import.meta.env.VITE_SPEAKEASY_API_KEY,
@@ -18,7 +21,7 @@ function App() {
1821
<QueryClientProvider client={queryClient}>
1922
<SpeakeasyCodeSamplesProvider client={coreSdk}>
2023
<h1 className="">Speakeasy Code Samples</h1>
21-
<div style={{ width: "660px" }}>
24+
<div style={{ width: "660px", marginInline: "auto" }}>
2225
<CodeSample
2326
title={CodeSampleFilenameTitle}
2427
operation={{ operationId: "getPassageText" }}

jsr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "@speakeasyapi/code-samples",
5-
"version": "2.1.11",
5+
"version": "2.2.1",
66
"exports": {
77
".": "./src/index.ts",
88
"./models/errors": "./src/models/errors/index.ts",

makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.PHONY: dev
2+
3+
dev:
4+
@echo "👀 Watching for changes..."
5+
@nodemon -x "npm run build || exit 1" -w src -e tsx
6+

0 commit comments

Comments
 (0)