Skip to content

Commit 3da5498

Browse files
author
fern
committed
SDK Generation
1 parent d1c5a00 commit 3da5498

File tree

217 files changed

+2736
-5280
lines changed

Some content is hidden

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

217 files changed

+2736
-5280
lines changed

.github/workflows/ci.yml

Lines changed: 70 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,73 @@ name: ci
33
on: [push]
44

55
jobs:
6-
compile:
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- name: Checkout repo
11-
uses: actions/checkout@v4
12-
13-
- name: Set up node
14-
uses: actions/setup-node@v3
15-
16-
- name: Compile
17-
run: yarn && yarn build
18-
19-
test:
20-
runs-on: ubuntu-latest
21-
22-
steps:
23-
- name: Checkout repo
24-
uses: actions/checkout@v4
25-
26-
- name: Set up node
27-
uses: actions/setup-node@v3
28-
29-
- name: Compile
30-
run: yarn && yarn test
31-
32-
publish:
33-
needs: [ compile, test ]
34-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
35-
runs-on: ubuntu-latest
36-
steps:
37-
- name: Checkout repo
38-
uses: actions/checkout@v4
39-
- name: Set up node
40-
uses: actions/setup-node@v3
41-
- name: Install dependencies
42-
run: yarn install
43-
- name: 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 }}
6+
compile:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repo
11+
uses: actions/checkout@v4
12+
13+
- name: Set up node
14+
uses: actions/setup-node@v3
15+
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@v4
18+
19+
- name: Install dependencies
20+
run: pnpm install
21+
22+
- name: Compile
23+
run: pnpm build
24+
25+
test:
26+
runs-on: ubuntu-latest
27+
28+
steps:
29+
- name: Checkout repo
30+
uses: actions/checkout@v4
31+
32+
- name: Set up node
33+
uses: actions/setup-node@v3
34+
35+
- name: Install pnpm
36+
uses: pnpm/action-setup@v4
37+
38+
- name: Install dependencies
39+
run: pnpm install
40+
41+
- name: Test
42+
run: pnpm test
43+
44+
publish:
45+
needs: [compile, test]
46+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
47+
runs-on: ubuntu-latest
48+
steps:
49+
- name: Checkout repo
50+
uses: actions/checkout@v4
51+
52+
- name: Set up node
53+
uses: actions/setup-node@v3
54+
55+
- name: Install pnpm
56+
uses: pnpm/action-setup@v4
57+
58+
- name: Install dependencies
59+
run: pnpm install
60+
61+
- name: Build
62+
run: pnpm build
63+
64+
- name: Publish to npm
65+
run: |
66+
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
67+
if [[ ${GITHUB_REF} == *alpha* ]]; then
68+
npm publish --access public --tag alpha
69+
elif [[ ${GITHUB_REF} == *beta* ]]; then
70+
npm publish --access public --tag beta
71+
else
72+
npm publish --access public
73+
fi
74+
env:
75+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.prettierignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
dist
2+
*.tsbuildinfo
3+
_tmp_*
4+
*.tmp
5+
.tmp/
6+
*.log
7+
.DS_Store
8+
Thumbs.db
9+

LICENSE

Lines changed: 0 additions & 189 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For support with this library, please reach out to your Anduril representative.
2828

2929
## Reference
3030

31-
A full reference for this library is available [here](https://github.com/anduril/lattice-sdk-javascript/blob/HEAD/./reference.md).
31+
A full reference for this library is available [here](https://github.com/fern-api/lattice-sdk-javascript/blob/HEAD/./reference.md).
3232

3333
## Usage
3434

jest.config.mjs

Lines changed: 0 additions & 42 deletions
This file was deleted.

package.json

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "@anduril-industries/lattice-sdk",
3-
"version": "2.3.0",
3+
"version": "0.0.1",
44
"private": false,
5-
"repository": "github:anduril/lattice-sdk-javascript",
6-
"license": "See LICENSE",
5+
"repository": "github:fern-api/lattice-sdk-javascript",
76
"type": "commonjs",
87
"main": "./dist/cjs/index.js",
98
"module": "./dist/esm/index.mjs",
@@ -31,23 +30,18 @@
3130
],
3231
"scripts": {
3332
"format": "prettier . --write --ignore-unknown",
34-
"build": "yarn build:cjs && yarn build:esm",
33+
"build": "pnpm build:cjs && pnpm build:esm",
3534
"build:cjs": "tsc --project ./tsconfig.cjs.json",
3635
"build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
37-
"test": "jest --config jest.config.mjs",
38-
"test:unit": "jest --selectProjects unit",
39-
"test:browser": "jest --selectProjects browser",
40-
"test:wire": "jest --selectProjects wire"
36+
"test": "vitest",
37+
"test:unit": "vitest --project unit",
38+
"test:wire": "vitest --project wire"
4139
},
4240
"devDependencies": {
4341
"webpack": "^5.97.1",
4442
"ts-loader": "^9.5.1",
45-
"jest": "^29.7.0",
46-
"@jest/globals": "^29.7.0",
47-
"@types/jest": "^29.5.14",
48-
"ts-jest": "^29.3.4",
49-
"jest-environment-jsdom": "^29.7.0",
50-
"msw": "^2.8.4",
43+
"vitest": "^3.2.4",
44+
"msw": "2.11.2",
5145
"@types/node": "^18.19.70",
5246
"prettier": "^3.4.2",
5347
"typescript": "~5.7.2"
@@ -58,7 +52,7 @@
5852
"path": false,
5953
"stream": false
6054
},
61-
"packageManager": "[email protected]",
55+
"packageManager": "[email protected]",
6256
"engines": {
6357
"node": ">=18.0.0"
6458
},

0 commit comments

Comments
 (0)