Skip to content

Commit 8930a56

Browse files
committed
chore: add publish dry-run script
1 parent 5dd0b54 commit 8930a56

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Below are sample configurations that call the server via `npx` (useful once the
5050
claude mcp add dart-pub-mcp \
5151
--transport stdio \
5252
--command npx \
53-
--arg dart-pub-mcp@X.Y.Z \
53+
--arg dart-pub-mcp@latest \
5454
--arg start
5555
```
5656

@@ -63,7 +63,7 @@ claude mcp add dart-pub-mcp \
6363
"name": "dart-pub-mcp",
6464
"type": "stdio",
6565
"command": "npx",
66-
"args": ["dart-pub-mcp@X.Y.Z", "start"]
66+
"args": ["dart-pub-mcp@latest", "start"]
6767
}
6868
]
6969
}
@@ -76,7 +76,7 @@ claude mcp add dart-pub-mcp \
7676
"mcpServers": {
7777
"dart-pub-mcp": {
7878
"command": "npx",
79-
"args": ["dart-pub-mcp@X.Y.Z", "start"],
79+
"args": ["dart-pub-mcp@latest", "start"],
8080
"transport": "stdio"
8181
}
8282
}
@@ -96,6 +96,9 @@ npm run build
9696
# Run automated tests
9797
npm test
9898

99+
# Verify publishable package contents (dry run)
100+
npm run pack:test
101+
99102
# Watch mode for local iteration
100103
npm run dev
101104
```

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"dev": "tsx watch src/server.ts",
1111
"start": "tsx src/server.ts",
1212
"test": "vitest run",
13-
"typecheck": "tsc -p tsconfig.json"
13+
"typecheck": "tsc -p tsconfig.json",
14+
"pack:test": "npm pack --dry-run"
1415
},
1516
"keywords": [],
1617
"author": "",

0 commit comments

Comments
 (0)