@infomaximum/package-cli 2.15.1 → 2.16.1
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.16.1](https://github.com/Infomaximum/package-cli/compare/v2.16.0...v2.16.1) (2025-03-05)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* node version ([9b6a174](https://github.com/Infomaximum/package-cli/commit/9b6a174e5b33f223656d6b8bde70209cea6d1a93))
|
|
11
|
+
* **template:** версия типов nodejs ([b0ed826](https://github.com/Infomaximum/package-cli/commit/b0ed82654fd3abe0a52d8083df033a1071540d5c))
|
|
12
|
+
|
|
13
|
+
## [2.16.0](https://github.com/Infomaximum/package-cli/compare/v2.15.1...v2.16.0) (2025-03-04)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Features
|
|
17
|
+
|
|
18
|
+
* добавлено генерирование и поддержка .browserslistrc ([2aaa870](https://github.com/Infomaximum/package-cli/commit/2aaa870613a5e3ed944ed184b7a34922fe7bd1c7))
|
|
19
|
+
|
|
5
20
|
### [2.15.1](https://github.com/Infomaximum/package-cli/compare/v2.15.0...v2.15.1) (2025-03-03)
|
|
6
21
|
|
|
7
22
|
## [2.15.0](https://github.com/Infomaximum/package-cli/compare/v2.14.0...v2.15.0) (2025-03-03)
|
|
@@ -3,12 +3,15 @@ import { systemRequire } from "../../../utils.js";
|
|
|
3
3
|
export const getCommonIntegrationConfig = (mode, PATHS) => {
|
|
4
4
|
return {
|
|
5
5
|
mode,
|
|
6
|
+
target: "browserslist",
|
|
6
7
|
entry: PATHS.moduleIndex,
|
|
7
8
|
output: {
|
|
8
9
|
filename: PATHS.outputFile,
|
|
9
10
|
path: PATHS.appBuildPath,
|
|
10
11
|
clean: true,
|
|
11
12
|
libraryTarget: "module",
|
|
13
|
+
chunkFormat: false,
|
|
14
|
+
asyncChunks: false,
|
|
12
15
|
},
|
|
13
16
|
experiments: {
|
|
14
17
|
outputModule: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
2
|
import { CUSTOM_PACKAGE_CLI_LIB_NAME } from "../../const.js";
|
|
3
|
-
import { INTEGRATION_BABEL_CONFIG, INTEGRATION_ESLINTRC, INTEGRATION_GITIGNORE, INTEGRATION_TSCONFIG_JSON, INTEGRATION_VITEST_CONFIG } from "../templates/integrationConfigs.js";
|
|
3
|
+
import { INTEGRATION_BABEL_CONFIG, INTEGRATION_BROWSERLIST_CONFIG, INTEGRATION_ESLINTRC, INTEGRATION_GITIGNORE, INTEGRATION_TSCONFIG_JSON, INTEGRATION_VITEST_CONFIG, } from "../templates/integrationConfigs.js";
|
|
4
4
|
import { getPackageActions } from "../../package/scripts/actions.js";
|
|
5
5
|
import { INTEGRATION_INDEX_TEMPLATE } from "../templates/integrationIndex.js";
|
|
6
6
|
import { INTEGRATION_PACKAGE_JSON_TEMPLATE } from "../templates/integrationPackageJson.js";
|
|
@@ -24,6 +24,11 @@ const actions = ({ packageCliVersion, integrationSdkVersion }) => {
|
|
|
24
24
|
path: "babel.config.js",
|
|
25
25
|
template: INTEGRATION_BABEL_CONFIG,
|
|
26
26
|
},
|
|
27
|
+
{
|
|
28
|
+
type: "add",
|
|
29
|
+
path: ".browserslistrc",
|
|
30
|
+
template: INTEGRATION_BROWSERLIST_CONFIG,
|
|
31
|
+
},
|
|
27
32
|
{
|
|
28
33
|
type: "add",
|
|
29
34
|
path: ".gitignore",
|
|
@@ -14,12 +14,22 @@ export const INTEGRATION_TSCONFIG_JSON = `\
|
|
|
14
14
|
`;
|
|
15
15
|
export const INTEGRATION_BABEL_CONFIG = `\
|
|
16
16
|
module.exports = {
|
|
17
|
+
sourceType: "unambiguous",
|
|
17
18
|
presets: [
|
|
18
|
-
|
|
19
|
+
[
|
|
20
|
+
"@babel/preset-env",
|
|
21
|
+
{
|
|
22
|
+
useBuiltIns: "usage",
|
|
23
|
+
corejs: "3.41",
|
|
24
|
+
},
|
|
25
|
+
],
|
|
19
26
|
"@babel/preset-typescript",
|
|
20
27
|
],
|
|
21
28
|
};
|
|
22
29
|
`;
|
|
30
|
+
export const INTEGRATION_BROWSERLIST_CONFIG = `\
|
|
31
|
+
node >=14
|
|
32
|
+
`;
|
|
23
33
|
export const INTEGRATION_GITIGNORE = `\
|
|
24
34
|
# dependencies
|
|
25
35
|
/node_modules
|
|
@@ -21,6 +21,8 @@ export const INTEGRATION_PACKAGE_JSON_TEMPLATE = `\
|
|
|
21
21
|
"@eslint/js": "^9.19.0",
|
|
22
22
|
"${INTEGRATION_SDK_LIB_NAME}": "^{{integrationSdkVersion}}",
|
|
23
23
|
"${CUSTOM_PACKAGE_CLI_LIB_NAME}": "^{{packageCliVersion}}",
|
|
24
|
+
"@types/node": "^0",
|
|
25
|
+
"core-js": "^3.41.0",
|
|
24
26
|
"eslint": "^9.19.0",
|
|
25
27
|
"globals": "^15.14.0",
|
|
26
28
|
"typescript": "^5.7.2",
|