Skip to content

Commit 9a16da1

Browse files
committed
Release 0.1.1
1 parent e4cf78a commit 9a16da1

File tree

510 files changed

+6287
-7529
lines changed

Some content is hidden

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

510 files changed

+6287
-7529
lines changed

.github/workflows/ci.yml

Lines changed: 5 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

@@ -26,17 +26,14 @@ jobs:
2626
- name: Set up node
2727
uses: actions/setup-node@v3
2828

29-
- name: Test
30-
run: |
31-
yarn
32-
yarn fern test --command='jest --env=node'
33-
yarn fern test --command='jest --env=jsdom'
34-
29+
- name: Compile
30+
run: yarn && yarn test
31+
3532
publish:
3633
needs: [ compile, test ]
3734
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
3835
runs-on: ubuntu-latest
39-
36+
4037
steps:
4138
- name: Checkout repo
4239
uses: actions/checkout@v3

.gitignore

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
node_modules
22
.DS_Store
3-
/dist
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

.npmignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
node_modules
22
src
3-
tests
43
.gitignore
54
.github
65
.fernignore

jest.config.js

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

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{
22
"name": "",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"private": false,
55
"repository": "https://github.com/fern-demo/beehiiv-typescript",
66
"main": "./index.js",
77
"types": "./index.d.ts",
88
"scripts": {
9-
"format": "prettier . --write --ignore-unknown",
9+
"format": "prettier --write 'src/**/*.ts'",
1010
"build": "tsc",
11-
"prepack": "cp -rv dist/. ."
11+
"prepack": "cp -rv dist/. .",
12+
"test": "jest"
1213
},
1314
"dependencies": {
1415
"url-join": "4.0.1",
@@ -21,8 +22,11 @@
2122
"@types/url-join": "4.0.1",
2223
"@types/qs": "6.9.8",
2324
"@types/node-fetch": "2.6.9",
25+
"jest": "^29.7.0",
26+
"@types/jest": "^29.5.5",
27+
"ts-jest": "^29.1.1",
2428
"@types/node": "17.0.33",
2529
"prettier": "2.7.1",
2630
"typescript": "4.6.4"
2731
}
28-
}
32+
}

0 commit comments

Comments
 (0)