mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[c] Fix main module check
This commit is contained in:
parent
5c33aed9d6
commit
0d92c5d21e
@ -83,7 +83,10 @@ async function main() {
|
|||||||
console.log('Code generation complete!');
|
console.log('Code generation complete!');
|
||||||
}
|
}
|
||||||
|
|
||||||
main().catch(error => {
|
if (import.meta.url === `file://${process.argv[1]}`) {
|
||||||
console.error('Error:', error);
|
// Run the main function if this file is executed directly
|
||||||
process.exit(1);
|
main().catch(error => {
|
||||||
});
|
console.error('Error during code generation:', error);
|
||||||
|
process.exit(1);
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user