Skip to content

Commit

Permalink
fix: use dependencies instead of peerDependencies and fix stencil config
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro25262 committed Jun 27, 2024
1 parent 68d2e17 commit 092dcd4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
14 changes: 13 additions & 1 deletion packages/widget-angular/ng-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,17 @@
"lib": {
"entryFile": "src/public-api.ts"
},
"allowedNonPeerDependencies": ["@mifiel/widget-stencil"]
"allowedNonPeerDependencies": [
"@angular/animations",
"@angular/common",
"@angular/compiler",
"@angular/core",
"@angular/forms",
"@angular/platform-browser",
"@angular/platform-browser-dynamic",
"@angular/router",
"rxjs",
"zone.js",
"@mifiel/widget-stencil"
]
}
6 changes: 2 additions & 4 deletions packages/widget-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
},
"typings": "index.d.ts",
"dependencies": {
"@mifiel/widget-stencil": "*",
"tslib": "^2.3.0"
},
"peerDependencies": {
"@angular/animations": "^16.2.0",
"@angular/common": "^16.2.0",
"@angular/compiler": "^16.2.0",
Expand All @@ -47,7 +43,9 @@
"@angular/platform-browser": "^16.2.0",
"@angular/platform-browser-dynamic": "^16.2.0",
"@angular/router": "^16.2.0",
"@mifiel/widget-stencil": "*",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.13.0"
},
"devDependencies": {
Expand Down
5 changes: 3 additions & 2 deletions packages/widget-stencil/stencil.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
import type { Config } from '@stencil/core';
import { reactOutputTarget } from '@stencil/react-output-target';
import { angularOutputTarget } from '@stencil/angular-output-target';
Expand All @@ -20,8 +21,8 @@ export const config: Config = {
angularOutputTarget({
componentCorePackage: '@mifiel/widget-stencil',
outputType: 'component',
directivesProxyFile: '../angular-workspace/projects/widget-angular/src/lib/stencil-generated/components.ts',
directivesArrayFile: '../angular-workspace/projects/widget-angular/src/lib/stencil-generated/index.ts',
directivesProxyFile: '../widget-angular/src/lib/stencil-generated/components.ts',
directivesArrayFile: '../widget-angular/src/lib/stencil-generated/index.ts',
}),
vueOutputTarget({
componentCorePackage: '@mifiel/widget-stencil',
Expand Down

0 comments on commit 092dcd4

Please sign in to comment.