@infomaximum/package-cli 2.22.4 → 2.22.6
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 +9 -0
- package/dist/integration/templates/integrationConfigs.d.ts +1 -1
- package/dist/integration/templates/integrationConfigs.js +8 -6
- package/dist/integration/templates/integrationPackageJson.d.ts +1 -1
- package/dist/integration/templates/integrationPackageJson.js +4 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
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.22.6](https://github.com/Infomaximum/package-cli/compare/v2.22.5...v2.22.6) (2025-04-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* исправлена работа eslint в шаблоне ([3ce5faf](https://github.com/Infomaximum/package-cli/commit/3ce5faf22ec97d6071af2b9790560864af7d6149))
|
|
11
|
+
|
|
12
|
+
### [2.22.5](https://github.com/Infomaximum/package-cli/compare/v2.22.4...v2.22.5) (2025-04-04)
|
|
13
|
+
|
|
5
14
|
### [2.22.4](https://github.com/Infomaximum/package-cli/compare/v2.22.3...v2.22.4) (2025-04-04)
|
|
6
15
|
|
|
7
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const INTEGRATION_TSCONFIG_JSON = "{\n \"compilerOptions\": {\n \"target\": \"ES2015\",\n \"lib\": [\"ES2015\"],\n \"types\": [\"@infomaximum/integration-sdk\"],\n \"module\": \"Preserve\",\n \"esModuleInterop\": true,\n \"forceConsistentCasingInFileNames\": true,\n \"strict\": true,\n \"skipLibCheck\": true,\n \"isolatedModules\": false\n },\n \"include\": [\"src\"]\n}\n";
|
|
2
2
|
export declare const INTEGRATION_GITIGNORE = "# dependencies\n/node_modules\n/.pnp\n.pnp.js\n\n# testing\n/coverage\n\n# production\n/dist\n\n#documentation\n/docs\n\n# misc\n.DS_Store\n.env\n.env.local\n.env.development.local\n.env.test.local\n.env.production.local\n\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n/build\n.ultra.cache.json\n*.tsbuildinfo\n.node-xmlhttprequest-content-*\n.node-xmlhttprequest-sync-*\n";
|
|
3
3
|
export declare const INTEGRATION_BABEL_CONFIG = "module.exports = {\n sourceType: \"unambiguous\",\n presets: [],\n plugins: [\"@babel/plugin-transform-block-scoping\"],\n};\n";
|
|
4
|
-
export declare const INTEGRATION_ESLINTRC = "
|
|
4
|
+
export declare const INTEGRATION_ESLINTRC = "const js = require(\"@eslint/js\");\nconst globals = require(\"globals\");\nconst tseslint = require(\"typescript-eslint\");\n\nmodule.exports = tseslint.config(\n { ignores: [\"dist\", \"build\", \"node_modules\"] },\n {\n extends: [js.configs.recommended, ...tseslint.configs.recommended],\n files: [\"**/*.{ts,tsx}\"],\n languageOptions: {\n ecmaVersion: 2020,\n globals: globals.browser,\n },\n plugins: {},\n rules: {\n \"@typescript-eslint/no-explicit-any\": \"warn\",\n },\n }\n);\n";
|
|
5
5
|
export declare const INTEGRATION_VITEST_CONFIG = "import { defineConfig } from 'vitest/config';\n\nexport default defineConfig({\n test: {\n coverage: {\n provider:'v8',\n exclude: [\n '**/*.config.*',\n 'src/index.ts',\n ],\n },\n },\n});\n";
|
|
6
6
|
export declare const INTEGRATION_RC_CONFIG = "//@ts-check\n\nrequire(\"dotenv\").config();\n\nconst query = `\nmutation UpdateIntegration($id: Long!, $js_code: String) {\n automation {\n integration {\n update(id: $id, js_code: $js_code) {\n id\n }\n }\n }\n}`;\n\n/**\n * @type {import(\"@infomaximum/package-cli\").IntegrationRCConfig}\n */\nconst config = {\n entry: \"src/index.ts\",\n fetcher: (integrationCode) => {\n return {\n graphqlUrl: process.env.GRAPHQL_URL,\n apiKey: process.env.API_KEY,\n query,\n variables: {\n id: process.env.INTEGRATION_ID,\n js_code: integrationCode,\n },\n };\n },\n\n debugging: {\n seriesIterations: 3,\n commonAuthData: {\n BASE_URL: process.env.WEBHOOK_URL\n },\n blocks: {},\n connections: {},\n },\n};\n\nmodule.exports = config;\n";
|
|
7
7
|
export declare const INTEGRATION_ENV_EXAMPLE_CONFIG = "INTEGRATION_ID=0\nGRAPHQL_URL=https://example.com/graphql\nAPI_KEY=123456789qwertyuiop\nWEBHOOK_URL=https://example.com/webhook\n";
|
|
@@ -57,12 +57,12 @@ module.exports = {
|
|
|
57
57
|
};
|
|
58
58
|
`;
|
|
59
59
|
export const INTEGRATION_ESLINTRC = `\
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
const js = require("@eslint/js");
|
|
61
|
+
const globals = require("globals");
|
|
62
|
+
const tseslint = require("typescript-eslint");
|
|
63
63
|
|
|
64
|
-
|
|
65
|
-
{ ignores: ["dist", "build"] },
|
|
64
|
+
module.exports = tseslint.config(
|
|
65
|
+
{ ignores: ["dist", "build", "node_modules"] },
|
|
66
66
|
{
|
|
67
67
|
extends: [js.configs.recommended, ...tseslint.configs.recommended],
|
|
68
68
|
files: ["**/*.{ts,tsx}"],
|
|
@@ -71,7 +71,9 @@ export default tseslint.config(
|
|
|
71
71
|
globals: globals.browser,
|
|
72
72
|
},
|
|
73
73
|
plugins: {},
|
|
74
|
-
rules: {
|
|
74
|
+
rules: {
|
|
75
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
76
|
+
},
|
|
75
77
|
}
|
|
76
78
|
);
|
|
77
79
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const INTEGRATION_PACKAGE_JSON_TEMPLATE = "{\n \"name\": \"template_integration\",\n \"version\": \"1.0.0\",\n \"main\": \"src/index.ts\",\n \"scripts\": {\n \"build\": \"im-package-cli integration build\",\n \"build:script\": \"im-package-cli integration build --type=script --beautify\",\n \"dev\": \"im-package-cli integration build --watch --beautify\",\n \"serve\": \"im-package-cli integration build --watch --fetchToServer --beautify\",\n \"lint\": \"tsc --noEmit && eslint src/ --ext .ts,.tsx --quiet\",\n \"test\": \"vitest --run\",\n \"test:coverage\": \"vitest --run --coverage\",\n \"test:ui\": \"vitest --ui\"\n },\n \"devDependencies\": {\n \"@babel/plugin-transform-block-scoping\": \"^7.25.9\",\n \"@eslint/js\": \"^9.
|
|
1
|
+
export declare const INTEGRATION_PACKAGE_JSON_TEMPLATE = "{\n \"name\": \"template_integration\",\n \"version\": \"1.0.0\",\n \"main\": \"src/index.ts\",\n \"scripts\": {\n \"build\": \"im-package-cli integration build\",\n \"build:script\": \"im-package-cli integration build --type=script --beautify\",\n \"dev\": \"im-package-cli integration build --watch --beautify\",\n \"serve\": \"im-package-cli integration build --watch --fetchToServer --beautify\",\n \"lint\": \"tsc --noEmit && eslint src/ --ext .ts,.tsx --quiet\",\n \"test\": \"vitest --run\",\n \"test:coverage\": \"vitest --run --coverage\",\n \"test:ui\": \"vitest --ui\"\n },\n \"devDependencies\": {\n \"@babel/plugin-transform-block-scoping\": \"^7.25.9\",\n \"@eslint/js\": \"^9.23.0\",\n \"@infomaximum/integration-sdk\": \"^{{integrationSdkVersion}}\",\n \"@infomaximum/package-cli\": \"^{{packageCliVersion}}\",\n \"@types/node\": \"^0\",\n \"dotenv\": \"^16.4.7\",\n \"eslint\": \"^9.23.0\",\n \"globals\": \"^15.14.0\",\n \"tsx\": \"^4.19.3\",\n \"typescript\": \"^5.8.2\",\n \"typescript-eslint\": \"^8.29.0\",\n \"vitest\": \"^3.0.4\",\n \"@vitest/coverage-v8\": \"3.0.7\",\n \"@vitest/ui\": \"3.0.7\"\n }\n}\n";
|
|
@@ -17,16 +17,16 @@ export const INTEGRATION_PACKAGE_JSON_TEMPLATE = `\
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@babel/plugin-transform-block-scoping": "^7.25.9",
|
|
20
|
-
"@eslint/js": "^9.
|
|
20
|
+
"@eslint/js": "^9.23.0",
|
|
21
21
|
"${INTEGRATION_SDK_LIB_NAME}": "^{{integrationSdkVersion}}",
|
|
22
22
|
"${CUSTOM_PACKAGE_CLI_LIB_NAME}": "^{{packageCliVersion}}",
|
|
23
23
|
"@types/node": "^0",
|
|
24
24
|
"dotenv": "^16.4.7",
|
|
25
|
-
"eslint": "^9.
|
|
25
|
+
"eslint": "^9.23.0",
|
|
26
26
|
"globals": "^15.14.0",
|
|
27
27
|
"tsx": "^4.19.3",
|
|
28
|
-
"typescript": "^5.
|
|
29
|
-
"typescript-eslint": "^8.
|
|
28
|
+
"typescript": "^5.8.2",
|
|
29
|
+
"typescript-eslint": "^8.29.0",
|
|
30
30
|
"vitest": "^3.0.4",
|
|
31
31
|
"@vitest/coverage-v8": "3.0.7",
|
|
32
32
|
"@vitest/ui": "3.0.7"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infomaximum/package-cli",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.6",
|
|
4
4
|
"exports": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@babel/core": "^7.23.6",
|
|
27
27
|
"@babel/plugin-transform-runtime": "^7.23.6",
|
|
28
28
|
"@infomaximum/assert": "^1.1.3",
|
|
29
|
-
"@infomaximum/integration-debugger": "^1.6.
|
|
29
|
+
"@infomaximum/integration-debugger": "^1.6.2",
|
|
30
30
|
"@infomaximum/json-modify-webpack-plugin": "^1.1.0",
|
|
31
31
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
|
|
32
32
|
"@saneksa/babel-plugin-function-transform": "^1.0.0",
|