Skip to content

Commit 2560b64

Browse files
committed
SDK regeneration
1 parent c3cc9f0 commit 2560b64

File tree

388 files changed

+6082
-2387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+6082
-2387
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
- name: Compile
1717
run: yarn && yarn build
18-
18+
1919
test:
2020
runs-on: ubuntu-latest
2121

@@ -27,22 +27,31 @@ jobs:
2727
uses: actions/setup-node@v3
2828

2929
- name: Compile
30-
run: yarn && yarn test
31-
30+
run: yarn && yarn test
31+
3232
publish:
3333
needs: [ compile, test ]
3434
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
3535
runs-on: ubuntu-latest
36-
3736
steps:
3837
- name: Checkout repo
3938
uses: actions/checkout@v3
40-
4139
- name: Set up node
4240
uses: actions/setup-node@v3
43-
4441
- name: Install dependencies
4542
run: yarn install
46-
4743
- name: Build
48-
run: yarn build
44+
run: yarn build
45+
46+
- name: Publish to npm
47+
run: |
48+
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
49+
if [[ ${GITHUB_REF} == *alpha* ]]; then
50+
npm publish --access public --tag alpha
51+
elif [[ ${GITHUB_REF} == *beta* ]]; then
52+
npm publish --access public --tag beta
53+
else
54+
npm publish --access public
55+
fi
56+
env:
57+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
11
node_modules
22
.DS_Store
3-
/dist
4-
/Client.d.ts
5-
/Client.js
6-
/environments.d.ts
7-
/environments.js
8-
/index.d.ts
9-
/index.js
10-
/api
11-
/core
12-
/errors
13-
/serialization
3+
/dist

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
22
src
3+
tests
34
.gitignore
45
.github
56
.fernignore

jest.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/** @type {import('ts-jest').JestConfigWithTsJest} */
1+
/** @type {import('jest').Config} */
22
module.exports = {
33
preset: "ts-jest",
44
testEnvironment: "node",
5-
};
5+
};

package.json

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
2-
"name": "",
3-
"version": "0.1.2",
2+
"name": "beehiiv",
3+
"version": "0.1.3",
44
"private": false,
5-
"repository": "https://github.com/fern-demo/beehiiv-typescript",
5+
"repository": "https://github.com/beehiiv/typescript-sdk",
66
"main": "./index.js",
77
"types": "./index.d.ts",
88
"scripts": {
9-
"format": "prettier --write 'src/**/*.ts'",
9+
"format": "prettier . --write --ignore-unknown",
1010
"build": "tsc",
1111
"prepack": "cp -rv dist/. .",
1212
"test": "jest"
1313
},
1414
"dependencies": {
1515
"url-join": "4.0.1",
16-
"form-data": "4.0.0",
16+
"form-data": "^4.0.0",
17+
"formdata-node": "^6.0.3",
1718
"node-fetch": "2.7.0",
1819
"qs": "6.11.2",
1920
"js-base64": "3.7.2"
@@ -22,11 +23,17 @@
2223
"@types/url-join": "4.0.1",
2324
"@types/qs": "6.9.8",
2425
"@types/node-fetch": "2.6.9",
25-
"jest": "^29.7.0",
26-
"@types/jest": "^29.5.5",
27-
"ts-jest": "^29.1.1",
26+
"jest": "29.7.0",
27+
"@types/jest": "29.5.5",
28+
"ts-jest": "29.1.1",
29+
"jest-environment-jsdom": "29.7.0",
2830
"@types/node": "17.0.33",
2931
"prettier": "2.7.1",
3032
"typescript": "4.6.4"
33+
},
34+
"browser": {
35+
"fs": false,
36+
"os": false,
37+
"path": false
3138
}
32-
}
39+
}

0 commit comments

Comments
 (0)