-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
98 lines (98 loc) · 5.19 KB
/
Copy pathpackage.json
File metadata and controls
98 lines (98 loc) · 5.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"name": "@teralabs/shipstack",
"version": "1.2.0",
"description": "Framework-agnostic, type-safe shipping SDK for USPS, FedEx, and UPS with unified orchestration and edge-ready output.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"repository": {
"type": "git",
"url": "git+https://github.com/Thecodergabe/shipstack.git"
},
"bugs": {
"url": "https://github.com/Thecodergabe/shipstack/issues"
},
"homepage": "https://github.com/Thecodergabe/shipstack#readme",
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
}
},
"files": [
"dist",
"LICENSE",
"README.md",
"docs"
],
"keywords": [
"shipping",
"usps",
"fedex",
"ups",
"logistics",
"api",
"openapi",
"typescript",
"framework-agnostic",
"serverless"
],
"author": "Gabriel Rodriguez",
"license": "ISC",
"packageManager": "npm@10.0.0",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/Thecodergabe"
},
"sideEffects": false,
"engines": {
"node": ">=16.0.0"
},
"scripts": {
"/* --- Build and Lifecycle --- */": "",
"prepare": "npm run build",
"build": "tsup src/index.ts --format esm,cjs --dts --clean",
"test": "vitest run",
"example:server": "npm run build && node examples/shipstack-ui/server.mjs",
"example:ui": "npm --prefix examples/shipstack-ui run dev",
"prepublishOnly": "npm run test && npm run build",
"/* --- Core USPS Generation --- */": "",
"generate:usps:auth": "openapi --input https://developers.usps.com/sites/default/files/apidoc_specs/oauth2_3_update.yaml --output src/usps/auth/generated --client fetch --name UspsAuthSdk",
"generate:usps:rates": "openapi --input https://developers.usps.com/sites/default/files/apidoc_specs/domestic-prices_10.yaml --output src/usps/rates/generated --client fetch --name UspsRatesSdk",
"generate:usps:address": "openapi --input https://developers.usps.com/sites/default/files/apidoc_specs/addresses-v3r2_2.yaml --output src/usps/address/generated --client fetch --name UspsAddressSdk",
"generate:usps:labels": "openapi --input https://developers.usps.com/sites/default/files/apidoc_specs/labels_update_1.yaml --output src/usps/labels/generated --client fetch --name UspsLabelsSdk",
"generate:usps:tracking": "openapi --input https://developers.usps.com/sites/default/files/apidoc_specs/tracking-v3r2_4.yaml --output src/usps/tracking/generated --client fetch --name UspsTrackingSdk",
"generate:usps:intl-rates": "openapi --input https://developers.usps.com/sites/default/files/apidoc_specs/international-prices_4.yaml --output src/usps/international/rates/generated --client fetch --name UspsIntlRatesSdk",
"generate:usps:intl-labels": "openapi --input https://developers.usps.com/sites/default/files/apidoc_specs/international-labels_8.yaml --output src/usps/international/labels/generated --client fetch --name UspsIntlLabelsSdk",
"generate:usps": "npm run generate:usps:auth && npm run generate:usps:rates && npm run generate:usps:address && npm run generate:usps:labels && npm run generate:usps:tracking && npm run generate:usps:intl-rates && npm run generate:usps:intl-labels",
"/* --- Core FedEx Generation --- */": "",
"generate:fedex:address": "openapi --input specs/fedex/address-validation.json --output src/fedex/address/generated --client fetch --name FedexAddressSdk",
"generate:fedex:rates": "openapi --input specs/fedex/rate.json --output src/fedex/rates/generated --client fetch --name FedexRatesSdk",
"generate:fedex:ship": "openapi --input specs/fedex/ship.json --output src/fedex/ship/generated --client fetch --name FedexShipSdk",
"generate:fedex:tracking": "openapi --input specs/fedex/track.json --output src/fedex/tracking/generated --client fetch --name FedexTrackingSdk",
"generate:fedex": "npm run generate:fedex:address && npm run generate:fedex:rates && npm run generate:fedex:ship && npm run generate:fedex:tracking",
"/* --- Core UPS Generation --- */": "",
"generate:ups:auth": "openapi --input specs/ups/OAuthClientCredentials-Ready.yaml --output src/ups/auth/generated --client fetch --name UpsAuthSdk",
"generate:ups:rates": "openapi --input specs/ups/Rating.yaml --output src/ups/rates/generated --client fetch --name UpsRatesSdk",
"generate:ups:ship": "openapi --input specs/ups/Shipping.yaml --output src/ups/ship/generated --client fetch --name UpsShipSdk",
"generate:ups:tracking": "openapi --input specs/ups/Tracking-Ready.yaml --output src/ups/tracking/generated --client fetch --name UpsTrackingSdk",
"generate:ups": "npm run generate:ups:auth && npm run generate:ups:rates && npm run generate:ups:ship && npm run generate:ups:tracking",
"/* --- Master Command --- */": "",
"generate:all": "npm run generate:usps && npm run generate:fedex && npm run generate:ups"
},
"devDependencies": {
"@types/node": "^20.0.0",
"openapi-typescript-codegen": "^0.29.0",
"tsup": "^8.5.0",
"typescript": "^5.9.3",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.0.3"
},
"dependencies": {
"cross-fetch": "^4.1.0"
}
}