Skip to content

Commit dc3761a

Browse files
committed
feat: angular module
1 parent a5e125b commit dc3761a

File tree

4 files changed

+28
-1
lines changed

4 files changed

+28
-1
lines changed

packages/https/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"build": "npm run tsc",
1818
"build.watch": "npm run tsc -- -w",
1919
"build.win": "npm run tsc-win",
20-
"build.all": "npm run build",
20+
"build.all": "npm run build && npm run build.angular",
21+
"build.angular": "ng-packagr -p ../../src/https/angular/ng-package.json -c ../../src/https/angular/tsconfig.json",
2122
"build.all.win": "npm run build.win",
2223
"clean": "rimraf ./*.d.ts ./*.js ./*.js.map"
2324
},

src/https/angular/ng-package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"dest": "../../../packages/https/angular",
3+
"lib": {
4+
"entryFile": "index.ts"
5+
},
6+
"allowedNonPeerDependencies": [
7+
"."
8+
]
9+
}

src/https/angular/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"name": "@nativescript-community/https-angular",
3+
"main": "index.js"
4+
}

src/https/angular/tsconfig.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "../../../tsconfig.json",
3+
"compilerOptions": {
4+
"rootDir": "./",
5+
"plugins": [],
6+
"paths": {
7+
"@nativescript-community/https": ["packages/https"],
8+
"@nativescript-community/https/*": ["packages/https/*"]
9+
}
10+
},
11+
"include": ["./**/*.ts", "../../../references.d.ts", "../references.d.ts"],
12+
"exclude": ["../node_modules"]
13+
}

0 commit comments

Comments
 (0)