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

Commit

Permalink
Update core.js (#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
Booster1212 committed Oct 24, 2023
1 parent e8da1d2 commit f2b2e2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/compiler/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ export async function runCoreCompiler() {
const filesToCopy = getFilesToCopy(enabledPlugins);

const resourcesFolder = sanitizePath(path.join(process.cwd(), 'resources')).replace(/\\/g, '/');
if (!fs.existsSync(resourcesFolder)) {
fs.mkdirSync(resourcesFolder, { recursive: true });
}

const filesAndDirectories = fs.readdirSync(resourcesFolder);

for (const fileOrDirectory of filesAndDirectories) {
Expand Down

0 comments on commit f2b2e2a

Please sign in to comment.