Fix module layout to make more sense

This commit is contained in:
Lucien Greathouse
2018-08-13 15:24:35 -07:00
parent f3e7e54675
commit 1db06194c7
4 changed files with 6 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
"partitions": {
"plugin": {
"path": "src",
"target": "ReplicatedStorage.Rojo.plugin"
"target": "ReplicatedStorage.Rojo.modules.Plugin"
},
"modules/roact": {
"path": "modules/roact/lib",

View File

@@ -4,7 +4,8 @@
-- If you add any dependencies, add them to this table so they'll be loaded!
local LOAD_MODULES = {
{"src", "Plugin"},
{"src", "plugin"},
{"modules/promise/lib", "Promise"},
{"modules/testez/lib", "TestEZ"},
}
@@ -31,7 +32,7 @@ end
-- Load TestEZ and run our tests
local TestEZ = habitat:require(Root.TestEZ)
local results = TestEZ.TestBootstrap:run(Root.Plugin, TestEZ.Reporters.TextReporter)
local results = TestEZ.TestBootstrap:run(Root.plugin, TestEZ.Reporters.TextReporter)
-- Did something go wrong?
if results.failureCount > 0 then

View File

@@ -1,4 +1,4 @@
local Promise = require(script.Parent.Parent.modules.Promise)
local Promise = require(script.Parent.Parent.Promise)
local Config = require(script.Parent.Config)
local Version = require(script.Parent.Version)

View File

@@ -2,7 +2,7 @@ local HttpService = game:GetService("HttpService")
local HTTP_DEBUG = false
local Promise = require(script.Parent.Parent.modules.Promise)
local Promise = require(script.Parent.Parent.Promise)
local HttpError = require(script.Parent.HttpError)
local HttpResponse = require(script.Parent.HttpResponse)