@lynx-js/rspeedy 0.13.3 → 0.13.5

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,6 +1,6 @@
1
1
  import { __webpack_require__ } from "./rslib-runtime.js";
2
2
  import "./1~node_path.js";
3
- import { version } from "./1~src_version_ts.js";
3
+ import { version_version } from "./src_cli_main_ts.js";
4
4
  const external_node_path_ = __webpack_require__("node:path");
5
5
  function applyCommonOptions(command) {
6
6
  command.option('-c --config <config>', 'specify the configuration file, can be a relative or absolute path').option('--env-mode <mode>', 'specify the env mode to load the .env.[mode] file').option('--no-env', 'disable loading `.env` files"').option('-m --mode <mode>', 'specify the build mode, can be `development`, `production` or `none`').option('-r --root <root>', 'set the project root directory (absolute path or relative to cwd)');
@@ -11,7 +11,7 @@ function resolveRoot(cwd, root) {
11
11
  }
12
12
  function apply(program) {
13
13
  const cwd = process.cwd();
14
- program.name('rspeedy').usage('<command> [options]').version(version).showHelpAfterError(true).showSuggestionAfterError(true).exitOverride();
14
+ program.name('rspeedy').usage('<command> [options]').version(version_version).showHelpAfterError(true).showSuggestionAfterError(true).exitOverride();
15
15
  const buildCommand = program.command('build');
16
16
  buildCommand.description('Build the project in production mode').option('--environment <name...>', 'specify the name of environment to build').option('--watch', 'Enable watch mode to automatically rebuild on file changes').action(async (buildOptions)=>{
17
17
  const actualRoot = resolveRoot(cwd, buildOptions.root);