@infomaximum/package-cli 2.4.0 → 2.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
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
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
|
+
## [2.6.0](https://github.com/Infomaximum/package-cli/compare/v2.5.0...v2.6.0) (2024-08-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* обновлены версии библиотек в шаблоне виджета ([88c9101](https://github.com/Infomaximum/package-cli/commit/88c91018fe06cb4a696c31c2260616df8811b45c))
|
|
11
|
+
|
|
12
|
+
## [2.5.0](https://github.com/Infomaximum/package-cli/compare/v2.3.0...v2.5.0) (2024-08-15)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* добавлен флаг noUncheckedIndexedAccess в шаблон tsconfig виджета ([fee3828](https://github.com/Infomaximum/package-cli/commit/fee38283120e9fe9e187f0ff434a1a4d2ac8e150))
|
|
18
|
+
* добавлено поле min_version_platform в манифест пакета ([ff562f3](https://github.com/Infomaximum/package-cli/commit/ff562f35d94345e1a80e4ee86adebbf79b38eb00))
|
|
19
|
+
|
|
5
20
|
## [2.4.0](https://github.com/Infomaximum/package-cli/compare/v2.3.0...v2.4.0) (2024-07-31)
|
|
6
21
|
|
|
7
22
|
|
|
@@ -7,7 +7,7 @@ import { isExist, removeServiceFieldsForDevelopment, systemRequire, } from "../.
|
|
|
7
7
|
import { BUILD_ARCHIVE_EXT, DEV_POSTFIX, MANIFEST_REG_EXP, } from "../../../const.js";
|
|
8
8
|
import { assertSimple } from "@infomaximum/assert";
|
|
9
9
|
const packageFilename = "main.js";
|
|
10
|
-
export const getPackageBuildConfig = (
|
|
10
|
+
export const getPackageBuildConfig = (_a) => __awaiter(void 0, [_a], void 0, function* ({ mode, PATHS, isBuildDevMode, entityArchivePath, }) {
|
|
11
11
|
const entityVersion = systemRequire(PATHS.appPackageJson).version;
|
|
12
12
|
const manifestPackageName = systemRequire(PATHS.packageManifestPath).name;
|
|
13
13
|
let entityPackageName = `${manifestPackageName}_${entityVersion}`;
|
|
@@ -8,6 +8,7 @@ export const WIDGET_TSCONFIG_JSON = `\
|
|
|
8
8
|
"esModuleInterop": true,
|
|
9
9
|
"allowSyntheticDefaultImports": true,
|
|
10
10
|
"strict": true,
|
|
11
|
+
"noUncheckedIndexedAccess": true,
|
|
11
12
|
"forceConsistentCasingInFileNames": true,
|
|
12
13
|
"noFallthroughCasesInSwitch": true,
|
|
13
14
|
"incremental": true,
|
|
@@ -15,29 +15,29 @@ export const WIDGET_PACKAGE_JSON_TEMPLATE = `\
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"${WIDGET_SDK_LIB_NAME}": "{{widgetSDKVersion}}",
|
|
18
|
-
"react": "18.
|
|
19
|
-
"react-dom": "18.
|
|
18
|
+
"react": "18.3.1",
|
|
19
|
+
"react-dom": "18.3.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@babel/core": "7.
|
|
23
|
-
"@babel/preset-env": "7.
|
|
24
|
-
"@babel/preset-react": "7.
|
|
25
|
-
"@babel/preset-typescript": "7.
|
|
22
|
+
"@babel/core": "7.25.2",
|
|
23
|
+
"@babel/preset-env": "7.25.4",
|
|
24
|
+
"@babel/preset-react": "7.24.7",
|
|
25
|
+
"@babel/preset-typescript": "7.24.7",
|
|
26
26
|
"${CUSTOM_PACKAGE_CLI_LIB_NAME}": "^{{packageCliVersion}}",
|
|
27
27
|
"@types/jest": "29.5.11",
|
|
28
|
-
"@types/react": "18.
|
|
29
|
-
"@types/react-dom": "18.
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "
|
|
31
|
-
"@typescript-eslint/parser": "
|
|
32
|
-
"eslint": "8.
|
|
33
|
-
"eslint-plugin-react": "7.
|
|
34
|
-
"eslint-plugin-react-hooks": "4.6.
|
|
28
|
+
"@types/react": "18.3.4",
|
|
29
|
+
"@types/react-dom": "18.3.0",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "8.3.0",
|
|
31
|
+
"@typescript-eslint/parser": "8.3.0",
|
|
32
|
+
"eslint": "8.57.0",
|
|
33
|
+
"eslint-plugin-react": "7.35.0",
|
|
34
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
35
35
|
"jest": "29.7.0",
|
|
36
36
|
"jest-canvas-mock": "2.5.2",
|
|
37
37
|
"jest-environment-jsdom": "29.7.0",
|
|
38
38
|
"jest-environment-jsdom-global": "4.0.0",
|
|
39
39
|
"prettier": "3.1.1",
|
|
40
|
-
"typescript": "
|
|
40
|
+
"typescript": "5.5.4"
|
|
41
41
|
},
|
|
42
42
|
"browserslist": [
|
|
43
43
|
"defaults and supports es6-module"
|
package/dist/widget/utils.js
CHANGED
|
@@ -5,8 +5,8 @@ import { getLatestVersionOfLibrary, getLibraryVersionInProject, systemRequire, }
|
|
|
5
5
|
import { WIDGET_SDK_LIB_NAME } from "./const.js";
|
|
6
6
|
import { CUSTOM_PACKAGE_CLI_LIB_NAME } from "../const.js";
|
|
7
7
|
export function checkLatestVersion(libName) {
|
|
8
|
-
var _a, _b, _c;
|
|
9
8
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9
|
+
var _a, _b, _c;
|
|
10
10
|
const libVersionInProject = yield getLibraryVersionInProject(libName);
|
|
11
11
|
if (!libVersionInProject)
|
|
12
12
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infomaximum/package-cli",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"exports": "./dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"style-loader": "^3.3.3",
|
|
54
54
|
"terser-webpack-plugin": "^5.3.9",
|
|
55
55
|
"tsconfig-paths-webpack-plugin": "^4.1.0",
|
|
56
|
-
"webpack": "^5.
|
|
56
|
+
"webpack": "^5.94.0",
|
|
57
57
|
"webpack-dev-server": "^4.15.1",
|
|
58
58
|
"webpack-merge": "^5.10.0",
|
|
59
59
|
"zip-webpack-plugin": "^4.0.1"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@types/zip-webpack-plugin": "^3.0.6",
|
|
66
66
|
"prettier": "^3.1.1",
|
|
67
67
|
"rimraf": "^5.0.5",
|
|
68
|
-
"typescript": "~5.
|
|
68
|
+
"typescript": "~5.5.4"
|
|
69
69
|
},
|
|
70
70
|
"resolutions": {
|
|
71
71
|
"wrap-ansi": "7.0.0",
|