NETSCRIPT: Compiled modules will be even more shared (#468)

This commit is contained in:
David Walker
2023-04-07 18:08:39 -07:00
committed by GitHub
parent f74002cce0
commit ed9e6d5ea3
10 changed files with 124 additions and 103 deletions

View File

@@ -900,8 +900,6 @@ export const ns: InternalAPI<NSFull> = {
// Create new script if it does not already exist
const newScript = new Script(file, sourceScript.code, destServer.hostname);
// If the script being copied has no dependencies, reuse the module / URL
// The new script will not show up in the correct location in the sources tab because it is just reusing the module from a different server
destServer.scripts.push(newScript);
helpers.log(ctx, () => `File '${file}' copied over to '${destServer?.hostname}'.`);
}