mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Check if there is a built code (#5415)
This commit is contained in:
parent
e04d8aa984
commit
d50e509722
1 changed files with 7 additions and 1 deletions
8
index.js
8
index.js
|
@ -1 +1,7 @@
|
||||||
require('./built').default();
|
const fs = require('fs');
|
||||||
|
|
||||||
|
if (fs.existsSync('./built')) {
|
||||||
|
require('./built').default();
|
||||||
|
} else {
|
||||||
|
console.log('Built code is not found. Probably an error occurred during a build or you just forgot to build.');
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue