Skip to content

Commit 0642021

Browse files
committed
wip
1 parent 8a2c76c commit 0642021

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

scripts/sync-landing-schema/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
1818
const outPath = resolve(__dirname, "data.json")
1919

2020
export const REPO_TO_PROJECT: Record<RepoRef, string> = {
21-
"graphql/graphql-spec": "GraphQL",
22-
"graphql/graphql-wg": "GraphQL",
23-
"graphql/graphql-js": "graphql-js",
21+
// "graphql/graphql-spec": "GraphQL",
22+
// "graphql/graphql-wg": "GraphQL",
23+
// "graphql/graphql-js": "graphql-js",
2424
"graphql/graphiql": "GraphiQL",
2525
}
2626

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
function formatMessage(message: string, context?: string): string {
2+
const timestamp = new Date().toLocaleDateString()
3+
const prefix = context ? `${timestamp} | ${context} |` : `${timestamp} |`
4+
return `${prefix} ${message}`
5+
}
6+
7+
export function log(message: string, context?: string): void {
8+
console.log(formatMessage(message, context))
9+
}
10+
11+
export function warn(message: string, context?: string): void {
12+
console.warn(formatMessage(message, context))
13+
}
14+
15+
export function error(message: string, context?: string): void {
16+
console.error(formatMessage(message, context))
17+
}

0 commit comments

Comments
 (0)