@rspack/cli 0.0.0-20221103155215 → 0.0.0-20221104050753

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.
@@ -1 +1 @@
1
- {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,qBAAa,YAAa,YAAW,aAAa;IAC3C,KAAK,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAa1C"}
1
+ {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,qBAAa,YAAa,YAAW,aAAa;IAC3C,KAAK,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;CAY1C"}
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ServeCommand = void 0;
4
4
  const dev_server_1 = require("@rspack/dev-server");
5
5
  const options_1 = require("../utils/options");
6
- const core_1 = require("@rspack/core");
7
6
  class ServeCommand {
8
7
  async apply(cli) {
9
8
  cli.program.command(["serve [entry..]", "server", "s"], "run the rspack dev server.", options_1.commonOptions, async (options) => {
10
- const config = await cli.loadConfig(options);
11
- const compiler = (0, core_1.createCompiler)(config);
9
+ const compiler = await cli.createCompiler(options);
12
10
  const server = new dev_server_1.RspackDevServer(compiler);
13
11
  await server.start();
14
12
  });
@@ -1 +1 @@
1
- {"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":";;;AACA,mDAAqD;AAErD,8CAAiD;AACjD,uCAA8C;AAC9C,MAAa,YAAY;IACxB,KAAK,CAAC,KAAK,CAAC,GAAc;QACzB,GAAG,CAAC,OAAO,CAAC,OAAO,CAClB,CAAC,iBAAiB,EAAE,QAAQ,EAAE,GAAG,CAAC,EAClC,4BAA4B,EAC5B,uBAAa,EACb,KAAK,EAAC,OAAO,EAAC,EAAE;YACf,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;YAC7C,MAAM,QAAQ,GAAG,IAAA,qBAAc,EAAC,MAAM,CAAC,CAAC;YACxC,MAAM,MAAM,GAAG,IAAI,4BAAe,CAAC,QAAQ,CAAC,CAAC;YAC7C,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC,CACD,CAAC;IACH,CAAC;CACD;AAdD,oCAcC"}
1
+ {"version":3,"file":"serve.js","sourceRoot":"","sources":["../../src/commands/serve.ts"],"names":[],"mappings":";;;AACA,mDAAqD;AAErD,8CAAiD;AAEjD,MAAa,YAAY;IACxB,KAAK,CAAC,KAAK,CAAC,GAAc;QACzB,GAAG,CAAC,OAAO,CAAC,OAAO,CAClB,CAAC,iBAAiB,EAAE,QAAQ,EAAE,GAAG,CAAC,EAClC,4BAA4B,EAC5B,uBAAa,EACb,KAAK,EAAC,OAAO,EAAC,EAAE;YACf,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YACnD,MAAM,MAAM,GAAG,IAAI,4BAAe,CAAC,QAAQ,CAAC,CAAC;YAC7C,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACtB,CAAC,CACD,CAAC;IACH,CAAC;CACD;AAbD,oCAaC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "0.0.0-20221103155215",
3
+ "version": "0.0.0-20221104050753",
4
4
  "bin": {
5
5
  "rspack": "./bin/rspack"
6
6
  },
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@discoveryjs/json-ext": "^0.5.7",
22
- "@rspack/core": "0.0.0-20221103155215",
23
- "@rspack/dev-server": "0.0.0-20221103155215",
22
+ "@rspack/core": "0.0.0-20221104050753",
23
+ "@rspack/dev-server": "0.0.0-20221104050753",
24
24
  "colorette": "2.0.19",
25
25
  "webpack": "5.74.0",
26
26
  "webpack-bundle-analyzer": "4.6.1",