8000 ✨ Add packageManager info to package.json (#180) · huggingface/huggingface.js@660d821 · GitHub
[go: up one dir, main page]

Skip to content

Commit 660d821

Browse files
authored
✨ Add packageManager info to package.json (#180)
1 parent df43d8e commit 660d821

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"license": "MIT",
3+
"packageManager": "pnpm@8.3.1",
34
"dependencies": {
45
"@typescript-eslint/eslint-plugin": "^5.51.0",
56
"@typescript-eslint/parser": "^5.51.0",

packages/doc-internal/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ We run a few scripts in between, [fix-md-links](./fix-md-links.ts) and [update-t
1010

1111
```console
1212
# Generate all docs
13-
npm run start
13+
pnpm run start
1414

1515
# Generate docs for @huggingface/hub
16-
npm run prepublish-hub
16+
pnpm run prepublish-hub
1717

1818
# Generate docs for @huggingface/inference
19-
npm run prepublish-inference
19+
pnpm run prepublish-inference
2020
```
2121

2222
## HTML docs
2323

2424
If you want to see the final HTML docs, there are a few steps:
2525

26-
- Generate the docs with `npm run start`
26+
- Generate the docs with `pnpm run start`
2727
- Clone https://github.com/huggingface/doc-builder and put it in the same folder as huggingface.js
2828
- Follow the instructions to install it from source
2929
- Go in its `kit` folder and run `npm install`

packages/doc-internal/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "@huggingface/doc-internal",
3+
"packageManager": "pnpm@8.3.1",
34
"version": "1.0.0",
45
"description": "Package to generate doc for other @huggingface packages",
56
"private": true,
67
"scripts": {
7-
"start": "npm run fix-cdn-versions && npm run doc-hub && npm run doc-inference && cp ../../README.md ../../docs/index.md && npm run update-toc && npm run fix-md-links",
8+
"start": "pnpm run fix-cdn-versions && pnpm run doc-hub && pnpm run doc-inference && cp ../../README.md ../../docs/index.md && pnpm run update-toc && pnpm run fix-md-links",
89
"lint": "eslint --quiet --fix --ext .cjs,.ts .",
910
"lint:check": "eslint --ext .cjs,.ts .",
1011
"format": "prettier --write .",
1112
"format:check": "prettier --check .",
12-
"prepublish-hub": "npm run fix-cdn-versions && npm run doc-hub && cp ../../README.md ../../docs/index.md && npm run update-toc && npm run fix-md-links",
13-
"prepublish-inference": "npm run fix-cdn-versions && npm run doc-inference && cp ../../README.md ../../docs/index.md && npm run update-toc && npm run fix-md-links",
13+
"prepublish-hub": "pnpm run fix-cdn-versions && pnpm run doc-hub && cp ../../README.md ../../docs/index.md && pnpm run update-toc && pnpm run fix-md-links",
14+
"prepublish-inference": "pnpm run fix-cdn-versions && pnpm run doc-inference && cp ../../README.md ../../docs/index.md && pnpm run update-toc && pnpm run fix-md-links",
1415
"doc-hub": "typedoc --tsconfig ../hub/tsconfig.json --githubPages false --plugin typedoc-plugin-markdown --out ../../docs/hub --hideBreadcrumbs --hideInPageTOC --sourceLinkTemplate https://github.com/huggingface/huggingface.js/blob/main/{path}#L{line} ../hub/index.ts",
1516
"doc-inference": "typedoc --tsconfig ../inference/tsconfig.json --githubPages false --plugin typedoc-plugin-markdown --out ../../docs/inference --hideBreadcrumbs --hideInPageTOC --sourceLinkTemplate https://github.com/huggingface/huggingface.js/blob/main/{path}#L{line} ../inference/src/index.ts",
1617
"update-toc": "ts-node --esm update-toc.ts",

packages/hub/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"name": "@huggingface/hub",
3+
"packageManager": "pnpm@8.3.1",
34
"version": "0.5.1",
45
"description": "Utilities to interact with the Hugging Face hub",
56
"repository": "https://github.com/huggingface/huggingface.js.git",
@@ -26,7 +27,7 @@
2627
"format": "prettier --write .",
2728
"format:check": "prettier --check .",
2829
"preversion": "pnpm --filter doc-internal run fix-cdn-versions && git add ../../README.md",
29-
"prepublishOnly": "npm run build",
30+
"prepublishOnly": "pnpm run build",
3031
"build": "tsup src/index.ts --format cjs,esm --clean --dts-resolve",
3132
"test": "vitest run",
3233
"test:browser": "vitest run --browser.name=chrome --browser.headless --config ./vitest-browser.config.ts",

packages/inference/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ This will enable tree-shaking by your bundler.
299299
## Running tests
300300

301301
```console
302-
HF_ACCESS_TOKEN="your access token" npm run test
302+
HF_ACCESS_TOKEN="your access token" pnpm run test
303303
```
304304

305305
## Finding appropriate models

packages/inference/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@huggingface/inference",
33
"version": "2.2.2",
4+
"packageManager": "pnpm@8.3.1",
45
"license": "MIT",
56
"author": "Tim Mikeladze <tim.mikeladze@gmail.com>",
67
"description": "Typescript wrapper for the Hugging Face Inference API",

0 commit comments

Comments
 (0)
0