-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
61 lines (61 loc) · 3.45 KB
/
Copy pathpackage.json
File metadata and controls
61 lines (61 loc) · 3.45 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
{
"name": "@openhoo/digihoo",
"version": "0.1.1",
"packageManager": "bun@1.3.14",
"description": "TypeScript SDK for Digi-Key API authentication and Product Information endpoints.",
"repository": {
"type": "git",
"url": "git+https://github.com/openhoo/digihoo.git"
},
"bugs": {
"url": "https://github.com/openhoo/digihoo/issues"
},
"homepage": "https://github.com/openhoo/digihoo#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org",
"access": "public"
},
"type": "module",
"license": "MIT",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"types": "./dist/index.d.ts",
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "tsup src/index.ts --format esm,cjs --dts --sourcemap --clean",
"biome:check": "biome ci --error-on-warnings .",
"biome:fix": "biome check --write .",
"format": "biome format --write .",
"format:check": "biome format .",
"generate:types": "mkdir -p src/generated && swagger2openapi --outfile /tmp/digikey-product-search-openapi.json https://developer.digikey.com/node/2357/oas-download && openapi-typescript /tmp/digikey-product-search-openapi.json --output src/generated/product-search-v4.ts && swagger2openapi --outfile /tmp/digikey-product-change-notifications-openapi.json https://developer.digikey.com/node/3668/oas-download && openapi-typescript /tmp/digikey-product-change-notifications-openapi.json --output src/generated/product-change-notifications-v3.ts && swagger2openapi --outfile /tmp/digikey-mylists-openapi.json https://developer.digikey.com/node/2657/oas-download && openapi-typescript /tmp/digikey-mylists-openapi.json --output src/generated/mylists-v1.ts && swagger2openapi --outfile /tmp/digikey-ordering-openapi.json https://developer.digikey.com/node/4546/oas-download && openapi-typescript /tmp/digikey-ordering-openapi.json --output src/generated/ordering-v3.ts && swagger2openapi --outfile /tmp/digikey-barcoding-openapi.json https://developer.digikey.com/node/3626/oas-download && openapi-typescript /tmp/digikey-barcoding-openapi.json --output src/generated/barcoding-v3.ts && swagger2openapi --outfile /tmp/digikey-packing-list-openapi.json https://developer.digikey.com/node/3851/oas-download && openapi-typescript /tmp/digikey-packing-list-openapi.json --output src/generated/packing-list-v1.ts && swagger2openapi --outfile /tmp/digikey-order-status-openapi.json https://developer.digikey.com/node/2288/oas-download && openapi-typescript /tmp/digikey-order-status-openapi.json --output src/generated/order-status-v4.ts",
"lint": "biome lint .",
"lint:fix": "biome lint --write .",
"test": "bun test",
"test:coverage": "bun test --coverage",
"typecheck": "tsc --noEmit",
"check": "bun run biome:check && bun run typecheck && bun run test:coverage && bun run build",
"hooks:install": "if git rev-parse --git-dir >/dev/null 2>&1; then git config core.hooksPath .githooks; fi",
"prepare": "bun run hooks:install",
"prepack": "bun run build",
"verify": "bun run generate:types && bun run typecheck && bun run test:coverage && bun run build"
},
"devDependencies": {
"@biomejs/biome": "^2.4.15",
"@openhoo/hooversion": "0.1.1",
"@types/bun": "^1.3.14",
"@types/node": "^25.9.1",
"openapi-typescript": "^7.13.0",
"swagger2openapi": "^7.0.8",
"tsup": "^8.5.1",
"typescript": "^6.0.3"
}
}