mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-06 04:22:01 +00:00
Keep vercel@canary up to date with vercel@latest (#10410)
This commit is contained in:
2
.changeset/dry-masks-thank.md
Normal file
2
.changeset/dry-masks-thank.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
"pack": "cd utils && node -r ts-eager/register ./pack.ts",
|
"pack": "cd utils && node -r ts-eager/register ./pack.ts",
|
||||||
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
|
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
|
||||||
"ci:publish": "pnpm publish -r && changeset tag"
|
"ci:publish": "pnpm publish -r && node utils/update-canary-tags.mjs && changeset tag"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"./{*,{api,packages,test,utils}/**/*}.{js,ts}": [
|
"./{*,{api,packages,test,utils}/**/*}.{js,ts}": [
|
||||||
|
|||||||
15
utils/update-canary-tags.mjs
vendored
Normal file
15
utils/update-canary-tags.mjs
vendored
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
import fs from 'fs';
|
||||||
|
import { spawnSync } from 'child_process';
|
||||||
|
|
||||||
|
const packagesDir = new URL('../packages/', import.meta.url);
|
||||||
|
|
||||||
|
for (const name of fs.readdirSync(packagesDir)) {
|
||||||
|
const pkg = JSON.parse(
|
||||||
|
fs.readFileSync(new URL(`${name}/package.json`, packagesDir), 'utf8')
|
||||||
|
);
|
||||||
|
spawnSync(
|
||||||
|
'npm',
|
||||||
|
`dist-tag add ${pkg.name}@${pkg.version} canary`.split(' '),
|
||||||
|
{ stdio: 'inherit' }
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user