Skip to content

Commit

Permalink
fix: angular build
Browse files Browse the repository at this point in the history
  • Loading branch information
lekhmanrus committed May 1, 2023
1 parent 8d03ad0 commit 0290951
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 15 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build.android": "bash src-native/android/build.sh",
"build.ios": "bash src-native/ios/build.sh",
"build.native": "npm run build.android && npm run build.ios",
"build.angular": "lerna run build.angular",
"build": "lerna run build",
"demo.ios": "npm run build && cd ./demo && tns run ios",
"demo.android": "npm run build && cd ./demo && tns run android",
Expand Down Expand Up @@ -88,6 +89,7 @@
"descriptions": {
"build": "Build the plugin",
"build.all": "Build the plugin for all platforms",
"build.angular": "Build the plugin for Angular",
"clean": "Clean the local environment.",
"demo.vue.android": "Runs the Vue demo on Android.",
"demo.vue.ios": "Runs the Vue demo on iOS.",
Expand Down
3 changes: 2 additions & 1 deletion packages/https/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"rootDir": "../../src/https",
"outDir": "./"
},
"include": ["../../src/https/**/*", "../../references.d.ts", "../../tools/references.d.ts", "../../src/references.d.ts"]
"include": ["../../src/https/**/*", "../../references.d.ts", "../../tools/references.d.ts", "../../src/references.d.ts"],
"exclude": ["../../src/https/angular/**"]
}
2 changes: 1 addition & 1 deletion src/https/angular/excluded.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ export class ExcludedService {
public skipSslPinning(request: HttpRequest<any>): boolean {
return this.contains(request.url);
}
}
}
2 changes: 1 addition & 1 deletion src/https/angular/ns-http-xhr-backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
HttpsRequestOptions,
HttpsResponse,
request as httpsRequest
} from '../request';
} from '@nativescript-community/https';
import { ExcludedService } from './excluded.service';

/** Https request default options. */
Expand Down
2 changes: 1 addition & 1 deletion src/https/angular/ns-https.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NgModule, ModuleWithProviders, Optional, Inject, InjectionToken } from '@angular/core';
import { HttpBackend } from '@angular/common/http';
import { NativeScriptHttpClientModule } from '@nativescript/angular';
import { HttpsSSLPinningOptions, enableSSLPinning } from '../request';
import { HttpsSSLPinningOptions, enableSSLPinning } from '@nativescript-community/https';
import {
HTTPS_REQUEST_DEFAULT_OPTIONS,
NativeScriptHttpXhrBackend,
Expand Down
8 changes: 4 additions & 4 deletions src/https/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@nativescript-community/https-angular",
"main": "index.js"
}
{
"name": "@nativescript-community/https-angular",
"main": "index.js"
}
9 changes: 6 additions & 3 deletions src/https/angular/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"rootDir": "./",
"plugins": [],
"paths": {
"@nativescript-community/https": ["packages/https"],
"@nativescript-community/https/*": ["packages/https/*"]
"@nativescript-community/https": ["../../../packages/https"],
"@nativescript-community/https/*": ["../../../packages/https/*"]
}
},
"include": ["./**/*.ts", "../../../references.d.ts", "../references.d.ts"],
"exclude": ["../node_modules"]
"exclude": ["../../../node_modules"],
"angularCompilerOptions": {
"enableIvy": true
}
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,7 @@ __metadata:

"@nativescript-community/plugin-seed-tools@file:tools::locator=root-workspace-0b6124%40workspace%3A.":
version: 1.0.0
resolution: "@nativescript-community/plugin-seed-tools@file:tools#tools::hash=c24459&locator=root-workspace-0b6124%40workspace%3A."
resolution: "@nativescript-community/plugin-seed-tools@file:tools#tools::hash=21bc81&locator=root-workspace-0b6124%40workspace%3A."
dependencies:
"@angular/animations": ~14.2.12
"@angular/common": ~14.2.12
Expand Down Expand Up @@ -2266,7 +2266,7 @@ __metadata:
vue: ~2.6.14
yargs: ^17.6.2
zone.js: ~0.12.0
checksum: cf4c25d0218c115fd5808d27c175d0eeaeacdb34e0368e2693addf779561448ec6ba53943a55fed05f69fa0982dbe01bb3a2a07eba323a4b9e4be8f872e1a5d4
checksum: 133eaca99071344bb30daaded1d5891a45bf51e80034ac3e7c92e39b2a446d8266f14bfb886103e5c3a2fac1a218128a8545afb2fc544d3b3fa7fbe4853c6752
languageName: node
linkType: hard

Expand All @@ -2280,10 +2280,10 @@ __metadata:

"@nativescript-community/template-snippet@file:demo-snippets::locator=root-workspace-0b6124%40workspace%3A.":
version: 0.0.1
resolution: "@nativescript-community/template-snippet@file:demo-snippets#demo-snippets::hash=d4e9e3&locator=root-workspace-0b6124%40workspace%3A."
resolution: "@nativescript-community/template-snippet@file:demo-snippets#demo-snippets::hash=07d2c5&locator=root-workspace-0b6124%40workspace%3A."
dependencies:
"@nativescript-community/https": 4.0.11
checksum: f014928308c7935ca7a73bf49dde7c195c6e55a49c1ce9bd11b521c3e460cfc8953443e26d17803960a7df369513bf2c0d49dd73b61e665bbe3eeb0e5e8af62d
checksum: 0034d1e678e6ffbb0d898b54ba4bde0216d2005a10c4f49d5b23ed59c03ea64d736eadb4a683bff0bca9031cdd3aa9620f181ab6a3bbe1ce6912408a8841ef6c
languageName: node
linkType: hard

Expand Down

0 comments on commit 0290951

Please sign in to comment.