@ts-type/package-dts 1.0.60 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/lib/package-json/types.d.ts +15 -7
- package/lib/package-json/types.js +8 -1
- package/lib/package-json/types.js.map +1 -1
- package/package.json +8 -13
- package/schema/eslintrc.json +32 -35
- package/schema/lerna.json +4 -4
- package/schema/package.json +83 -9
- package/schema/travis.json +483 -477
- package/schema/tsconfig.json +70 -49
- package/tsconfig.check.tsbuildinfo +1 -1
- package/types/eslintrc.json.d.ts +251 -524
- package/types/package.json.d.ts +20567 -359
- package/types/travis.json.d.ts +121 -322
- package/types/tsconfig.json.d.ts +626 -1186
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,56 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.3](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@2.0.2...@ts-type/package-dts@2.0.3) (2022-08-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ✨ Features
|
|
10
|
+
|
|
11
|
+
* update type ([77b4883](https://github.com/bluelovers/ws-ts-type/commit/77b48836b48b2a12bf50470f07d4f8ae0bd8e582))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### 🛠 Build System
|
|
15
|
+
|
|
16
|
+
* **schema:** update schema ([a2be2e5](https://github.com/bluelovers/ws-ts-type/commit/a2be2e573c6d7aae4446c8495e784c1fecab383c))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### 📌 Dependencies
|
|
20
|
+
|
|
21
|
+
* update deps ([50b4a8d](https://github.com/bluelovers/ws-ts-type/commit/50b4a8dab38d41ccf29b194be76f9fb5673f8162))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [2.0.2](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@2.0.1...@ts-type/package-dts@2.0.2) (2022-07-06)
|
|
28
|
+
|
|
29
|
+
**Note:** Version bump only for package @ts-type/package-dts
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
## [2.0.1](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@1.0.60...@ts-type/package-dts@2.0.1) (2022-07-05)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### 🛠 Build System
|
|
39
|
+
|
|
40
|
+
* **schema:** update schema ([b6c6a54](https://github.com/bluelovers/ws-ts-type/commit/b6c6a54c5756a27ec9ece31981ccb2e2e6dc9a77))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### ♻️ Dependencies
|
|
44
|
+
|
|
45
|
+
* update deps ([49e46dc](https://github.com/bluelovers/ws-ts-type/commit/49e46dc92128d7abe34548491606ac5270104a03))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### 🔖 Miscellaneous
|
|
49
|
+
|
|
50
|
+
* . ([e660f8e](https://github.com/bluelovers/ws-ts-type/commit/e660f8e0b4e0afda0bfabfbcbe8e2c10b3e69a80))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
6
56
|
## [1.0.60](https://github.com/bluelovers/ws-ts-type/compare/@ts-type/package-dts@1.0.59...@ts-type/package-dts@1.0.60) (2022-03-12)
|
|
7
57
|
|
|
8
58
|
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { ReleaseType as IReleaseType } from 'semver';
|
|
5
5
|
import { EnumPublishConfigRegistry } from './publishConfig';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
6
|
+
import { ITSArrayListMaybeReadonly } from 'ts-type/lib/type/base';
|
|
7
|
+
import { ITSValueOfArray, ITSValueOfRecord } from 'ts-type/lib/helper';
|
|
8
|
+
import { ITSTypeAndStringLiteral } from 'ts-type/lib/helper/string';
|
|
9
|
+
export declare type IDependency<T extends ITSArrayListMaybeReadonly<string> = string[]> = Record<ITSValueOfArray<T>, IVersionValue>;
|
|
9
10
|
export type { IDependency as IPackageMap };
|
|
10
|
-
export declare type IVersionValue =
|
|
11
|
+
export declare type IVersionValue = ITSTypeAndStringLiteral<EnumVersionValue.latest> | ITSTypeAndStringLiteral<EnumVersionValue2> | string;
|
|
11
12
|
export declare enum EnumVersionValue {
|
|
12
13
|
'major' = "major",
|
|
13
14
|
'minor' = "minor",
|
|
@@ -16,10 +17,17 @@ export declare enum EnumVersionValue {
|
|
|
16
17
|
'newest' = "newest"
|
|
17
18
|
}
|
|
18
19
|
export declare const enum EnumVersionValue2 {
|
|
19
|
-
any = "*"
|
|
20
|
+
any = "*",
|
|
21
|
+
latest = "latest",
|
|
22
|
+
next = "next",
|
|
23
|
+
beta = "beta",
|
|
24
|
+
canary = "canary",
|
|
25
|
+
stable = "stable",
|
|
26
|
+
dev = "dev"
|
|
20
27
|
}
|
|
21
28
|
export declare type IPackageJsonDependenciesField = 'dependencies' | 'devDependencies' | 'peerDependencies' | 'optionalDependencies';
|
|
22
|
-
|
|
29
|
+
declare const packageJsonDependenciesFields: readonly ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"];
|
|
30
|
+
export { packageJsonDependenciesFields };
|
|
23
31
|
/**
|
|
24
32
|
* This is a set of config values that will be used at publish-time.
|
|
25
33
|
* It’s especially handy if you want to set the tag, registry or access,
|
|
@@ -35,5 +43,5 @@ export interface IPackageJsonPublishConfig {
|
|
|
35
43
|
tag?: IPackageJsonTag;
|
|
36
44
|
[k: string]: any;
|
|
37
45
|
}
|
|
38
|
-
export declare type IPackageJsonTag = string |
|
|
46
|
+
export declare type IPackageJsonTag = string | ITSTypeAndStringLiteral<Exclude<ITSValueOfRecord<typeof EnumVersionValue2>, EnumVersionValue2.any>>;
|
|
39
47
|
export type { IReleaseType };
|
|
@@ -12,11 +12,18 @@ var EnumVersionValue;
|
|
|
12
12
|
var EnumVersionValue2;
|
|
13
13
|
(function (EnumVersionValue2) {
|
|
14
14
|
EnumVersionValue2["any"] = "*";
|
|
15
|
+
EnumVersionValue2["latest"] = "latest";
|
|
16
|
+
EnumVersionValue2["next"] = "next";
|
|
17
|
+
EnumVersionValue2["beta"] = "beta";
|
|
18
|
+
EnumVersionValue2["canary"] = "canary";
|
|
19
|
+
EnumVersionValue2["stable"] = "stable";
|
|
20
|
+
EnumVersionValue2["dev"] = "dev";
|
|
15
21
|
})(EnumVersionValue2 = exports.EnumVersionValue2 || (exports.EnumVersionValue2 = {}));
|
|
16
|
-
|
|
22
|
+
const packageJsonDependenciesFields = [
|
|
17
23
|
'dependencies',
|
|
18
24
|
'devDependencies',
|
|
19
25
|
'peerDependencies',
|
|
20
26
|
'optionalDependencies',
|
|
21
27
|
];
|
|
28
|
+
exports.packageJsonDependenciesFields = packageJsonDependenciesFields;
|
|
22
29
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAE3B,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;AACpB,CAAC,EAPW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAO3B;AAED,IAAkB,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";;;AAeA,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAE3B,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,qCAAmB,CAAA;AACpB,CAAC,EAPW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAO3B;AAED,IAAkB,iBAUjB;AAVD,WAAkB,iBAAiB;IAElC,8BAAS,CAAA;IAET,sCAAiB,CAAA;IACjB,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,sCAAiB,CAAA;IACjB,sCAAiB,CAAA;IACjB,gCAAW,CAAA;AACZ,CAAC,EAViB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAUlC;AASD,MAAM,6BAA6B,GAAG;IACrC,cAAuB;IACvB,iBAA0B;IAC1B,kBAA2B;IAC3B,sBAA+B;CACtB,CAAA;AAED,sEAA6B","sourcesContent":["/**\n * Created by user on 2020/6/12.\n */\nimport type { ReleaseType as IReleaseType } from 'semver';\nimport { EnumPublishConfigRegistry } from './publishConfig';\nimport { ITSArrayListMaybeReadonly } from 'ts-type/lib/type/base';\nimport { ITSValueOfArray, ITSValueOfRecord } from 'ts-type/lib/helper';\nimport { ITSTypeAndStringLiteral } from 'ts-type/lib/helper/string';\n\nexport type IDependency<T extends ITSArrayListMaybeReadonly<string> = string[]> = Record<ITSValueOfArray<T>, IVersionValue>;\n\nexport type { IDependency as IPackageMap }\n\nexport type IVersionValue = ITSTypeAndStringLiteral<EnumVersionValue.latest> | ITSTypeAndStringLiteral<EnumVersionValue2> | string;\n\nexport enum EnumVersionValue\n{\n\t'major' = 'major',\n\t'minor' = 'minor',\n\t'latest' = 'latest',\n\t'greatest' = 'greatest',\n\t'newest' = 'newest'\n}\n\nexport const enum EnumVersionValue2\n{\n\tany = '*',\n\n\tlatest = 'latest',\n\tnext = 'next',\n\tbeta = 'beta',\n\tcanary = 'canary',\n\tstable = 'stable',\n\tdev = 'dev',\n}\n\nexport type IPackageJsonDependenciesField =\n\t'dependencies'\n\t| 'devDependencies'\n\t| 'peerDependencies'\n\t| 'optionalDependencies'\n;\n\nconst packageJsonDependenciesFields = [\n\t'dependencies' as const,\n\t'devDependencies' as const,\n\t'peerDependencies' as const,\n\t'optionalDependencies' as const,\n] as const\n\nexport { packageJsonDependenciesFields }\n\n/**\n * This is a set of config values that will be used at publish-time.\n * It’s especially handy if you want to set the tag, registry or access,\n * so that you can ensure that a given package is not tagged with “latest”,\n * published to the global public registry or that a scoped module is private by default.\n *\n * Any config values can be overridden,\n * but only “tag”, “registry” and “access” probably matter for the purposes of publishing.\n */\nexport interface IPackageJsonPublishConfig\n{\n\tregistry?: string | EnumPublishConfigRegistry;\n\taccess?: string | \"public\" | \"restricted\";\n\ttag?: IPackageJsonTag;\n\n\t[k: string]: any;\n}\n\nexport type IPackageJsonTag = string | ITSTypeAndStringLiteral<Exclude<ITSValueOfRecord<typeof EnumVersionValue2>, EnumVersionValue2.any>>;\n\nexport type { IReleaseType }\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-type/package-dts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Typescript type definition for NPM package json",
|
|
6
6
|
"keywords": [
|
|
@@ -61,25 +61,20 @@
|
|
|
61
61
|
"update:schema": "ts-node ./script/index"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@types/semver": "^7.3.
|
|
65
|
-
"ts-type": "^2.1.
|
|
64
|
+
"@types/semver": "^7.3.11",
|
|
65
|
+
"ts-type": "^2.1.9"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"axios": "^0.
|
|
68
|
+
"axios": "^0.27.2",
|
|
69
69
|
"bluebird": "^3.7.2",
|
|
70
|
-
"dot-values2": "^2.0.
|
|
71
|
-
"fs-extra": "^10.0
|
|
72
|
-
"json-schema-to-typescript": "^
|
|
73
|
-
},
|
|
74
|
-
"peerDependencies": {
|
|
75
|
-
"@types/bluebird": "*",
|
|
76
|
-
"@types/node": "*",
|
|
77
|
-
"ts-toolbelt": "*"
|
|
70
|
+
"dot-values2": "^2.0.6",
|
|
71
|
+
"fs-extra": "^10.1.0",
|
|
72
|
+
"json-schema-to-typescript": "^11.0.2"
|
|
78
73
|
},
|
|
79
74
|
"publishConfig": {
|
|
80
75
|
"access": "public"
|
|
81
76
|
},
|
|
82
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "4eedf3cb6b9ee750e22993560eb6aef919873112",
|
|
83
78
|
"sharedDependencies": {
|
|
84
79
|
"eslint-config-bluelovers": "latest"
|
|
85
80
|
}
|
package/schema/eslintrc.json
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"title": "JSON schema for ESLint configuration files",
|
|
3
2
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
4
|
-
"type": "object",
|
|
5
3
|
"definitions": {
|
|
4
|
+
"stringOrStringArray": {
|
|
5
|
+
"oneOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"type": "array",
|
|
11
|
+
"items": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
},
|
|
6
17
|
"rule": {
|
|
7
18
|
"oneOf": [
|
|
8
19
|
{
|
|
@@ -26,6 +37,7 @@
|
|
|
26
37
|
]
|
|
27
38
|
},
|
|
28
39
|
"possibleErrors": {
|
|
40
|
+
"type": "object",
|
|
29
41
|
"properties": {
|
|
30
42
|
"comma-dangle": {
|
|
31
43
|
"$ref": "#/definitions/rule",
|
|
@@ -174,6 +186,7 @@
|
|
|
174
186
|
}
|
|
175
187
|
},
|
|
176
188
|
"bestPractices": {
|
|
189
|
+
"type": "object",
|
|
177
190
|
"properties": {
|
|
178
191
|
"accessor-pairs": {
|
|
179
192
|
"$ref": "#/definitions/rule",
|
|
@@ -461,6 +474,7 @@
|
|
|
461
474
|
}
|
|
462
475
|
},
|
|
463
476
|
"strictMode": {
|
|
477
|
+
"type": "object",
|
|
464
478
|
"properties": {
|
|
465
479
|
"strict": {
|
|
466
480
|
"$ref": "#/definitions/rule",
|
|
@@ -469,6 +483,7 @@
|
|
|
469
483
|
}
|
|
470
484
|
},
|
|
471
485
|
"variables": {
|
|
486
|
+
"type": "object",
|
|
472
487
|
"properties": {
|
|
473
488
|
"init-declarations": {
|
|
474
489
|
"$ref": "#/definitions/rule",
|
|
@@ -521,6 +536,7 @@
|
|
|
521
536
|
}
|
|
522
537
|
},
|
|
523
538
|
"nodeAndCommonJs": {
|
|
539
|
+
"type": "object",
|
|
524
540
|
"properties": {
|
|
525
541
|
"callback-return": {
|
|
526
542
|
"$ref": "#/definitions/rule",
|
|
@@ -569,6 +585,7 @@
|
|
|
569
585
|
}
|
|
570
586
|
},
|
|
571
587
|
"stylisticIssues": {
|
|
588
|
+
"type": "object",
|
|
572
589
|
"properties": {
|
|
573
590
|
"array-bracket-newline": {
|
|
574
591
|
"$ref": "#/definitions/rule",
|
|
@@ -959,6 +976,7 @@
|
|
|
959
976
|
}
|
|
960
977
|
},
|
|
961
978
|
"ecmaScript6": {
|
|
979
|
+
"type": "object",
|
|
962
980
|
"properties": {
|
|
963
981
|
"arrow-body-style": {
|
|
964
982
|
"$ref": "#/definitions/rule",
|
|
@@ -1091,6 +1109,7 @@
|
|
|
1091
1109
|
}
|
|
1092
1110
|
},
|
|
1093
1111
|
"legacy": {
|
|
1112
|
+
"type": "object",
|
|
1094
1113
|
"properties": {
|
|
1095
1114
|
"max-depth": {
|
|
1096
1115
|
"$ref": "#/definitions/rule"
|
|
@@ -1113,6 +1132,7 @@
|
|
|
1113
1132
|
}
|
|
1114
1133
|
}
|
|
1115
1134
|
},
|
|
1135
|
+
"id": "https://json.schemastore.org/eslintrc.json",
|
|
1116
1136
|
"properties": {
|
|
1117
1137
|
"ecmaFeatures": {
|
|
1118
1138
|
"description": "By default, ESLint supports only ECMAScript 5 syntax. You can override that setting to enable support for ECMAScript 6 as well as JSX by using configuration settings.",
|
|
@@ -1307,13 +1327,7 @@
|
|
|
1307
1327
|
},
|
|
1308
1328
|
"extends": {
|
|
1309
1329
|
"description": "If you want to extend a specific configuration file, you can use the extends property and specify the path to the file. The path can be either relative or absolute.",
|
|
1310
|
-
"
|
|
1311
|
-
"string",
|
|
1312
|
-
"array"
|
|
1313
|
-
],
|
|
1314
|
-
"items": {
|
|
1315
|
-
"type": "string"
|
|
1316
|
-
}
|
|
1330
|
+
"$ref": "#/definitions/stringOrStringArray"
|
|
1317
1331
|
},
|
|
1318
1332
|
"globals": {
|
|
1319
1333
|
"description": "Set each global variable name equal to true to allow the variable to be overwritten or false to disallow overwriting.",
|
|
@@ -1397,13 +1411,7 @@
|
|
|
1397
1411
|
},
|
|
1398
1412
|
"ignorePatterns": {
|
|
1399
1413
|
"description": "Tell ESLint to ignore specific files and directories. Each value uses the same pattern as the `.eslintignore` file.",
|
|
1400
|
-
"
|
|
1401
|
-
"string",
|
|
1402
|
-
"array"
|
|
1403
|
-
],
|
|
1404
|
-
"items": {
|
|
1405
|
-
"type": "string"
|
|
1406
|
-
}
|
|
1414
|
+
"$ref": "#/definitions/stringOrStringArray"
|
|
1407
1415
|
},
|
|
1408
1416
|
"rules": {
|
|
1409
1417
|
"description": "ESLint comes with a large number of rules. You can modify which rules your project uses either using configuration comments or configuration files.",
|
|
@@ -1462,27 +1470,11 @@
|
|
|
1462
1470
|
},
|
|
1463
1471
|
"extends": {
|
|
1464
1472
|
"description": "If you want to extend a specific configuration file, you can use the extends property and specify the path to the file. The path can be either relative or absolute.",
|
|
1465
|
-
"
|
|
1466
|
-
"string",
|
|
1467
|
-
"array"
|
|
1468
|
-
],
|
|
1469
|
-
"items": {
|
|
1470
|
-
"type": "string"
|
|
1471
|
-
}
|
|
1473
|
+
"$ref": "#/definitions/stringOrStringArray"
|
|
1472
1474
|
},
|
|
1473
1475
|
"excludedFiles": {
|
|
1474
1476
|
"description": "If a file matches any of the 'excludedFiles' glob patterns, the 'overrides' configuration won’t apply",
|
|
1475
|
-
"
|
|
1476
|
-
{
|
|
1477
|
-
"type": "string"
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
"type": "array",
|
|
1481
|
-
"items": {
|
|
1482
|
-
"type": "string"
|
|
1483
|
-
}
|
|
1484
|
-
}
|
|
1485
|
-
]
|
|
1477
|
+
"$ref": "#/definitions/stringOrStringArray"
|
|
1486
1478
|
},
|
|
1487
1479
|
"ecmaFeatures": {
|
|
1488
1480
|
"$ref": "#/properties/ecmaFeatures"
|
|
@@ -1511,6 +1503,9 @@
|
|
|
1511
1503
|
},
|
|
1512
1504
|
"settings": {
|
|
1513
1505
|
"$ref": "#/properties/settings"
|
|
1506
|
+
},
|
|
1507
|
+
"overrides": {
|
|
1508
|
+
"$ref": "#/properties/overrides"
|
|
1514
1509
|
}
|
|
1515
1510
|
},
|
|
1516
1511
|
"additionalProperties": false,
|
|
@@ -1519,5 +1514,7 @@
|
|
|
1519
1514
|
]
|
|
1520
1515
|
}
|
|
1521
1516
|
}
|
|
1522
|
-
}
|
|
1517
|
+
},
|
|
1518
|
+
"title": "JSON schema for ESLint configuration files",
|
|
1519
|
+
"type": "object"
|
|
1523
1520
|
}
|
package/schema/lerna.json
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
2
|
"$id": "https://json.schemastore.org/lerna",
|
|
4
|
-
"
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
4
|
"description": "Lerna is a tool used in JavaScript monorepo projects. The lerna.json file is\nused to configure lerna to to best fit your project.",
|
|
6
|
-
"type": "object",
|
|
7
5
|
"properties": {
|
|
8
6
|
"version": {
|
|
9
7
|
"description": "The current version of the repository (or independent).",
|
|
@@ -134,5 +132,7 @@
|
|
|
134
132
|
}
|
|
135
133
|
}
|
|
136
134
|
}
|
|
137
|
-
}
|
|
135
|
+
},
|
|
136
|
+
"title": "A JSON schema for lerna.json files",
|
|
137
|
+
"type": "object"
|
|
138
138
|
}
|
package/schema/package.json
CHANGED
|
@@ -34,35 +34,43 @@
|
|
|
34
34
|
},
|
|
35
35
|
"scriptsInstallAfter": {
|
|
36
36
|
"description": "Run AFTER the package is installed.",
|
|
37
|
-
"type": "string"
|
|
37
|
+
"type": "string",
|
|
38
|
+
"x-intellij-language-injection": "Shell Script"
|
|
38
39
|
},
|
|
39
40
|
"scriptsPublishAfter": {
|
|
40
41
|
"description": "Run AFTER the package is published.",
|
|
41
|
-
"type": "string"
|
|
42
|
+
"type": "string",
|
|
43
|
+
"x-intellij-language-injection": "Shell Script"
|
|
42
44
|
},
|
|
43
45
|
"scriptsRestart": {
|
|
44
46
|
"description": "Run by the 'npm restart' command. Note: 'npm restart' will run the stop and start scripts if no restart script is provided.",
|
|
45
|
-
"type": "string"
|
|
47
|
+
"type": "string",
|
|
48
|
+
"x-intellij-language-injection": "Shell Script"
|
|
46
49
|
},
|
|
47
50
|
"scriptsStart": {
|
|
48
51
|
"description": "Run by the 'npm start' command.",
|
|
49
|
-
"type": "string"
|
|
52
|
+
"type": "string",
|
|
53
|
+
"x-intellij-language-injection": "Shell Script"
|
|
50
54
|
},
|
|
51
55
|
"scriptsStop": {
|
|
52
56
|
"description": "Run by the 'npm stop' command.",
|
|
53
|
-
"type": "string"
|
|
57
|
+
"type": "string",
|
|
58
|
+
"x-intellij-language-injection": "Shell Script"
|
|
54
59
|
},
|
|
55
60
|
"scriptsTest": {
|
|
56
61
|
"description": "Run by the 'npm test' command.",
|
|
57
|
-
"type": "string"
|
|
62
|
+
"type": "string",
|
|
63
|
+
"x-intellij-language-injection": "Shell Script"
|
|
58
64
|
},
|
|
59
65
|
"scriptsUninstallBefore": {
|
|
60
66
|
"description": "Run BEFORE the package is uninstalled.",
|
|
61
|
-
"type": "string"
|
|
67
|
+
"type": "string",
|
|
68
|
+
"x-intellij-language-injection": "Shell Script"
|
|
62
69
|
},
|
|
63
70
|
"scriptsVersionBefore": {
|
|
64
71
|
"description": "Run BEFORE bump the package version.",
|
|
65
|
-
"type": "string"
|
|
72
|
+
"type": "string",
|
|
73
|
+
"x-intellij-language-injection": "Shell Script"
|
|
66
74
|
},
|
|
67
75
|
"packageExportsEntryPath": {
|
|
68
76
|
"type": [
|
|
@@ -127,6 +135,28 @@
|
|
|
127
135
|
"$ref": "#/definitions/packageExportsFallback"
|
|
128
136
|
}
|
|
129
137
|
]
|
|
138
|
+
},
|
|
139
|
+
"fundingUrl": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"format": "uri",
|
|
142
|
+
"description": "URL to a website with details about how to fund the package."
|
|
143
|
+
},
|
|
144
|
+
"fundingWay": {
|
|
145
|
+
"type": "object",
|
|
146
|
+
"description": "Used to inform about ways to help fund development of the package.",
|
|
147
|
+
"properties": {
|
|
148
|
+
"url": {
|
|
149
|
+
"$ref": "#/definitions/fundingUrl"
|
|
150
|
+
},
|
|
151
|
+
"type": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "The type of funding or the platform through which funding can be provided, e.g. patreon, opencollective, tidelift or github."
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"additionalProperties": false,
|
|
157
|
+
"required": [
|
|
158
|
+
"url"
|
|
159
|
+
]
|
|
130
160
|
}
|
|
131
161
|
},
|
|
132
162
|
"type": "object",
|
|
@@ -381,6 +411,31 @@
|
|
|
381
411
|
}
|
|
382
412
|
}
|
|
383
413
|
},
|
|
414
|
+
"funding": {
|
|
415
|
+
"oneOf": [
|
|
416
|
+
{
|
|
417
|
+
"$ref": "#/definitions/fundingUrl"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"$ref": "#/definitions/fundingWay"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"type": "array",
|
|
424
|
+
"items": {
|
|
425
|
+
"oneOf": [
|
|
426
|
+
{
|
|
427
|
+
"$ref": "#/definitions/fundingUrl"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"$ref": "#/definitions/fundingWay"
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
"minItems": 1,
|
|
435
|
+
"uniqueItems": true
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
384
439
|
"scripts": {
|
|
385
440
|
"description": "The 'scripts' member is an object hash of script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.",
|
|
386
441
|
"type": "object",
|
|
@@ -489,7 +544,8 @@
|
|
|
489
544
|
},
|
|
490
545
|
"additionalProperties": {
|
|
491
546
|
"type": "string",
|
|
492
|
-
"tsType": "string | undefined"
|
|
547
|
+
"tsType": "string | undefined",
|
|
548
|
+
"x-intellij-language-injection": "Shell Script"
|
|
493
549
|
}
|
|
494
550
|
},
|
|
495
551
|
"config": {
|
|
@@ -695,6 +751,24 @@
|
|
|
695
751
|
},
|
|
696
752
|
"jspm": {
|
|
697
753
|
"$ref": "#"
|
|
754
|
+
},
|
|
755
|
+
"eslintConfig": {
|
|
756
|
+
"$ref": "https://json.schemastore.org/eslintrc.json"
|
|
757
|
+
},
|
|
758
|
+
"prettier": {
|
|
759
|
+
"$ref": "https://json.schemastore.org/prettierrc.json"
|
|
760
|
+
},
|
|
761
|
+
"stylelint": {
|
|
762
|
+
"$ref": "https://json.schemastore.org/stylelintrc.json"
|
|
763
|
+
},
|
|
764
|
+
"ava": {
|
|
765
|
+
"$ref": "https://json.schemastore.org/ava.json"
|
|
766
|
+
},
|
|
767
|
+
"release": {
|
|
768
|
+
"$ref": "https://json.schemastore.org/semantic-release.json"
|
|
769
|
+
},
|
|
770
|
+
"jscpd": {
|
|
771
|
+
"$ref": "https://json.schemastore.org/jscpd.json"
|
|
698
772
|
}
|
|
699
773
|
},
|
|
700
774
|
"anyOf": [
|