Skip to content

Commit 23bc6ce

Browse files
authored
Move libraries that we expect people to use to 'std' (#35)
1 parent d590672 commit 23bc6ce

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

.luaurc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"aliases": {
3+
"std": "std"
4+
}
5+
}

examples/async_read.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local task = require("./task")
1+
local task = require("@std/task")
22
-- blocking
33
local f = fs.open("temp", "w+")
44
local x = "This is a string I am writing to a file"

examples/net_example.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local task = require("./task")
1+
local task = require("@std/task")
22

33
local t = task.create(function()
44
return net.getAsync("https://en.wikipedia.org/")

examples/spawn_example.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
local task = require("./task")
1+
local task = require("@std/task")
22

33
print("start")
44

File renamed without changes.

0 commit comments

Comments
 (0)