Fix require paths shown in contributing doc

Change the example code in the contributing doc to use the clusterio org
when referencing the lib package.
This commit is contained in:
Hornwitser committed 2020-11-27 18:21:26 +01:00
1 parent fe86041fc4
commit 49b5b4412f
1 file changed
+2 -2
+2 -2
View File
@@ -223,8 +223,8 @@ should be named the same as the class in PascalCase.
Imported modules from the lib package are prefixed with lib to make them
easier to distinguish, as the names tend to be very generic. E.g.:
const libLink = require("lib/link");
const libLuaTools = require("lib/lua_tools");
const libLink = require("@clusterio/lib/link");
const libLuaTools = require("@clusterio/lib/lua_tools");
For lua code lowercase_underscore is used for everything.