@unsetsoft/ryunixjs 0.2.6-alpha.5 → 0.2.6-alpha.6

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/bin/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #! /usr/bin/env node
2
2
  const yargs = require("yargs");
3
3
  const { hideBin } = require("yargs/helpers");
4
- const runServer = require("./serve");
4
+ const { server } = require("./serve");
5
5
  const serv = {
6
6
  command: "server",
7
7
  describe: "Run server",
8
8
  handler: async (arg) => {
9
- runServer();
9
+ await server.start();
10
10
  },
11
11
  };
12
12
  yargs(hideBin(process.argv)).command(serv).parse();
package/bin/serve.js CHANGED
@@ -6,15 +6,4 @@ const compiler = Webpack(webpackConfig);
6
6
  const devServerOptions = { ...webpackConfig.devServer, open: true };
7
7
  const server = new WebpackDevServer(devServerOptions, compiler);
8
8
 
9
- const runServer = async () => {
10
- console.log("Starting server...");
11
- await server.start();
12
-
13
- server.startCallback(() => {
14
- console.log(
15
- `Successfully started server on http://localhost:${webpackConfig.devServer.port}`
16
- );
17
- });
18
- };
19
-
20
- module.exports = runServer;
9
+ module.exports = { server };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unsetsoft/ryunixjs",
3
- "version": "0.2.6-alpha.5",
3
+ "version": "0.2.6-alpha.6",
4
4
  "license": "MIT",
5
5
  "main": "./dist/Ryunix.js",
6
6
  "private": false,