@modern-js/app-tools 2.62.1-alpha.0 → 2.62.1-alpha.1
Sign up to get free protection for your applications and to get access to all the features.
package/dist/cjs/new/run.js
CHANGED
@@ -29,7 +29,7 @@ var import_constants = require("./constants");
|
|
29
29
|
var import_getConfigFile = require("./getConfigFile");
|
30
30
|
var import_loadPlugins = require("./loadPlugins");
|
31
31
|
var import_utils2 = require("./utils");
|
32
|
-
async function run({ cwd, version, internalPlugins, forceAutoLoadPlugins, packageJsonConfig, configFile }) {
|
32
|
+
async function run({ cwd, initialLog, version, internalPlugins, forceAutoLoadPlugins, packageJsonConfig, configFile }) {
|
33
33
|
const command = process.argv[2];
|
34
34
|
const cliParams = (0, import_utils.minimist)(process.argv.slice(2));
|
35
35
|
const SUPPORT_CONFIG_PARAM_COMMANDS = [
|
@@ -53,7 +53,7 @@ async function run({ cwd, version, internalPlugins, forceAutoLoadPlugins, packag
|
|
53
53
|
const plugins = await (0, import_loadPlugins.loadInternalPlugins)(appDirectory, internalPlugins === null || internalPlugins === void 0 ? void 0 : internalPlugins.cli, internalPlugins === null || internalPlugins === void 0 ? void 0 : internalPlugins.autoLoad, autoLoadPlugins, forceAutoLoadPlugins);
|
54
54
|
await (0, import_run.run)({
|
55
55
|
cwd,
|
56
|
-
initialLog: `Modern.js Framework v${version}`,
|
56
|
+
initialLog: initialLog || `Modern.js Framework v${version}`,
|
57
57
|
configFile: customConfigFile || (0, import_getConfigFile.getConfigFile)(configFile),
|
58
58
|
packageJsonConfig: packageJsonConfig || import_constants.PACKAGE_JSON_CONFIG_NAME,
|
59
59
|
internalPlugins: plugins,
|
package/dist/esm/new/run.js
CHANGED
@@ -13,11 +13,11 @@ function run(_) {
|
|
13
13
|
}
|
14
14
|
function _run() {
|
15
15
|
_run = _async_to_generator(function(param) {
|
16
|
-
var cwd, version, internalPlugins, forceAutoLoadPlugins, packageJsonConfig, configFile, command, cliParams, SUPPORT_CONFIG_PARAM_COMMANDS, customConfigFile, appDirectory, autoLoadPlugins, plugins;
|
16
|
+
var cwd, initialLog, version, internalPlugins, forceAutoLoadPlugins, packageJsonConfig, configFile, command, cliParams, SUPPORT_CONFIG_PARAM_COMMANDS, customConfigFile, appDirectory, autoLoadPlugins, plugins;
|
17
17
|
return _ts_generator(this, function(_state) {
|
18
18
|
switch (_state.label) {
|
19
19
|
case 0:
|
20
|
-
cwd = param.cwd, version = param.version, internalPlugins = param.internalPlugins, forceAutoLoadPlugins = param.forceAutoLoadPlugins, packageJsonConfig = param.packageJsonConfig, configFile = param.configFile;
|
20
|
+
cwd = param.cwd, initialLog = param.initialLog, version = param.version, internalPlugins = param.internalPlugins, forceAutoLoadPlugins = param.forceAutoLoadPlugins, packageJsonConfig = param.packageJsonConfig, configFile = param.configFile;
|
21
21
|
command = process.argv[2];
|
22
22
|
cliParams = minimist(process.argv.slice(2));
|
23
23
|
SUPPORT_CONFIG_PARAM_COMMANDS = [
|
@@ -57,7 +57,7 @@ function _run() {
|
|
57
57
|
4,
|
58
58
|
CLIPluginRun({
|
59
59
|
cwd,
|
60
|
-
initialLog: "Modern.js Framework v".concat(version),
|
60
|
+
initialLog: initialLog || "Modern.js Framework v".concat(version),
|
61
61
|
configFile: customConfigFile || getConfigFile(configFile),
|
62
62
|
packageJsonConfig: packageJsonConfig || PACKAGE_JSON_CONFIG_NAME,
|
63
63
|
internalPlugins: plugins,
|
package/dist/esm-node/new/run.js
CHANGED
@@ -6,7 +6,7 @@ import { PACKAGE_JSON_CONFIG_NAME } from "./constants";
|
|
6
6
|
import { getConfigFile } from "./getConfigFile";
|
7
7
|
import { loadInternalPlugins } from "./loadPlugins";
|
8
8
|
import { getIsAutoLoadPlugins } from "./utils";
|
9
|
-
async function run({ cwd, version, internalPlugins, forceAutoLoadPlugins, packageJsonConfig, configFile }) {
|
9
|
+
async function run({ cwd, initialLog, version, internalPlugins, forceAutoLoadPlugins, packageJsonConfig, configFile }) {
|
10
10
|
const command = process.argv[2];
|
11
11
|
const cliParams = minimist(process.argv.slice(2));
|
12
12
|
const SUPPORT_CONFIG_PARAM_COMMANDS = [
|
@@ -30,7 +30,7 @@ async function run({ cwd, version, internalPlugins, forceAutoLoadPlugins, packag
|
|
30
30
|
const plugins = await loadInternalPlugins(appDirectory, internalPlugins === null || internalPlugins === void 0 ? void 0 : internalPlugins.cli, internalPlugins === null || internalPlugins === void 0 ? void 0 : internalPlugins.autoLoad, autoLoadPlugins, forceAutoLoadPlugins);
|
31
31
|
await CLIPluginRun({
|
32
32
|
cwd,
|
33
|
-
initialLog: `Modern.js Framework v${version}`,
|
33
|
+
initialLog: initialLog || `Modern.js Framework v${version}`,
|
34
34
|
configFile: customConfigFile || getConfigFile(configFile),
|
35
35
|
packageJsonConfig: packageJsonConfig || PACKAGE_JSON_CONFIG_NAME,
|
36
36
|
internalPlugins: plugins,
|
package/dist/types/new/run.d.ts
CHANGED
@@ -8,6 +8,7 @@ export interface RunOptions {
|
|
8
8
|
autoLoad?: InternalPlugins;
|
9
9
|
};
|
10
10
|
forceAutoLoadPlugins?: boolean;
|
11
|
+
initialLog?: string;
|
11
12
|
version: string;
|
12
13
|
}
|
13
|
-
export declare function run({ cwd, version, internalPlugins, forceAutoLoadPlugins, packageJsonConfig, configFile, }: RunOptions): Promise<void>;
|
14
|
+
export declare function run({ cwd, initialLog, version, internalPlugins, forceAutoLoadPlugins, packageJsonConfig, configFile, }: RunOptions): Promise<void>;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.62.1-alpha.
|
18
|
+
"version": "2.62.1-alpha.1",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -96,20 +96,20 @@
|
|
96
96
|
"mlly": "^1.6.1",
|
97
97
|
"pkg-types": "^1.1.0",
|
98
98
|
"std-env": "^3.7.0",
|
99
|
-
"@modern-js/
|
99
|
+
"@modern-js/plugin": "2.62.0",
|
100
100
|
"@modern-js/plugin-v2": "2.60.6",
|
101
101
|
"@modern-js/plugin-i18n": "2.62.0",
|
102
|
-
"@modern-js/node-bundle-require": "2.62.0",
|
103
|
-
"@modern-js/plugin": "2.62.0",
|
104
|
-
"@modern-js/server": "2.62.0",
|
105
102
|
"@modern-js/plugin-data-loader": "2.62.0",
|
106
103
|
"@modern-js/prod-server": "2.62.0",
|
104
|
+
"@modern-js/core": "2.62.0",
|
105
|
+
"@modern-js/server": "2.62.0",
|
106
|
+
"@modern-js/node-bundle-require": "2.62.0",
|
107
107
|
"@modern-js/rsbuild-plugin-esbuild": "2.62.0",
|
108
108
|
"@modern-js/server-core": "2.62.0",
|
109
|
-
"@modern-js/server-utils": "2.62.0",
|
110
109
|
"@modern-js/types": "2.62.0",
|
110
|
+
"@modern-js/utils": "2.62.0",
|
111
111
|
"@modern-js/uni-builder": "2.62.0",
|
112
|
-
"@modern-js/utils": "2.62.0"
|
112
|
+
"@modern-js/server-utils": "2.62.0"
|
113
113
|
},
|
114
114
|
"devDependencies": {
|
115
115
|
"@rsbuild/plugin-webpack-swc": "~1.0.3",
|