@public-ui/kolibri-cli 1.7.0-rc.11 → 1.7.0-rc.12

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.
@@ -1,12 +1,6 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.TsConfigReconfigureTask = void 0;
7
- const fs_1 = __importDefault(require("fs"));
8
- const path_1 = __importDefault(require("path"));
9
- const deepmerge_1 = __importDefault(require("deepmerge"));
10
4
  const reuse_1 = require("../../../shares/reuse");
11
5
  const abstract_task_1 = require("../../abstract-task");
12
6
  class TsConfigReconfigureTask extends abstract_task_1.AbstractTask {
@@ -32,17 +26,19 @@ class TsConfigReconfigureTask extends abstract_task_1.AbstractTask {
32
26
  return this.instances.get(identifier);
33
27
  }
34
28
  run() {
35
- const configPath = path_1.default.join(process.cwd(), 'tsconfig.json');
36
- if (fs_1.default.existsSync(configPath)) {
37
- try {
38
- const fileContent = (0, deepmerge_1.default)(JSON.parse(fs_1.default.readFileSync(configPath, 'utf8')), this.config);
39
- fs_1.default.writeFileSync(configPath, JSON.stringify(fileContent, null, 2));
40
- reuse_1.MODIFIED_FILES.add(configPath);
41
- }
42
- catch (e) {
43
- // empty
44
- }
45
- }
29
+ /**
30
+ * The tsconfig.json shows an error, if we add `@public-ui/components` to the `types` property list.
31
+ */
32
+ // const configPath = path.join(process.cwd(), 'tsconfig.json');
33
+ // if (fs.existsSync(configPath)) {
34
+ // try {
35
+ // const fileContent = merge(JSON.parse(fs.readFileSync(configPath, 'utf8')) as Record<string, unknown>, this.config);
36
+ // fs.writeFileSync(configPath, JSON.stringify(fileContent, null, 2));
37
+ // MODIFIED_FILES.add(configPath);
38
+ // } catch (e) {
39
+ // // empty
40
+ // }
41
+ // }
46
42
  }
47
43
  }
48
44
  exports.TsConfigReconfigureTask = TsConfigReconfigureTask;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/kolibri-cli",
3
- "version": "1.7.0-rc.11",
3
+ "version": "1.7.0-rc.12",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": "https://github.com/public-ui/kolibri",
@@ -18,7 +18,7 @@
18
18
  "description": "CLI for executing some helpful commands for KoliBri projects.",
19
19
  "scripts": {
20
20
  "reset": "pnpm i @public-ui/components@1.1.7",
21
- "depcheck": "depcheck --ignores=\"@public-ui/components,loglevel,mocha\"",
21
+ "depcheck": "depcheck --ignores=\"@public-ui/components,deepmerge,loglevel,mocha\"",
22
22
  "format": "prettier -c src",
23
23
  "lint": "eslint src && tsc --noEmit",
24
24
  "prepack": "tsc",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "type": "commonjs",
31
31
  "dependencies": {
32
- "chalk": "^4",
32
+ "chalk": "4.1.2",
33
33
  "commander": "11.0.0",
34
34
  "deepmerge": "4.3.1",
35
35
  "gradient-string": "2.0.2",
@@ -40,20 +40,20 @@
40
40
  "devDependencies": {
41
41
  "@public-ui/components": "1.6.2",
42
42
  "@types/gradient-string": "1.1.2",
43
- "@types/node": "20.6.1",
44
- "@typescript-eslint/eslint-plugin": "6.7.0",
45
- "@typescript-eslint/parser": "6.7.0",
43
+ "@types/node": "20.6.2",
44
+ "@typescript-eslint/eslint-plugin": "6.7.2",
45
+ "@typescript-eslint/parser": "6.7.2",
46
46
  "cpy-cli": "5.0.0",
47
47
  "depcheck": "1.4.6",
48
48
  "eslint": "8.49.0",
49
49
  "eslint-config-prettier": "9.0.0",
50
50
  "eslint-plugin-html": "7.1.0",
51
- "eslint-plugin-jsdoc": "46.8.0",
51
+ "eslint-plugin-jsdoc": "46.8.1",
52
52
  "eslint-plugin-json": "3.1.0",
53
53
  "eslint-plugin-jsx-a11y": "6.7.1",
54
54
  "eslint-plugin-no-loops": "0.3.0",
55
55
  "eslint-plugin-react": "7.33.2",
56
- "knip": "2.24.1",
56
+ "knip": "2.25.2",
57
57
  "mocha": "10.2.0",
58
58
  "nodemon": "3.0.1",
59
59
  "rimraf": "3.0.2",