Skip to content

Commit 446d169

Browse files
committed
chore: cli pkg name + type test
1 parent 9b192f1 commit 446d169

3 files changed

Lines changed: 8 additions & 12 deletions

File tree

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,8 @@ pnpm test:types
9090
The `cli/` workspace contains a local connector that enables authenticated npm operations from the web UI. It runs on your machine and uses your existing npm credentials.
9191

9292
```bash
93-
# run the connector in dev mode
94-
pnpm --filter @npmx/connector dev
95-
96-
# or build and run the production version
97-
pnpm --filter @npmx/connector build
98-
node cli/dist/cli.mjs
93+
# run the connector from the root of the repository
94+
pnpm npmx-connector
9995
```
10096

10197
The connector will check your npm authentication, generate a connection token, and listen for requests from npmx.dev.

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@npmx/connector",
2+
"name": "npmx-connector",
33
"version": "0.0.1",
44
"description": "Local connector for npmx.dev - enables authenticated npm operations from the web UI",
55
"license": "MIT",

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
"lint": "oxlint && oxfmt --check .",
1515
"lint:fix": "oxlint --fix && oxfmt .",
1616
"generate": "nuxt generate",
17+
"npmx-connector": "pnpm --filter npmx-connector dev",
1718
"preview": "nuxt preview",
1819
"postinstall": "nuxt prepare && simple-git-hooks",
19-
"test:types": "nuxt prepare && vue-tsc -b --noEmit",
2020
"test": "vitest",
21-
"test:coverage": "vitest --coverage",
22-
"test:unit": "vitest --project unit",
23-
"test:nuxt": "vitest --project nuxt",
2421
"test:browser": "playwright test",
2522
"test:browser:ui": "playwright test --ui",
26-
"test:browser:update": "playwright test --update-snapshots"
23+
"test:browser:update": "playwright test --update-snapshots",
24+
"test:nuxt": "vitest --project nuxt",
25+
"test:types": "nuxt prepare && vue-tsc -b --noEmit && pnpm --filter npmx-connector test:types",
26+
"test:unit": "vitest --project unit"
2727
},
2828
"dependencies": {
2929
"@iconify-json/vscode-icons": "^1.2.40",

0 commit comments

Comments
 (0)