mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-07 21:07:46 +00:00
Adjusted old company names (#4507)
This commit is contained in:
@@ -51,7 +51,7 @@ export async function getGitHubRepoInfo(repo: Repo) {
|
|||||||
data.subdir = repo.path.slice(subdirPath.length).split('/');
|
data.subdir = repo.path.slice(subdirPath.length).split('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.id === 'zeit/now' && data.subdir && data.subdir[0] === 'examples') {
|
if (data.id === 'vercel/vercel' && data.subdir && data.subdir[0] === 'examples') {
|
||||||
// from our examples, add `homepage` and `description` fields
|
// from our examples, add `homepage` and `description` fields
|
||||||
const example = data.subdir[1];
|
const example = data.subdir[1];
|
||||||
const exampleList = await getExampleList();
|
const exampleList = await getExampleList();
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export default withApiHandler(async function(req: NowRequest, res: NowResponse)
|
|||||||
|
|
||||||
const example = segment.slice(0, -ext.length);
|
const example = segment.slice(0, -ext.length);
|
||||||
|
|
||||||
await extract('https://github.com/zeit/now/archive/master.zip', TMP_DIR);
|
await extract('https://github.com/vercel/vercel/archive/master.zip', TMP_DIR);
|
||||||
const directory = `${TMP_DIR}/now-master/examples/${example}`;
|
const directory = `${TMP_DIR}/now-master/examples/${example}`;
|
||||||
|
|
||||||
if (!isDirectory(directory)) {
|
if (!isDirectory(directory)) {
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ export default withApiHandler(async function(
|
|||||||
req: NowRequest,
|
req: NowRequest,
|
||||||
res: NowResponse
|
res: NowResponse
|
||||||
) {
|
) {
|
||||||
await extract('https://github.com/zeit/now/archive/master.zip', '/tmp');
|
await extract('https://github.com/vercel/vercel/archive/master.zip', '/tmp');
|
||||||
const exampleList = summary('/tmp/now-master/examples');
|
const exampleList = summary('/tmp/now-master/examples');
|
||||||
|
|
||||||
const existingExamples = Array.from(exampleList).map(key => ({
|
const existingExamples = Array.from(exampleList).map(key => ({
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"name": "api",
|
"name": "api",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"description": "API for the zeit/now repo",
|
"description": "API for the vercel/vercel repo",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn --cwd .. && node ../utils/run.js build all"
|
"build": "yarn --cwd .. && node ../utils/run.js build all"
|
||||||
|
|||||||
Reference in New Issue
Block a user