Skip to content

Commit bde6693

Browse files
committed
chore(deps): bump dependencies
1 parent 0fff8e5 commit bde6693

3 files changed

Lines changed: 749 additions & 418 deletions

File tree

README.md

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,16 @@ npm i hfup -D
2525

2626
`hfup` can generate HuggingFace artifacts directly, without bundler hooks.
2727

28+
Quick start:
29+
30+
```shell
31+
pnpm add -D hfup
32+
```
33+
34+
Create `hfup.config.json` in your project root:
35+
2836
```shell
29-
hfup generate --root . --outDir ./dist
37+
npx hfup generate --root . --outDir ./dist
3038
```
3139

3240
This command writes:
@@ -90,6 +98,57 @@ Optional flags:
9098

9199
`--with-space-card` and `--with-model-card` are mutually exclusive because both write `README.md`.
92100

101+
Generate model card only:
102+
103+
```shell
104+
npx hfup generate --root . --outDir . --with-model-card
105+
```
106+
107+
Generate space card only:
108+
109+
```shell
110+
npx hfup generate --root . --outDir . --with-space-card
111+
```
112+
113+
Generate only LFS:
114+
115+
```shell
116+
npx hfup generate --root . --outDir . --with-lfs
117+
```
118+
119+
## JSON Schema in Editors
120+
121+
Use the published JSON schema so non-TypeScript projects (Python/C/etc.) still get IntelliSense.
122+
123+
Inline schema in `hfup.config.json`:
124+
125+
```json
126+
{
127+
"$schema": "https://unpkg.com/hfup@latest/dist/json-schema.json"
128+
}
129+
```
130+
131+
Or pin a version:
132+
133+
```json
134+
{
135+
"$schema": "https://unpkg.com/hfup@1.0.0/dist/json-schema.json"
136+
}
137+
```
138+
139+
If you cannot use `$schema` inline, configure VS Code:
140+
141+
```json
142+
{
143+
"json.schemas": [
144+
{
145+
"fileMatch": ["hfup.config.json"],
146+
"url": "https://unpkg.com/hfup@latest/dist/json-schema.json"
147+
}
148+
]
149+
}
150+
```
151+
93152
## Model Card Plugin
94153

95154
You can generate a Hugging Face model card from bundler hooks too:

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"version": "1.0.1",
55
"description": "A collection of tools to help you deploy, bundle HuggingFace Spaces and related assets with ease.",
66
"keywords": [],
7-
"packageManager": "pnpm@10.18.2",
7+
"packageManager": "pnpm@10.30.3",
88
"author": "Moeru AI",
99
"license": "MIT",
1010
"homepage": "https://github.com/moeru-ai/hfup",
@@ -44,26 +44,27 @@
4444
"build": "rolldown -c && node scripts/write-schema.mjs",
4545
"typecheck": "tsc --noEmit",
4646
"lint": "oxlint",
47+
"lint:fix": "oxlint --fix",
4748
"attw": "attw --pack . --profile esm-only --ignore-rules cjs-resolves-to-esm",
4849
"up": "taze -w -r -I -f && pnpm prune && pnpm dedupe"
4950
},
5051
"dependencies": {
5152
"defu": "^6.1.4",
5253
"gray-matter": "^4.0.3",
53-
"unplugin": "^2.3.10"
54+
"unplugin": "^2.3.11"
5455
},
5556
"devDependencies": {
5657
"@arethetypeswrong/cli": "^0.18.2",
5758
"@importantimport/tsconfig": "^1.0.0-beta.2",
58-
"@types/node": "^24.7.1",
59+
"@types/node": "^24.11.0",
5960
"builtin-modules": "^5.0.0",
60-
"bumpp": "^10.3.1",
61-
"changelogithub": "^13.16.0",
62-
"oxlint": "^1.22.0",
63-
"rolldown": "^1.0.0-beta.42",
64-
"taze": "^19.7.0",
61+
"bumpp": "^10.4.1",
62+
"changelogithub": "^13.16.1",
63+
"oxlint": "^1.51.0",
64+
"rolldown": "^1.0.0-rc.7",
65+
"taze": "^19.10.0",
6566
"typescript": "^5.9.3",
66-
"unplugin-isolated-decl": "^0.15.2"
67+
"unplugin-isolated-decl": "^0.15.7"
6768
},
6869
"pnpm": {
6970
"onlyBuiltDependencies": [

0 commit comments

Comments
 (0)