@sapphire/plugin-hmr 3.0.0-next.d9aa006.0 → 3.0.0-next.e11b911.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/register.cjs +2 -3
- package/dist/cjs/register.cjs.map +1 -1
- package/dist/cjs/register.d.ts +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/register.d.mts +1 -1
- package/dist/esm/register.mjs +1 -2
- package/dist/esm/register.mjs.map +1 -1
- package/package.json +3 -4
package/dist/cjs/index.cjs
CHANGED
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,cAAc;AAiBP,IAAM,UAAkB","sourcesContent":["export * from './lib/hmr';\n\nimport type { HMROptions } from './lib/hmr';\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\thmr?: HMROptions;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-hmr](https://github.com/sapphiredev/plugins/blob/main/packages/hmr) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '3.0.0-next.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,cAAc;AAiBP,IAAM,UAAkB","sourcesContent":["export * from './lib/hmr';\n\nimport type { HMROptions } from './lib/hmr';\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\thmr?: HMROptions;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-hmr](https://github.com/sapphiredev/plugins/blob/main/packages/hmr) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '3.0.0-next.e11b911.0';\n"]}
|
package/dist/cjs/register.cjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var index_cjs = require('./index.cjs');
|
|
3
4
|
var framework = require('@sapphire/framework');
|
|
4
|
-
require('./index.cjs');
|
|
5
|
-
var hmr_cjs = require('./lib/hmr.cjs');
|
|
6
5
|
|
|
7
6
|
var __defProp = Object.defineProperty;
|
|
8
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -11,7 +10,7 @@ var _HmrPlugin = class _HmrPlugin extends framework.Plugin {
|
|
|
11
10
|
* @since 1.0.0
|
|
12
11
|
*/
|
|
13
12
|
static [framework.postLogin]() {
|
|
14
|
-
|
|
13
|
+
index_cjs.start(this.options.hmr);
|
|
15
14
|
}
|
|
16
15
|
};
|
|
17
16
|
__name(_HmrPlugin, "HmrPlugin");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAAA,SAAS,QAAQ,WAAW,sBAAsB;AAClD,
|
|
1
|
+
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAAA,OAAO;AAEP,SAAS,QAAQ,WAAW,sBAAsB;AAClD,SAAS,aAAa;AAKf,IAAM,aAAN,MAAM,mBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIrC,QAAe,SAAS,IAA8B;AACrD,UAAM,KAAK,QAAQ,GAAG;AAAA,EACvB;AACD;AAPsC;AAA/B,IAAM,YAAN;AASP,eAAe,QAAQ,sBAAsB,UAAU,SAAS,GAAG,eAAe","sourcesContent":["import './index';\n\nimport { Plugin, postLogin, SapphireClient } from '@sapphire/framework';\nimport { start } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class HmrPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postLogin](this: SapphireClient): void {\n\t\tstart(this.options.hmr);\n\t}\n}\n\nSapphireClient.plugins.registerPostLoginHook(HmrPlugin[postLogin], 'Hmr-PostLogin');\n"]}
|
package/dist/cjs/register.d.ts
CHANGED
package/dist/esm/index.mjs
CHANGED
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,cAAc;AAiBP,IAAM,UAAkB","sourcesContent":["export * from './lib/hmr';\n\nimport type { HMROptions } from './lib/hmr';\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\thmr?: HMROptions;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-hmr](https://github.com/sapphiredev/plugins/blob/main/packages/hmr) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '3.0.0-next.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,cAAc;AAiBP,IAAM,UAAkB","sourcesContent":["export * from './lib/hmr';\n\nimport type { HMROptions } from './lib/hmr';\n\ndeclare module 'discord.js' {\n\texport interface ClientOptions {\n\t\thmr?: HMROptions;\n\t}\n}\n\n/**\n * The [@sapphire/plugin-hmr](https://github.com/sapphiredev/plugins/blob/main/packages/hmr) version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '3.0.0-next.e11b911.0';\n"]}
|
package/dist/esm/register.d.mts
CHANGED
package/dist/esm/register.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __name } from './chunk-G5GHKT7C.mjs';
|
|
2
|
+
import { start } from './index.mjs';
|
|
2
3
|
import { SapphireClient, postLogin, Plugin } from '@sapphire/framework';
|
|
3
|
-
import './index.mjs';
|
|
4
|
-
import { start } from './lib/hmr.mjs';
|
|
5
4
|
|
|
6
5
|
var _HmrPlugin = class _HmrPlugin extends Plugin {
|
|
7
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAAA,SAAS,QAAQ,WAAW,sBAAsB;AAClD,
|
|
1
|
+
{"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAAA,OAAO;AAEP,SAAS,QAAQ,WAAW,sBAAsB;AAClD,SAAS,aAAa;AAKf,IAAM,aAAN,MAAM,mBAAkB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIrC,QAAe,SAAS,IAA8B;AACrD,UAAM,KAAK,QAAQ,GAAG;AAAA,EACvB;AACD;AAPsC;AAA/B,IAAM,YAAN;AASP,eAAe,QAAQ,sBAAsB,UAAU,SAAS,GAAG,eAAe","sourcesContent":["import './index';\n\nimport { Plugin, postLogin, SapphireClient } from '@sapphire/framework';\nimport { start } from './index';\n\n/**\n * @since 1.0.0\n */\nexport class HmrPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postLogin](this: SapphireClient): void {\n\t\tstart(this.options.hmr);\n\t}\n}\n\nSapphireClient.plugins.registerPostLoginHook(HmrPlugin[postLogin], 'Hmr-PostLogin');\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sapphire/plugin-hmr",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.e11b911.0",
|
|
4
4
|
"description": "Plugin for @sapphire/framework for hot module reloading for pieces",
|
|
5
5
|
"author": "@sapphire",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,8 +56,7 @@
|
|
|
56
56
|
"directory": "packages/hmr"
|
|
57
57
|
},
|
|
58
58
|
"files": [
|
|
59
|
-
"dist/"
|
|
60
|
-
"!dist/.tsbuildinfo"
|
|
59
|
+
"dist/"
|
|
61
60
|
],
|
|
62
61
|
"engines": {
|
|
63
62
|
"node": ">=v18",
|
|
@@ -81,7 +80,7 @@
|
|
|
81
80
|
},
|
|
82
81
|
"devDependencies": {
|
|
83
82
|
"@favware/cliff-jumper": "^2.2.3",
|
|
84
|
-
"@favware/rollup-type-bundler": "^3.2.
|
|
83
|
+
"@favware/rollup-type-bundler": "^3.2.1",
|
|
85
84
|
"concurrently": "^8.2.2",
|
|
86
85
|
"tsup": "^8.0.1",
|
|
87
86
|
"tsx": "^4.6.2",
|