forked from replicate/replicate-javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
48 lines (48 loc) · 1.79 KB
/
package.json
File metadata and controls
48 lines (48 loc) · 1.79 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
{
"name": "replicate",
"version": "0.25.2",
"description": "JavaScript client for Replicate",
"repository": "github:replicate/replicate-javascript",
"homepage": "https://github.com/replicate/replicate-javascript#readme",
"bugs": "https://github.com/replicate/replicate-javascript/issues",
"license": "Apache-2.0",
"type": "module",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./index.js",
"require": "./index.cjs"
}
},
"engines": {
"node": ">=18.0.0",
"npm": ">=7.19.0",
"git": ">=2.11.0",
"yarn": ">=1.7.0"
},
"scripts": {
"check": "tsc",
"format": "biome format . --write",
"lint": "biome lint .",
"test": "REPLICATE_API_TOKEN=test-token jest",
"build": "npm run build:version && npm run build:types && npm run build:commonjs",
"build:version": "echo \"export const version = '\"$(node -pe 'require(\"./package.json\").version')\"';\" > version.js",
"build:types": "tsc --target ES2022 --declaration --emitDeclarationOnly --allowJs --types node --outDir ./dist/types index.js",
"build:commonjs": "tsc --target ES2022 --allowJs --module commonjs --sourceMap --types node --outDir ./dist/commonjs index.js && echo '{\"type\": \"commonjs\"}' > ./dist/commonjs/package.json",
"test:integration": "npm --prefix integration/commonjs test;npm --prefix integration/esm test;npm --prefix integration/typescript test",
"test:all": "npm run test && npm run test:integration"
},
"optionalDependencies": {
"readable-stream": ">=4.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.4.1",
"@types/jest": "^29.5.3",
"@typescript-eslint/eslint-plugin": "^5.56.0",
"cross-fetch": "^3.1.5",
"jest": "^29.6.2",
"nock": "^13.3.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.2"
}
}