Skip to content

Commit

Permalink
fix: use peerDependencies instead of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro25262 committed Jul 13, 2024
1 parent 2d83836 commit dfaa57a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 16 additions & 14 deletions packages/widget-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"homepage": "https://github.com/Mifiel/mifiel-js/tree/main/packages/widget-angular#readme",
"author": "Alejandro López <[email protected]>",
"module": "fesm2022/mifiel-widget-angular.mjs",
"module": "dist/fesm2022/mifiel-widget-angular.mjs",
"files": [
"dist"
],
Expand All @@ -33,33 +33,35 @@
"default": "./package.json"
}
},
"typings": "index.d.ts",
"types": "dist/index.d.ts",
"dependencies": {
"@angular/animations": "^16.2.0",
"@mifiel/widget": "^0.0.1"
},
"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"
"@angular/core": "^16.2.0"
},
"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"
}
}
2 changes: 1 addition & 1 deletion packages/widget-angular/src/lib/widget-mifiel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { MifielWidget as Mifiel } from './stencil-generated/components';
@Component({
selector: 'mifiel-widget',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content widget-version="1"></ng-content>',
template: '<ng-content></ng-content>',
})
export class MifielWidget extends Mifiel implements OnInit {
protected override el!: HTMLElement;
Expand Down
7 changes: 0 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dfaa57a

Please sign in to comment.