From 04539bfb11ff98677089dd74e2c8ca511d782d6a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jes=C3=BAs=20L=C3=B3pez?=
<35823445+alejandro25262@users.noreply.github.com>
Date: Mon, 15 Jul 2024 10:34:04 -0600
Subject: [PATCH] fix: use peerDependencies instead of dependencies #86du3xkgh
(#6)
---
package.json | 2 +
packages/widget-angular/package.json | 5 +-
.../widget-angular/src/lib/widget-mifiel.ts | 2 +-
yarn.lock | 51 +------------------
4 files changed, 7 insertions(+), 53 deletions(-)
diff --git a/package.json b/package.json
index 6aed001..22c6d4b 100644
--- a/package.json
+++ b/package.json
@@ -28,6 +28,8 @@
"test": "lerna run test"
},
"devDependencies": {
+ "@angular/compiler": "^16.2.0",
+ "@angular/core": "^16.2.0",
"@commitlint/cli": "13.1.0",
"@commitlint/config-conventional": "13.1.0",
"@commitlint/config-lerna-scopes": "13.1.0",
diff --git a/packages/widget-angular/package.json b/packages/widget-angular/package.json
index dc411ef..365f592 100644
--- a/packages/widget-angular/package.json
+++ b/packages/widget-angular/package.json
@@ -35,6 +35,9 @@
},
"typings": "index.d.ts",
"dependencies": {
+ "@mifiel/widget": "^0.0.2"
+ },
+ "peerDependencies": {
"@angular/animations": "^16.2.0",
"@angular/common": "^16.2.0",
"@angular/compiler": "^16.2.0",
@@ -42,8 +45,6 @@
"@angular/forms": "^16.2.0",
"@angular/platform-browser": "^16.2.0",
"@angular/platform-browser-dynamic": "^16.2.0",
- "@angular/router": "^16.2.0",
- "@mifiel/widget": "^0.0.2",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.13.0"
diff --git a/packages/widget-angular/src/lib/widget-mifiel.ts b/packages/widget-angular/src/lib/widget-mifiel.ts
index 8517435..0d59d41 100644
--- a/packages/widget-angular/src/lib/widget-mifiel.ts
+++ b/packages/widget-angular/src/lib/widget-mifiel.ts
@@ -17,7 +17,7 @@ import { MifielWidget as Mifiel } from './stencil-generated/components';
@Component({
selector: 'mifiel-widget',
changeDetection: ChangeDetectionStrategy.OnPush,
- template: '',
+ template: '',
})
export class MifielWidget extends Mifiel implements OnInit {
protected override el!: HTMLElement;
diff --git a/yarn.lock b/yarn.lock
index a94f8f0..3478390 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -158,13 +158,6 @@
"@angular-eslint/bundled-angular-compiler" "12.7.0"
"@typescript-eslint/experimental-utils" "4.28.2"
-"@angular/animations@^16.2.0":
- version "16.2.12"
- resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-16.2.12.tgz#27744d8176e09e70e0f6d837c3abcfcee843a936"
- integrity sha512-MD0ElviEfAJY8qMOd6/jjSSvtqER2RDAi0lxe6EtUacC1DHCYkaPrKW4vLqY+tmZBg1yf+6n+uS77pXcHHcA3w==
- dependencies:
- tslib "^2.3.0"
-
"@angular/cli@^16.2.14":
version "16.2.14"
resolved "https://registry.yarnpkg.com/@angular/cli/-/cli-16.2.14.tgz#ab58910ae354ee31b89a7479efd5978fd1a3042e"
@@ -189,13 +182,6 @@
symbol-observable "4.0.0"
yargs "17.7.2"
-"@angular/common@^16.2.0":
- version "16.2.12"
- resolved "https://registry.yarnpkg.com/@angular/common/-/common-16.2.12.tgz#aa1d1522701833f1998001caa1ac95c3ac11d077"
- integrity sha512-B+WY/cT2VgEaz9HfJitBmgdk4I333XG/ybC98CMC4Wz8E49T8yzivmmxXB3OD6qvjcOB6ftuicl6WBqLbZNg2w==
- dependencies:
- tslib "^2.3.0"
-
"@angular/compiler-cli@^16.2.0":
version "16.2.12"
resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-16.2.12.tgz#e24b4bdaf23047b23d7b39e295b7d25b38c5734c"
@@ -224,34 +210,6 @@
dependencies:
tslib "^2.3.0"
-"@angular/forms@^16.2.0":
- version "16.2.12"
- resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-16.2.12.tgz#a533ad61a65080281e709ca68840a1da9f189afc"
- integrity sha512-1Eao89hlBgLR3v8tU91vccn21BBKL06WWxl7zLpQmG6Hun+2jrThgOE4Pf3os4fkkbH4Apj0tWL2fNIWe/blbw==
- dependencies:
- tslib "^2.3.0"
-
-"@angular/platform-browser-dynamic@^16.2.0":
- version "16.2.12"
- resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-16.2.12.tgz#14488188c06013eb4153ac6e0603975f8b679f70"
- integrity sha512-ya54jerNgreCVAR278wZavwjrUWImMr2F8yM5n9HBvsMBbFaAQ83anwbOEiHEF2BlR+gJiEBLfpuPRMw20pHqw==
- dependencies:
- tslib "^2.3.0"
-
-"@angular/platform-browser@^16.2.0":
- version "16.2.12"
- resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-16.2.12.tgz#66b5611066cb3f8bb55f035658e978b50720f3b0"
- integrity sha512-NnH7ju1iirmVEsUq432DTm0nZBGQsBrU40M3ZeVHMQ2subnGiyUs3QyzDz8+VWLL/T5xTxWLt9BkDn65vgzlIQ==
- dependencies:
- tslib "^2.3.0"
-
-"@angular/router@^16.2.0":
- version "16.2.12"
- resolved "https://registry.yarnpkg.com/@angular/router/-/router-16.2.12.tgz#2f4cae64ddb7f998832aa340dd3f843cfb85cbc8"
- integrity sha512-aU6QnYSza005V9P3W6PpkieL56O0IHps96DjqI1RS8yOJUl3THmokqYN4Fm5+HXy4f390FN9i6ftadYQDKeWmA==
- dependencies:
- tslib "^2.3.0"
-
"@assemblyscript/loader@^0.10.1":
version "0.10.1"
resolved "https://registry.yarnpkg.com/@assemblyscript/loader/-/loader-0.10.1.tgz#70e45678f06c72fa2e350e8553ec4a4d72b92e06"
@@ -11220,7 +11178,7 @@ run-parallel@^1.1.9:
dependencies:
queue-microtask "^1.2.2"
-rxjs@7.8.1, rxjs@^7.5.1, rxjs@^7.5.5, rxjs@^7.5.6, rxjs@~7.8.0:
+rxjs@7.8.1, rxjs@^7.5.1, rxjs@^7.5.5, rxjs@^7.5.6:
version "7.8.1"
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543"
integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==
@@ -13221,10 +13179,3 @@ zod@3.7.1:
version "3.7.1"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.7.1.tgz#143a9f9bc8ebad27525f1b1069dad7328d0f9d53"
integrity sha512-9TRjeMKz3xFUOl/CYhBmp/hCrMhk5U6qRnfy9q+HwmQPbMYp3qnM+/cPst+wzHQjfSBjHDYZq7S7TQnlAjqjFg==
-
-zone.js@~0.13.0:
- version "0.13.3"
- resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.13.3.tgz#344c24098fa047eda6427a4c7ed486e391fd67b5"
- integrity sha512-MKPbmZie6fASC/ps4dkmIhaT5eonHkEt6eAy80K42tAm0G2W+AahLJjbfi6X9NPdciOE9GRFTTM8u2IiF6O3ww==
- dependencies:
- tslib "^2.3.0"