Plugins can now use import path shortcuts
Plugins are now able to use import path shortcuts to import all API classes, utilities and the openticket globals. You can now import everything from "#opendiscord" instead of "../../src/index"
This commit is contained in:
+6
-2
@@ -35,5 +35,9 @@
|
||||
"url": "https://github.com/DJj123dj/open-ticket/issues",
|
||||
"email": "support@dj-dj.be"
|
||||
},
|
||||
"homepage": "https://openticket.dj-dj.be"
|
||||
}
|
||||
"homepage": "https://openticket.dj-dj.be",
|
||||
"imports": {
|
||||
"#opendiscord":"./dist/src/index.js",
|
||||
"#opendiscord-types":"./dist/src/core/api/api.js"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user