1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 13:53:37 +00:00

Added missing 'import' commandline switch

This commit is contained in:
Bryan Roe
2022-12-14 10:12:08 -08:00
parent 1ac56a2aa2
commit c067e28ed6
2 changed files with 6 additions and 4 deletions

View File

@@ -273,6 +273,8 @@ function readExpandedModules(options)
if (files[i].endsWith('.js'))
{
name = files[i].split('.js')[0];
console.log('Importing: ' + name);
try
{
valuex = (new Date(require('fs').statSync(options.expandedPath + '/' + files[i]).mtime)).getTime() / 1000;
@@ -323,9 +325,9 @@ function readExpandedModules(options)
function shrink(options)
{
if (options == null) { options = {}; }
if (options.expandedPath == null) { options.expandedPath = 'modules_expanded'; }
if (options.filePath == null) { options.filePath = 'C:/GITHub//MeshAgent/microscript/ILibDuktape_Polyfills.c'; }
if (options.modulesPath == null) { options.modulesPath = 'C:/GITHub/MeshAgent/modules'; }
if (options.expandedPath == null) { options.expandedPath = process.argv.getParameter('expandedPath', 'modules_expanded'); }
if (options.filePath == null) { options.filePath = process.argv.getParameter('filePath', 'C:/GITHub//MeshAgent/microscript/ILibDuktape_Polyfills.c'); }
if (options.modulesPath == null) { options.modulesPath = process.argv.getParameter('modulesPath', 'C:/GITHub/MeshAgent/modules'); }
readExpandedModules(options);
insertCompressed(options);