File size: 1,596 Bytes
b2ecf7d
 
 
08d6f91
b2ecf7d
 
 
 
 
e201dc3
 
b2ecf7d
 
 
 
e201dc3
 
b2ecf7d
 
 
 
 
 
 
 
 
e201dc3
b2ecf7d
afa4e5a
ac33c34
 
b2ecf7d
e201dc3
b2ecf7d
 
 
 
 
 
 
 
 
 
 
 
afa4e5a
 
ac33c34
 
 
 
 
afa4e5a
b2ecf7d
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
{
	"name": "@huggingface/tasks",
	"packageManager": "[email protected]",
	"version": "0.9.1",
	"description": "List of ML tasks for huggingface.co/tasks",
	"repository": "https://github.com/huggingface/huggingface.js.git",
	"publishConfig": {
		"access": "public"
	},
	"main": "./dist/index.cjs",
	"module": "./dist/index.js",
	"types": "./dist/index.d.ts",
	"exports": {
		".": {
			"types": "./dist/index.d.ts",
			"require": "./dist/index.cjs",
			"import": "./dist/index.js"
		}
	},
	"source": "src/index.ts",
	"scripts": {
		"lint": "eslint --quiet --fix --ext .cjs,.ts .",
		"lint:check": "eslint --ext .cjs,.ts .",
		"format": "prettier --write .",
		"format:check": "prettier --check .",
		"prepublishOnly": "pnpm run build",
		"build": "tsup src/index.ts --format cjs,esm --clean --dts && pnpm run inference-codegen",
		"prepare": "pnpm run build",
		"check": "tsc",
		"inference-codegen": "tsx scripts/inference-codegen.ts && prettier --write src/tasks/*/inference.ts",
		"inference-tgi-import": "tsx scripts/inference-tgi-import.ts && prettier --write src/tasks/text-generation/spec/*.json && prettier --write src/tasks/chat-completion/spec/*.json"
	},
	"type": "module",
	"files": [
		"dist",
		"src",
		"tsconfig.json"
	],
	"keywords": [
		"huggingface",
		"hub",
		"languages"
	],
	"author": "Hugging Face",
	"license": "MIT",
	"devDependencies": {
		"@types/node": "^20.11.5",
		"quicktype-core": "https://github.com/huggingface/quicktype/raw/pack-18.0.17/packages/quicktype-core/quicktype-core-18.0.17.tgz",
		"type-fest": "^3.13.1"
	},
	"dependencies": {
		"node-fetch": "^3.3.2"
	}
}