@lynx-js/rspeedy 0.13.4 → 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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @lynx-js/rspeedy
|
|
2
2
|
|
|
3
|
+
## 0.13.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: opt-in the web platform's new binary output format ([#2281](https://github.com/lynx-family/lynx-stack/pull/2281))
|
|
8
|
+
|
|
9
|
+
Introduce a new flag to enable the new binary output format.
|
|
10
|
+
|
|
11
|
+
Currently it's an internal-use-only flag that will be removed in the future; set the corresponding environment variable to 'true' to enable it.
|
|
12
|
+
|
|
13
|
+
- Avoid generating `Rsbuild vundefined` in greeting message. ([#2275](https://github.com/lynx-family/lynx-stack/pull/2275))
|
|
14
|
+
|
|
15
|
+
- Updated dependencies []:
|
|
16
|
+
- @lynx-js/web-rsbuild-server-middleware@0.19.8
|
|
17
|
+
|
|
3
18
|
## 0.13.4
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
2
2
|
import "./1~node_path.js";
|
|
3
|
-
import {
|
|
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(
|
|
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);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { debug, logger } from "./src_cli_main_ts.js";
|
|
2
|
-
import { version } from "./1~src_version_ts.js";
|
|
1
|
+
import { debug, logger, version_version } from "./src_cli_main_ts.js";
|
|
3
2
|
const sAPI = Symbol.for('rspeedy.api');
|
|
4
3
|
function pluginAPI(config) {
|
|
5
4
|
return {
|
|
@@ -15,7 +14,7 @@ function pluginAPI(config) {
|
|
|
15
14
|
return exit(code);
|
|
16
15
|
},
|
|
17
16
|
logger: logger,
|
|
18
|
-
version:
|
|
17
|
+
version: version_version
|
|
19
18
|
});
|
|
20
19
|
}
|
|
21
20
|
};
|
package/dist/src_cli_main_ts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as __rspack_external_node_process_786449bf from "node:process";
|
|
2
2
|
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
3
|
-
import { createRsbuild, logger, mergeRsbuildConfig, rspack, version
|
|
3
|
+
import { createRsbuild, logger, mergeRsbuildConfig, rspack, version } from "@rsbuild/core";
|
|
4
4
|
__webpack_require__.add({
|
|
5
5
|
"../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js" (module) {
|
|
6
6
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
@@ -191,6 +191,11 @@ async function exit_onExit(signal) {
|
|
|
191
191
|
debug(`awaiting exit promises(length: ${exitPromises.length})...`);
|
|
192
192
|
await Promise.allSettled(exitPromises);
|
|
193
193
|
}
|
|
194
|
+
var package_namespaceObject = {
|
|
195
|
+
rE: "0.13.5"
|
|
196
|
+
};
|
|
197
|
+
const version_version = package_namespaceObject.rE;
|
|
198
|
+
const rspackVersion = rspack.rspackVersion;
|
|
194
199
|
function initNodeEnv(argv) {
|
|
195
200
|
if (!process.env['NODE_ENV']) {
|
|
196
201
|
const NODE_ENV = argv.includes('dev') || argv.includes('preview') ? 'development' : 'production';
|
|
@@ -202,12 +207,7 @@ async function main(argv) {
|
|
|
202
207
|
initNodeEnv(argv);
|
|
203
208
|
const { npm_execpath } = process.env;
|
|
204
209
|
if (!npm_execpath || npm_execpath.includes('npm-cli.js') || npm_execpath.includes('npx-cli.js')) console.log();
|
|
205
|
-
|
|
206
|
-
version: mod.version,
|
|
207
|
-
rsbuildVersion: mod.core_version,
|
|
208
|
-
rspackVersion: mod.rspackVersion
|
|
209
|
-
}));
|
|
210
|
-
logger.greet(` Rspeedy v${version} (Rsbuild v${rsbuildVersion}, Rspack v${rspackVersion})\n`);
|
|
210
|
+
logger.greet(` Rspeedy v${version_version} (Rsbuild v${version}, Rspack v${rspackVersion})\n`);
|
|
211
211
|
try {
|
|
212
212
|
const [{ Command }, { apply }] = await Promise.all([
|
|
213
213
|
import("./1~node_modules_pnpm_commander_13_1_0_node_modules_commander_esm_mjs.js").then((mod)=>({
|
|
@@ -232,4 +232,4 @@ async function main(argv) {
|
|
|
232
232
|
return exit_exit(1);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
export {
|
|
235
|
+
export { createRsbuild, debug, debugList, exit_exit, isDebug, logger, main, mergeRsbuildConfig, version_version };
|
package/dist/src_index_ts.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/rspeedy",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.5",
|
|
4
4
|
"description": "A webpack/rspack-based frontend toolchain for Lynx",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@lynx-js/websocket": "^0.0.4"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@microsoft/api-extractor": "7.
|
|
61
|
+
"@microsoft/api-extractor": "7.57.6",
|
|
62
62
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
63
63
|
"chokidar": "^4.0.3",
|
|
64
64
|
"commander": "^13.1.0",
|
package/dist/1~src_version_ts.js
DELETED