summaryrefslogtreecommitdiff
path: root/script/vm/node/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/node/init.lua')
-rw-r--r--script/vm/node/init.lua22
1 files changed, 0 insertions, 22 deletions
diff --git a/script/vm/node/init.lua b/script/vm/node/init.lua
deleted file mode 100644
index 524dab4e..00000000
--- a/script/vm/node/init.lua
+++ /dev/null
@@ -1,22 +0,0 @@
-local files = require 'files'
-local compiler = require 'vm.node.compiler'
-local vmState = require 'vm.state'
-
-for uri in files.eachFile() do
- local state = files.getState(uri)
- if state then
- compiler.compileGlobals(state.ast)
- end
-end
-
-files.watch(function (ev, uri)
- if ev == 'update' then
- local state = files.getState(uri)
- if state then
- compiler.compileGlobals(state.ast)
- end
- end
- if ev == 'remove' then
- vmState.dropUri(uri)
- end
-end)