mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-25 08:23:13 +09:00
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:
1 parent
fe86041fc4
commit
49b5b4412f
1 file changed
+2
-2
@@ -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
|
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.:
|
easier to distinguish, as the names tend to be very generic. E.g.:
|
||||||
|
|
||||||
const libLink = require("lib/link");
|
const libLink = require("@clusterio/lib/link");
|
||||||
const libLuaTools = require("lib/lua_tools");
|
const libLuaTools = require("@clusterio/lib/lua_tools");
|
||||||
|
|
||||||
|
|
||||||
For lua code lowercase_underscore is used for everything.
|
For lua code lowercase_underscore is used for everything.
|
||||||
|
|||||||
Reference in new issue
Block a user