From 80ccb656c6f82539481f27055b76a69f1a31297a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Alejandro=20L=C3=B3pez=20Lor=C3=ADa?= Date: Fri, 12 Jul 2024 21:57:45 -0600 Subject: [PATCH] fix: use peerDependencies instead of dependencies --- package.json | 1 + packages/widget-angular/package.json | 28 +++++++++---------- .../widget-angular/src/lib/widget-mifiel.ts | 2 +- yarn.lock | 7 ----- 4 files changed, 16 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index 6aed001..02948d2 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "test": "lerna run test" }, "devDependencies": { + "@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..ab7293c 100644 --- a/packages/widget-angular/package.json +++ b/packages/widget-angular/package.json @@ -9,7 +9,7 @@ }, "homepage": "https://github.com/Mifiel/mifiel-js/tree/main/packages/widget-angular#readme", "author": "Alejandro López ", - "module": "fesm2022/mifiel-widget-angular.mjs", + "module": "dist/fesm2022/mifiel-widget-angular.mjs", "files": [ "dist" ], @@ -33,33 +33,33 @@ "default": "./package.json" } }, - "typings": "index.d.ts", - "dependencies": { - "@angular/animations": "^16.2.0", + "types": "dist/index.d.ts", + "peerDependencies": { "@angular/common": "^16.2.0", - "@angular/compiler": "^16.2.0", "@angular/core": "^16.2.0", - "@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" + "@mifiel/widget": "^0.0.1" }, "devDependencies": { "@angular-devkit/build-angular": "^16.2.14", "@angular-eslint/eslint-plugin": "^12.7.0", "@angular-eslint/template-parser": "^12.7.0", + "@angular/animations": "^16.2.0", "@angular/cli": "^16.2.14", + "@angular/compiler": "^16.2.0", "@angular/compiler-cli": "^16.2.0", + "@angular/forms": "^16.2.0", + "@angular/platform-browser": "^16.2.0", + "@angular/platform-browser-dynamic": "^16.2.0", + "@angular/router": "^16.2.0", "karma": "~6.4.0", "karma-chrome-launcher": "~3.2.0", "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", "ng-packagr": "^16.2.0", - "typescript": "~5.1.3" + "rxjs": "~7.8.0", + "tslib": "^2.3.0", + "typescript": "~5.1.3", + "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..428aeae 100644 --- a/yarn.lock +++ b/yarn.lock @@ -189,13 +189,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"