Skip to content

Commit cc0ea0f

Browse files
committed
chore: angular updates
1 parent 4efdc9c commit cc0ea0f

File tree

4 files changed

+20
-21
lines changed

4 files changed

+20
-21
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@
9797
"husky": "^7.0.4",
9898
"lerna": "^4.0.0",
9999
"npm-watch": "^0.11.0",
100+
"ng-packagr": "^14.2.0",
100101
"prettier": "^2.4.1",
101102
"prompt": "^1.2.0",
102103
"rimraf": "^3.0.2",
103-
"ts-patch": "1.4.5",
104+
"ts-patch": "~2.0.0",
104105
"typescript": "~4.8.4"
105106
},
106107
"dependencies": {

src/angular/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Directive, NgModule } from '@angular/core';
22
import { registerElement } from '@nativescript/angular';
3-
import { LottieView } from '..';
3+
import { LottieView } from '@nativescript-community/ui-lottie';
44

55
@Directive({ selector: 'LottieView' })
66
export class LottieViewDirective {}

src/angular/package.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
{
2-
"name": "@nativescript-community/ui-lottie-angular",
3-
"main": "index.js",
4-
"ngPackage": {
5-
"dest": "../../../plugin/angular",
6-
"lib": {
7-
"entryFile": "index.ts"
8-
},
9-
"allowedNonPeerDependencies": [
10-
"."
11-
]
12-
}
2+
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3+
"lib": {
4+
"entryFile": "index.ts"
5+
},
6+
"allowedNonPeerDependencies": ["."],
7+
"dest": "../../plugin/angular"
138
}

src/angular/tsconfig.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
2-
"extends": "../../../tsconfig.json",
3-
"compilerOptions": {
4-
"rootDir": "./"
5-
},
6-
"include": ["./**/*.ts", "../../../references.d.ts", "../../references.d.ts"],
7-
"angularCompilerOptions": {
8-
"enableIvy": true
9-
}
2+
"extends": "../../node_modules/ng-packagr/lib/ts/conf/tsconfig.ngc.json",
3+
"compilerOptions": {
4+
"types": ["node"],
5+
"baseUrl": ".",
6+
"paths": {
7+
"@nativescript-community/ui-lottie": ["../../plugin"]
8+
},
9+
"outDir": "../../dist/out-tsc",
10+
"declarationDir": "../../dist/out-tsc"
11+
},
12+
"files": ["index.ts"]
1013
}

0 commit comments

Comments
 (0)