@tramvai/cli 2.101.0 → 2.101.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.
@@ -638,6 +638,9 @@
638
638
  },
639
639
  "type": {
640
640
  "type": "string"
641
+ },
642
+ "density": {
643
+ "type": "number"
641
644
  }
642
645
  },
643
646
  "additionalProperties": false
@@ -32,6 +32,7 @@ export type PwaIconItem = {
32
32
  src: string;
33
33
  sizes: string;
34
34
  type?: string;
35
+ density?: number;
35
36
  };
36
37
  export type PwaIconOptions = {
37
38
  /**
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.checkPwaDependencies = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const checkPwaDependencies = ({ packageManager, config }, parameters) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
6
- var _a, _b;
6
+ var _a, _b, _c;
7
7
  const { target } = parameters;
8
8
  const cfg = config.getProject(target);
9
- if (((_b = (_a = cfg.experiments) === null || _a === void 0 ? void 0 : _a.pwa) === null || _b === void 0 ? void 0 : _b.icon) && packageManager.name !== 'unknown') {
9
+ if (((_c = (_b = (_a = cfg.experiments) === null || _a === void 0 ? void 0 : _a.pwa) === null || _b === void 0 ? void 0 : _b.icon) === null || _c === void 0 ? void 0 : _c.src) && packageManager.name !== 'unknown') {
10
10
  const sharpInstalled = yield packageManager.exists({ name: 'sharp' });
11
11
  if (!sharpInstalled) {
12
12
  throw Error('You need to install `sharp` library for PWA icon generation in devDependencies');
@@ -1 +1 @@
1
- {"version":3,"file":"checkPwaDependencies.js","sourceRoot":"","sources":["../../../src/validators/commands/checkPwaDependencies.ts"],"names":[],"mappings":";;;;AAGO,MAAM,oBAAoB,GAAc,CAAO,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,EAAE;;IAC9F,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;IAC9B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAA2B,CAAC;IAEhE,IAAI,CAAA,MAAA,MAAA,GAAG,CAAC,WAAW,0CAAE,GAAG,0CAAE,IAAI,KAAI,cAAc,CAAC,IAAI,KAAK,SAAS,EAAE;QACnE,MAAM,cAAc,GAAG,MAAM,cAAc,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;QAEtE,IAAI,CAAC,cAAc,EAAE;YACnB,MAAM,KAAK,CAAC,gFAAgF,CAAC,CAAC;SAC/F;KACF;IAED,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACxD,CAAC,CAAA,CAAC;AAbW,QAAA,oBAAoB,wBAa/B"}
1
+ {"version":3,"file":"checkPwaDependencies.js","sourceRoot":"","sources":["../../../src/validators/commands/checkPwaDependencies.ts"],"names":[],"mappings":";;;;AAGO,MAAM,oBAAoB,GAAc,CAAO,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,EAAE;;IAC9F,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;IAC9B,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,CAA2B,CAAC;IAEhE,IAAI,CAAA,MAAA,MAAA,MAAA,GAAG,CAAC,WAAW,0CAAE,GAAG,0CAAE,IAAI,0CAAE,GAAG,KAAI,cAAc,CAAC,IAAI,KAAK,SAAS,EAAE;QACxE,MAAM,cAAc,GAAG,MAAM,cAAc,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;QAEtE,IAAI,CAAC,cAAc,EAAE;YACnB,MAAM,KAAK,CAAC,gFAAgF,CAAC,CAAC;SAC/F;KACF;IAED,OAAO,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AACxD,CAAC,CAAA,CAAC;AAbW,QAAA,oBAAoB,wBAa/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/cli",
3
- "version": "2.101.0",
3
+ "version": "2.101.1",
4
4
  "description": "Cli инструмент для сборки и запуска приложений",
5
5
  "files": [
6
6
  "src",
@@ -71,7 +71,7 @@
71
71
  "@tinkoff/utils": "^2.1.3",
72
72
  "@tinkoff/webpack-dedupe-plugin": "1.0.5",
73
73
  "@tramvai/build": "3.1.3",
74
- "@tramvai/react": "2.101.0",
74
+ "@tramvai/react": "2.101.1",
75
75
  "@tramvai/tools-check-versions": "0.4.14",
76
76
  "@tramvai/tools-migrate": "0.6.18",
77
77
  "ajv": "^6.12.6",
package/schema.json CHANGED
@@ -659,6 +659,9 @@
659
659
  },
660
660
  "type": {
661
661
  "type": "string"
662
+ },
663
+ "density": {
664
+ "type": "number"
662
665
  }
663
666
  },
664
667
  "additionalProperties": false
@@ -638,6 +638,9 @@
638
638
  },
639
639
  "type": {
640
640
  "type": "string"
641
+ },
642
+ "density": {
643
+ "type": "number"
641
644
  }
642
645
  },
643
646
  "additionalProperties": false
@@ -34,6 +34,7 @@ export type PwaIconItem = {
34
34
  src: string;
35
35
  sizes: string;
36
36
  type?: string;
37
+ density?: number;
37
38
  };
38
39
 
39
40
  export type PwaIconOptions = {
@@ -5,7 +5,7 @@ export const checkPwaDependencies: Validator = async ({ packageManager, config }
5
5
  const { target } = parameters;
6
6
  const cfg = config.getProject(target) as ApplicationConfigEntry;
7
7
 
8
- if (cfg.experiments?.pwa?.icon && packageManager.name !== 'unknown') {
8
+ if (cfg.experiments?.pwa?.icon?.src && packageManager.name !== 'unknown') {
9
9
  const sharpInstalled = await packageManager.exists({ name: 'sharp' });
10
10
 
11
11
  if (!sharpInstalled) {