@infomaximum/package-cli 1.5.1 → 1.6.0
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 +7 -0
- package/dist/scripts/widget/build.js +4 -3
- package/dist/scripts/widget/start.js +1 -1
- package/dist/utils.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [1.6.0](https://github.com/Infomaximum/package-cli/compare/v1.5.1...v1.6.0) (2023-12-01)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* при выполнении команды build:dev собирается только манифест виджета ([2ddd763](https://github.com/Infomaximum/package-cli/commit/2ddd763fd91e13c6301165798dc771ed62a7f8a0))
|
|
11
|
+
|
|
5
12
|
### [1.5.1](https://github.com/Infomaximum/package-cli/compare/v1.5.0...v1.5.1) (2023-12-01)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -11,7 +11,6 @@ import { getZipWidgetPlugin } from "../../configs/webpack/sections/plugins/zipWi
|
|
|
11
11
|
export const runBuild = (args) => __awaiter(void 0, void 0, void 0, function* () {
|
|
12
12
|
const mode = "production";
|
|
13
13
|
const { entry, host, port } = args;
|
|
14
|
-
yield checkLatestLibsVersion();
|
|
15
14
|
const PATHS = generatePaths({
|
|
16
15
|
entryPath: entry,
|
|
17
16
|
});
|
|
@@ -23,6 +22,7 @@ export const runBuild = (args) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
23
22
|
host,
|
|
24
23
|
port,
|
|
25
24
|
}));
|
|
25
|
+
pluginsSection.entry = PATHS.manifestJson;
|
|
26
26
|
}
|
|
27
27
|
const configSections = [
|
|
28
28
|
getCommonWidgetConfig(mode, PATHS),
|
|
@@ -45,7 +45,7 @@ export const runBuild = (args) => __awaiter(void 0, void 0, void 0, function* ()
|
|
|
45
45
|
});
|
|
46
46
|
function build(config) {
|
|
47
47
|
const compiler = webpack(config);
|
|
48
|
-
return compiler.run((err, stats) => {
|
|
48
|
+
return compiler.run((err, stats) => __awaiter(this, void 0, void 0, function* () {
|
|
49
49
|
if (err) {
|
|
50
50
|
console.error(err.stack || err);
|
|
51
51
|
if (err === null || err === void 0 ? void 0 : err.details) {
|
|
@@ -58,5 +58,6 @@ function build(config) {
|
|
|
58
58
|
chunks: false,
|
|
59
59
|
colors: true,
|
|
60
60
|
}));
|
|
61
|
-
|
|
61
|
+
yield checkLatestLibsVersion();
|
|
62
|
+
}));
|
|
62
63
|
}
|
|
@@ -14,7 +14,6 @@ export const runDevServer = (options) => __awaiter(void 0, void 0, void 0, funct
|
|
|
14
14
|
const PATHS = generatePaths({
|
|
15
15
|
entryPath: options.entry,
|
|
16
16
|
});
|
|
17
|
-
yield checkLatestLibsVersion();
|
|
18
17
|
try {
|
|
19
18
|
yield run(PATHS, options);
|
|
20
19
|
}
|
|
@@ -58,5 +57,6 @@ const run = (PATHS, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
58
57
|
devServer.close();
|
|
59
58
|
process.exit();
|
|
60
59
|
});
|
|
60
|
+
yield checkLatestLibsVersion();
|
|
61
61
|
yield devServer.start();
|
|
62
62
|
});
|
package/dist/utils.js
CHANGED
|
@@ -75,8 +75,10 @@ export function checkLatestVersion(libName) {
|
|
|
75
75
|
export function checkLatestLibsVersion() {
|
|
76
76
|
return __awaiter(this, void 0, void 0, function* () {
|
|
77
77
|
try {
|
|
78
|
-
yield
|
|
79
|
-
|
|
78
|
+
yield Promise.allSettled([
|
|
79
|
+
checkLatestVersion(CUSTOM_WIDGET_LIB_NAME),
|
|
80
|
+
checkLatestVersion(CUSTOM_PACKAGE_CLI_LIB_NAME),
|
|
81
|
+
]);
|
|
80
82
|
}
|
|
81
83
|
catch (error) { }
|
|
82
84
|
});
|