-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
130 lines (130 loc) · 4.42 KB
/
package.json
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"name": "@socketsecurity/sdk",
"version": "1.4.16",
"license": "MIT",
"description": "SDK for the Socket API client",
"author": {
"name": "Socket Inc",
"email": "[email protected]",
"url": "https://socket.dev"
},
"homepage": "https://github.com/SocketDev/socket-sdk-js",
"repository": {
"type": "git",
"url": "git://github.com/SocketDev/socket-sdk-js.git"
},
"type": "module",
"exports": {
".": {
"node": {
"module-sync": {
"types": "./dist/index.d.mts",
"default": "./dist/index.js"
},
"default": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"default": {
"types": "./dist/index.d.mts",
"default": "./dist/index.js"
}
},
"./dist/index.cjs": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
},
"./dist/index.d.cts": "./dist/index.d.cts",
"./dist/index.d.mts": "./dist/index.d.mts",
"./types/api-helpers": "./types/api-helpers.d.ts",
"./types/api-helpers.d.ts": "./types/api-helpers.d.ts",
"./types/api": "./types/api.d.ts",
"./types/api.d.ts": "./types/api.d.ts",
"./package.json": "./package.json"
},
"scripts": {
"build": "npm run clean && run-p -c --aggregate-output build:* && run-p -c --aggregate-output build:clean:*",
"build:cjs": "tsc",
"build:esm": "tsc -p tsconfig.esm.json",
"build:clean:cjs": "node scripts/rename-dist-cjs-files.mjs",
"build:clean:esm": "node scripts/rename-dist-esm-files.mjs",
"check": "run-p -c --aggregate-output check:*",
"check:lint": "eslint --report-unused-disable-directives .",
"check:lint:fix": "npm run check:lint -- --fix",
"check:tsc": "tsc",
"coverage": "run-s coverage:*",
"coverage:test": "run-s test:prepare test:unit:coverage",
"coverage:type": "type-coverage --detail",
"clean": "run-p -c --aggregate-output clean:*",
"clean:dist": "del-cli 'dist'",
"clean:declarations": "del-cli '*.d.ts' '!api*.d.ts'",
"fix": "run-s lint:fix check:lint:fix",
"generate-sdk": "run-p -c --aggregate-output generate-sdk:* && run-p -c --aggregate-output generate-sdk:clean:*",
"generate-sdk:prettify": "node scripts/prettify-base-json.mjs",
"generate-sdk:generate": "node scripts/generate-types.mjs > types/api.d.ts",
"generate-sdk:clean:api": "npm run fix && npm run fix",
"knip:dependencies": "knip --dependencies",
"knip:exports": "knip --include exports,duplicates",
"lint": "oxlint -c=./.oxlintrc.json --ignore-path=./.oxlintignore --tsconfig=./tsconfig.json .",
"lint:fix": "npm run lint -- --fix && npm run lint:fix:fast",
"lint:fix:fast": "biome format --write",
"lint-staged": "lint-staged",
"precommit": "lint-staged",
"prepare": "husky",
"prepublishOnly": "run-s build",
"test": "run-s check test:*",
"test:prepare": "cross-env VITEST=1 npm run build",
"test:unit": "vitest --run",
"test:unit:update": "vitest --run --update",
"test:unit:coverage": "vitest run --coverage",
"test-ci": "run-s build test:*",
"update": "run-p --aggregate-output update:**",
"update:deps": "npx --yes npm-check-updates"
},
"dependencies": {
"@socketsecurity/registry": "1.0.135"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@eslint/compat": "^1.2.7",
"@eslint/js": "^9.23.0",
"@types/node": "^22.13.13",
"@typescript-eslint/parser": "^8.28.0",
"@vitest/coverage-v8": "3.0.9",
"cross-env": "^7.0.3",
"del-cli": "^6.0.0",
"eslint": "^9.23.0",
"eslint-import-resolver-oxc": "^0.13.1",
"eslint-plugin-import-x": "^4.9.1",
"eslint-plugin-jsdoc": "^50.6.9",
"eslint-plugin-n": "^17.16.2",
"eslint-plugin-sort-destructure-keys": "^2.0.0",
"eslint-plugin-unicorn": "^56.0.1",
"globals": "^16.0.0",
"husky": "^9.1.7",
"knip": "^5.46.0",
"lint-staged": "^15.5.0",
"nock": "^14.0.1",
"npm-run-all2": "^7.0.2",
"openapi-typescript": "^6.7.6",
"oxlint": "0.16.2",
"type-coverage": "^2.29.7",
"typescript": "~5.8.2",
"typescript-eslint": "^8.28.0",
"vitest": "3.0.9"
},
"engines": {
"node": "^18.20.7 || ^20.18.3 || >=22.14.0"
},
"files": [
"dist/**",
"types/**"
],
"lint-staged": {
"*.{cjs,js,json,md,mjs,mts,ts}": [
"npm run lint -- --fix",
"npm run lint:fix:fast -- --no-errors-on-unmatched --files-ignore-unknown=true --colors=off"
]
}
}