Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
fix(cache-modules): stringify object
Browse files Browse the repository at this point in the history
  • Loading branch information
bishnubista committed Sep 28, 2023
1 parent dd37858 commit d7115c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const setupCacheFile = () => {
console.log(`Successfully created ${oneAppDirectoryPath}`);
console.log(`Creating ${cacheFileName}`);
try {
fs.writeFileSync(oneAppModuleCachePath, JSON.stringify('{}'));
fs.writeFileSync(oneAppModuleCachePath, JSON.stringify({}));
console.log(`${cacheFileName} created successfully on ${oneAppModuleCachePath}`);
} catch (err) {
console.error(`Error creating ${cacheFileName} on ${oneAppModuleCachePath}, \n${err}`);
Expand Down

0 comments on commit d7115c9

Please sign in to comment.