-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow up to #1026 Benefit is that exports are better defined, and source-mapping works. Also, move the generation scripts from `@huggingace/tasks` to `@huggingface/tasks-gen` cc @Wauplin @SBrandeis So that the dev dependencies are not tacked on `@huggingface/tasks`. Some package managers, *cough* yarn *cough* like to download them when importing a package, even if they're irrelevant.
- Loading branch information
1 parent
06fb210
commit f193bc6
Showing
16 changed files
with
557 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "@huggingface/tasks-gen", | ||
"packageManager": "[email protected]", | ||
"version": "0.13.1", | ||
"description": "Utilities to generate files for @huggingface/tasks, and avoid unnecessary deps in the published package", | ||
"repository": "https://github.com/huggingface/huggingface.js.git", | ||
"private": true, | ||
"scripts": { | ||
"lint": "eslint --quiet --fix --ext .cjs,.ts .", | ||
"lint:check": "eslint --ext .cjs,.ts .", | ||
"format": "prettier --write .", | ||
"format:check": "prettier --check .", | ||
"check": "tsc", | ||
"inference-codegen": "tsx scripts/inference-codegen.ts && prettier --write ../tasks/src/tasks/*/inference.ts", | ||
"inference-tgi-import": "tsx scripts/inference-tgi-import.ts && prettier --write ../tasks/src/tasks/text-generation/spec/*.json && prettier --write ../tasks/src/tasks/chat-completion/spec/*.json", | ||
"inference-tei-import": "tsx scripts/inference-tei-import.ts && prettier --write ../tasks/src/tasks/feature-extraction/spec/*.json" | ||
}, | ||
"type": "module", | ||
"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" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": "../src", | ||
"module": "nodenext", | ||
"moduleResolution": "nodenext" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"extends": "./build.json", | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.cts", | ||
"../src/**/*.tsx", | ||
"../src/**/*.json" | ||
], | ||
"exclude": [ | ||
"../src/**/*.mts", | ||
"../src/package.json" | ||
], | ||
"compilerOptions": { | ||
"outDir": "../.tshy-build/commonjs" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "./build.json", | ||
"include": [ | ||
"../src/**/*.ts", | ||
"../src/**/*.mts", | ||
"../src/**/*.tsx", | ||
"../src/**/*.json" | ||
], | ||
"exclude": [ | ||
"../src/package.json" | ||
], | ||
"compilerOptions": { | ||
"outDir": "../.tshy-build/esm" | ||
} | ||
} |
Oops, something went wrong.