Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
7dc0810
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
2617cdc
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
b18720e
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
ff09f0f
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
8c8e410
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
1f3ef04
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
234348a
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
5d8d65d
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
21d9663
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
8ab0a16
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
6eeb06d
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
50279e4
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
c10ec4c
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
783847a
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
94adb45
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
b8cdbad
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
5702c5a
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
6d356f6
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
ab0b6ce
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
b2884cd
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
1bc60f9
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
d196c7c
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
6276291
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
8f818c5
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
5ae6f2f
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
cc7add2
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
728dd46
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
aeabf6f
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
e2f66e4
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
1bb435f
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
ab29b46
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
fab6a26
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
6b7c63c
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
0606529
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
0ac48a8
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
b34103a
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
f8180b0
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
72405e7
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
6661b07
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
b6692ec
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
e07e2fe
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
8f1f42a
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
6750b3e
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
decdb12
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
133573d
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
377c7b1
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
2d0d3fb
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
5c6a1fd
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
f9acade
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
a929c49
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
a2e8d43
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
7a87ef4
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
b5b7620
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
246e88c
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
538f0f8
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
24d50b2
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
8edcbd2
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
231488a
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
869da05
chore: retrigger flaky CodeQL on TSM-08
Justintime50 Aug 11, 2026
7826546
TSM-90: cut over to source-generated types
Justintime50 Aug 10, 2026
8737c23
TSM-90: remove tracked root types output
Justintime50 Aug 10, 2026
eb6b339
TSM-90: fix CI typescript job after types/demo removal
Justintime50 Aug 10, 2026
2b2ff68
TSM-91 restore types declarations for CI jobs
Justintime50 Aug 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ dist
/docs
examples
node_modules
types
types/demo
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: EASYPOST_TEST_API_KEY=123 EASYPOST_PROD_API_KEY=123 just test-node-compatibility
# typescript checks that the our Typescript definitions can be compiled without errors
# typescript checks that TypeScript declarations and compatibility tests compile without errors
typescript:
runs-on: ubuntu-latest
steps:
Expand All @@ -44,11 +44,7 @@ jobs:
- uses: actions/setup-node@v7
with:
node-version: 24
- run: |
cd types/demo
npm install
cd ../../
just install typescript
- run: just install typescript
lint:
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 0 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
!/prop_types.js
!/README.md
!/src/**/*
!/types/**/*
!/UPGRADE_GUIDE.md

# Here we exclude files that we pulled in from above that should be removed
.DS_Store
types/.eslintrc
types/demo
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ examples
official/fixtures/
package-lock.json
style_guides/
types/
vendor/
venv/
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"homepage": "https://easypost.com",
"exports": {
".": {
"types": "./types/index.d.ts",
"types": "./dist/types/index.d.ts",
"import": "./dist/easypost.mjs",
"require": "./dist/easypost.js"
}
},
"main": "./dist/easypost.js",
"module": "./dist/easypost.mjs",
"types": "./types/index.d.ts",
"types": "./dist/types/index.d.ts",
"repository": {
"type": "git",
"url": "git://github.com/easypost/easypost-node.git"
Expand All @@ -31,12 +31,12 @@
"formatCheck": "prettier --check .",
"lint": "eslint --ext .js,.ts --ignore-pattern 'examples/**' .",
"lintFix": "eslint --ext .js,.ts --ignore-pattern 'examples/**' --fix .",
"prepublishOnly": "npm run clean && npm run build && npm run test && npm run lint && npm run formatCheck",
"prepublishOnly": "npm run clean && npm run build && npm run typescript:declarations && npm run test && npm run lint && npm run formatCheck",
"scan": "npx audit-ci -m --config ./audit-ci.jsonc",
"test": "npm run typescript:test && cross-env NODE_ENV=test vitest run",
"test:node-compatibility": "cross-env NODE_ENV=test node ./test/node_compatibility",
"typescript": "npm run typescript:declarations && npm run typescript:source && npm run typescript:compat",
"typescript:declarations": "npx tsc -p tsconfig.json",
"typescript:declarations": "rm -rf ./dist/types && npx tsc -p tsconfig.json",
"typescript:test": "npx tsc -p tsconfig.test-services.json",
"typescript:source": "npx tsc -p tsconfig.build.json",
"typescript:compat": "npx tsc -p tsconfig.type-tests.json",
Expand Down
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import EasyPostClient from './easypost';

export default EasyPostClient;
2 changes: 1 addition & 1 deletion test/services/claim.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type ShipmentServiceFactory from '../../src/services/shipment_service';
import Fixture from '../helpers/fixture';
import * as setupPolly from '../helpers/setup_polly';

/** @typedef {import("../../types/EasyPost").default} Client */
/** @typedef {import("../../src/easypost").default} Client */

type ClaimTestCreateInput = Parameters<ReturnType<typeof ClaimServiceFactory>['create']>[0];
type ShipmentTestCreateInput = Parameters<ReturnType<typeof ShipmentServiceFactory>['create']>[0];
Expand Down
12 changes: 10 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"noEmit": true
"allowJs": true,
"checkJs": false,
"noImplicitAny": false,
"declaration": true,
"emitDeclarationOnly": true,
"rootDir": "./src",
"outDir": "./dist/types",
"noEmit": false
},
"include": ["types"]
"include": ["src/**/*.js", "src/**/*.ts"],
"exclude": ["dist/**", "docs/**", "coverage/**", "node_modules/**"]
}