Skip to content

Commit a444836

Browse files
committed
Ensure relative paths
1 parent 3aa6ff6 commit a444836

File tree

4 files changed

+11
-28
lines changed

4 files changed

+11
-28
lines changed

.sync-state.json

Lines changed: 0 additions & 21 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-09-23T15:31:29.483Z
1+
2025-09-23T16:10:25.771Z

scripts/sync-landing-schema/.sync-state.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
"repositories": {
44
"graphql/graphiql": {
55
"lastCursor": "b3c42a65160ba4878b5ea87d9e72385889856464 4096",
6-
"lastProcessed": "2025-09-17T22:19:23.392Z"
6+
"lastProcessed": "2025-09-23T16:10:25.769Z"
77
},
88
"graphql/graphql-spec": {
99
"lastCursor": "43ae7baced54e37c68676b1ac5902e6223dcb078 650",
10-
"lastProcessed": "2025-09-17T22:19:22.172Z"
10+
"lastProcessed": "2025-09-23T16:10:24.144Z"
1111
},
1212
"graphql/graphql-wg": {
1313
"lastCursor": "139d0b9cbe74756974c7e637d85e0283beb36297 2077",
14-
"lastProcessed": "2025-09-17T22:19:22.573Z"
14+
"lastProcessed": "2025-09-23T16:10:24.747Z"
1515
},
1616
"graphql/graphql-js": {
1717
"lastCursor": "60ae6c48b9c78332bf3d6036e7d931a3617d0674 3244",
18-
"lastProcessed": "2025-09-17T22:19:22.933Z"
18+
"lastProcessed": "2025-09-23T16:10:25.242Z"
1919
}
2020
}
2121
}

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import { writeFile, readFile, rename } from "fs/promises"
2+
import { dirname, resolve } from "node:path"
3+
import { fileURLToPath } from "node:url"
4+
25
import * as logger from "./logger.ts"
36

4-
const STATE_FILE = ".sync-state.json"
5-
const TEMP_STATE_FILE = ".sync-state.json.tmp"
7+
const __dirname = dirname(fileURLToPath(import.meta.url))
8+
const STATE_FILE = resolve(__dirname, "../.sync-state.json")
9+
const TEMP_STATE_FILE = resolve(__dirname, "../.sync-state.json.tmp")
610

711
export interface RepositoryState {
812
lastCursor?: string

0 commit comments

Comments
 (0)