Skip to content

Commit 8824a24

Browse files
authored
covector published pkg check with built-in API call (#1541)
1 parent f83b9e9 commit 8824a24

File tree

2 files changed

+12
-62
lines changed

2 files changed

+12
-62
lines changed

.changes/config.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,22 @@
33
"pkgManagers": {
44
"javascript": {
55
"version": true,
6-
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.cjs npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }",
6+
"getPublishedVersion": {
7+
"use": "fetch:check",
8+
"options": {
9+
"url": "https://registry.npmjs.com/${ pkg.pkg }/${ pkg.pkgFile.version }"
10+
}
11+
},
712
"publish": ["pnpm build", "pnpm publish --access public --no-git-checks"]
813
},
914
"rust": {
1015
"version": true,
11-
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.cjs cargo ${ pkgFile.pkg.package.name } ${ pkgFile.pkg.package.version }",
16+
"getPublishedVersion": {
17+
"use": "fetch:check",
18+
"options": {
19+
"url": "https://crates.io/api/v1/crates/${ pkg.pkg }/${ pkg.pkgFile.version }"
20+
}
21+
},
1222
"publish": [
1323
{
1424
"command": "cargo package --no-verify",

.scripts/covector/package-latest-version.cjs

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)