Skip to content

Commit 352f90d

Browse files
add logs
1 parent b4a9a9b commit 352f90d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/download-core-build.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const BUILD_FILES = [`libpowersync-wasm.a`];
1515
const LIBS_DIR = path.resolve(__dirname, '../powersync-libs');
1616

1717
async function directoryExists(path) {
18+
console.log(`Checking directory ${path}`);
1819
try {
1920
const stats = await fs.stat(path);
2021
return stats.isDirectory();
@@ -29,8 +30,11 @@ async function directoryExists(path) {
2930
}
3031

3132
async function downloadDynamicCore() {
33+
console.log('Downloading PowerSync Core');
34+
3235
const exists = await directoryExists(LIBS_DIR);
3336
if (!exists) {
37+
console.log(`Creating libs directory ${LIBS_DIR}`);
3438
await fs.mkdir(LIBS_DIR);
3539
}
3640

0 commit comments

Comments
 (0)