Skip to content

Commit 3f8e25c

Browse files
committed
fix: add description for ngPackage property in package.json
Motivation: IDE support
1 parent 1aea8f6 commit 3f8e25c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

integration/samples/secondary/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../../../src/package.schema.json",
23
"name": "@sample/secondary-lib",
34
"description": "A sample library with configuration in package.json",
45
"version": "1.0.0-pre.0",
@@ -9,7 +10,6 @@
910
"@angular/common": "^4.1.2"
1011
},
1112
"ngPackage": {
12-
"$schema": "../../../src/lib/ng-package.schema.json",
1313
"lib": {
1414
"entryFile": "public_api.ts"
1515
}

integration/samples/secondary/sub-module/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../../../../src/package.schema.json",
23
"name": "@sample/secondary/sub-module",
34
"description": "A sub module library",
45
"version": "1.0.0-pre.0",

src/package.schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
{ "$ref": "http://json.schemastore.org/package" },
55
{
66
"properties": {
7-
"ngPackage": { "$ref": "./ng-package.schema.json" }
7+
"ngPackage": {
8+
"$ref": "./ng-package.schema.json",
9+
"description": "Angular Package description"
10+
}
811
},
912
"required": []
1013
}

0 commit comments

Comments
 (0)