mirror of
https://github.com/sern-handler/templates
synced 2026-06-06 01:16:58 +00:00
feat: bump version (#20)
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
],
|
],
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sern/handler": "^2.0.0",
|
"@sern/handler": "^2.5.0",
|
||||||
"discord.js": "^14.7.1"
|
"discord.js": "^14.7.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ const client = new Client({
|
|||||||
export const useContainer = Sern.makeDependencies({
|
export const useContainer = Sern.makeDependencies({
|
||||||
build: (root) =>
|
build: (root) =>
|
||||||
root
|
root
|
||||||
.add({ '@sern/client': single(client) })
|
.add({ '@sern/client': single(() => client) })
|
||||||
.add({ '@sern/logger': single(new DefaultLogging()) }),
|
.upsert({ '@sern/logger': single(() => new DefaultLogging()) }), //using upsert because it replaces the default provided
|
||||||
});
|
});
|
||||||
|
|
||||||
//View docs for all options
|
//View docs for all options
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
],
|
],
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sern/handler": "^2.0.0",
|
"@sern/handler": "^2.5.0",
|
||||||
"discord.js": "^14.7.1"
|
"discord.js": "^14.7.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ const client = new Client({
|
|||||||
export const useContainer = Sern.makeDependencies({
|
export const useContainer = Sern.makeDependencies({
|
||||||
build: (root) =>
|
build: (root) =>
|
||||||
root
|
root
|
||||||
.add({ '@sern/client': single(client) })
|
.add({ '@sern/client': single(() => client) })
|
||||||
.add({ '@sern/logger': single(new DefaultLogging()) }),
|
.upsert({ '@sern/logger': single(() => new DefaultLogging()) }), //using upsert because it replaces the default provided
|
||||||
});
|
});
|
||||||
|
|
||||||
//View docs for all options
|
//View docs for all options
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
],
|
],
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sern/handler": "^2.0.0",
|
"@sern/handler": "^2.5.0",
|
||||||
"discord.js": "^14.7.1"
|
"discord.js": "^14.7.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@@ -33,8 +33,8 @@ interface MyDependencies extends Dependencies {
|
|||||||
export const useContainer = Sern.makeDependencies<MyDependencies>({
|
export const useContainer = Sern.makeDependencies<MyDependencies>({
|
||||||
build: (root) =>
|
build: (root) =>
|
||||||
root
|
root
|
||||||
.add({ '@sern/client': single(client) })
|
.add({ '@sern/client': single(() => client) })
|
||||||
.add({ '@sern/logger': single(new DefaultLogging()) }),
|
.upsert({ '@sern/logger': single(() => new DefaultLogging()) }), //using upsert because it replaces the default provided
|
||||||
});
|
});
|
||||||
|
|
||||||
//View docs for all options
|
//View docs for all options
|
||||||
|
|||||||
Reference in New Issue
Block a user