File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
scripts/sync-landing-schema/src Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
1818const outPath = resolve ( __dirname , "data.json" )
1919
2020export 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
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments