Skip to content

Commit 0f7c371

Browse files
committed
Fix paths.
1 parent 03e00e5 commit 0f7c371

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"typescript": "^5.7.3"
4343
},
4444
"devDependencies": {
45-
"js-yaml": "^4.1.0",
45+
"@types/js-yaml": "^4.0.9",
4646
"prettier": "^3.4.2",
4747
"prettier-plugin-astro": "^0.14.1"
4848
},

pnpm-lock.yaml

Lines changed: 8 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scripts/fetchData.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ const SPEAKERS_URL = "https://programapi24.europython.eu/2024/speakers.json";
1111
const SCHEDULE_URL = "https://programapi24.europython.eu/2024/schedule.json";
1212

1313
// Define output directory and file paths
14-
const DATA_DIR = path.join(__dirname, "../src/data");
15-
const SESSIONS_FILE = path.join(DATA_DIR, "sessions.json");
16-
const SPEAKERS_FILE = path.join(DATA_DIR, "speakers.json");
17-
const SCHEDULE_FILE = path.join(DATA_DIR, "schedule.json");
14+
const DATA_DIR = path.join(__dirname, '../data');
15+
const SESSIONS_FILE = path.join(DATA_DIR, 'sessions.json');
16+
const SPEAKERS_FILE = path.join(DATA_DIR, 'speakers.json');
17+
const SCHEDULE_FILE = path.join(DATA_DIR, 'schedule.json');
1818

1919
// Ensure data directory exists
2020
fs.mkdirSync(DATA_DIR, { recursive: true });

0 commit comments

Comments
 (0)