Skip to content

Commit 72b3891

Browse files
committed
fix prettier for json
1 parent d0e14db commit 72b3891

File tree

7 files changed

+584
-603
lines changed

7 files changed

+584
-603
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@
6565
"deploy:feat": "yarn pre-publish && npx lerna publish from-package --dist-tag feat && git push --tags origin HEAD",
6666
"deploy:next": "yarn pre-publish && npx lerna publish from-package --dist-tag next && git push --tags origin HEAD",
6767
"deploy:prod": "yarn pre-publish && npx lerna publish from-package && git push --tags origin HEAD",
68-
"generateSchema": "npx rnv hooks run -x generateSchema",
68+
"generateSchema": "npx rnv hooks run -x generateSchema && yarn prettier-write-json",
6969
"resetOverrides": "npx rnv hooks run -x resetOverrides",
7070
"link:rnv": "npm r rnv -g && cd packages/rnv && npm link",
7171
"lint": "npx eslint ./packages",
7272
"postinstall": "npx lerna link --force-local && npx jetify && npx husky install",
7373
"pre-publish": "yarn build && yarn link:rnv && yarn lint && yarn test && rnv hooks run -x prePublish && rnv hooks run -x gitCommitAndTag && yarn generateSchema",
7474
"prettier-write-all": "npx prettier '**/*.{js,jsx,ts,tsx,mjs,cjs,json,md}' --write --config .prettierrc.js",
75-
"prettier-write-json": "npx prettier '**/{package.json,renative.plugins.json,renative.json,renative.templates.json,renative.template.json,renative.plugin.json,renative.engine.json,rnv.json}' --write --config .prettierrc.js",
75+
"prettier-write-json": "npx prettier '**/{package.json,renative.json,renative.**.json,rnv.json,rnv.**.json,renative-1.0.schema.json}' --write --config .prettierrc.js",
7676
"report-circular": "npx madge --circular --extensions ts --exclude '\\.(d.ts)$' ./packages",
7777
"report-jest": "jest --coverage",
7878
"report-ts-coverage": "typescript-coverage-report -p ./packages/core/tsconfig.json -t 99",
Lines changed: 91 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,97 @@
11
{
2-
"$ref": "#/definitions/rnv.engine",
3-
"definitions": {
4-
"rnv.engine": {
5-
"type": "object",
6-
"properties": {
7-
"custom": {
8-
"description": "Object used to extend your renative with custom props. This allows renative json schema to be validated"
9-
},
10-
"name": {
11-
"type": "string",
12-
"description": "Name of the engine (best to use name of the actual package)"
13-
},
14-
"engineExtension": {
15-
"type": "string",
16-
"description": "Engine extension used by rnv during compilation"
17-
},
18-
"overview": {
19-
"type": "string",
20-
"description": "Overview description of engine"
21-
},
22-
"plugins": {
23-
"type": "object",
24-
"additionalProperties": {
25-
"type": "string"
26-
},
27-
"description": "List of required plugins for this engine to work properly"
28-
},
29-
"npm": {
30-
"type": "object",
31-
"properties": {
32-
"dependencies": {
33-
"type": "object",
34-
"additionalProperties": {
35-
"type": "string"
36-
}
37-
},
38-
"devDependencies": {
39-
"$ref": "#/definitions/rnv.engine/properties/npm/properties/dependencies"
40-
},
41-
"peerDependencies": {
42-
"$ref": "#/definitions/rnv.engine/properties/npm/properties/dependencies"
43-
},
44-
"optionalDependencies": {
45-
"$ref": "#/definitions/rnv.engine/properties/npm/properties/dependencies"
46-
}
47-
},
48-
"additionalProperties": false,
49-
"description": "Npm dependencies required for this plugin to work"
50-
},
51-
"platforms": {
52-
"type": "object",
53-
"additionalProperties": {
2+
"$ref": "#/definitions/rnv.engine",
3+
"definitions": {
4+
"rnv.engine": {
545
"type": "object",
556
"properties": {
56-
"engine": {
57-
"type": "string"
58-
},
59-
"npm": {
60-
"$ref": "#/definitions/rnv.engine/properties/npm"
61-
}
7+
"custom": {
8+
"description": "Object used to extend your renative with custom props. This allows renative json schema to be validated"
9+
},
10+
"name": {
11+
"type": "string",
12+
"description": "Name of the engine (best to use name of the actual package)"
13+
},
14+
"engineExtension": {
15+
"type": "string",
16+
"description": "Engine extension used by rnv during compilation"
17+
},
18+
"overview": {
19+
"type": "string",
20+
"description": "Overview description of engine"
21+
},
22+
"plugins": {
23+
"type": "object",
24+
"additionalProperties": {
25+
"type": "string"
26+
},
27+
"description": "List of required plugins for this engine to work properly"
28+
},
29+
"npm": {
30+
"type": "object",
31+
"properties": {
32+
"dependencies": {
33+
"type": "object",
34+
"additionalProperties": {
35+
"type": "string"
36+
}
37+
},
38+
"devDependencies": {
39+
"$ref": "#/definitions/rnv.engine/properties/npm/properties/dependencies"
40+
},
41+
"peerDependencies": {
42+
"$ref": "#/definitions/rnv.engine/properties/npm/properties/dependencies"
43+
},
44+
"optionalDependencies": {
45+
"$ref": "#/definitions/rnv.engine/properties/npm/properties/dependencies"
46+
}
47+
},
48+
"additionalProperties": false,
49+
"description": "Npm dependencies required for this plugin to work"
50+
},
51+
"platforms": {
52+
"type": "object",
53+
"additionalProperties": {
54+
"type": "object",
55+
"properties": {
56+
"engine": {
57+
"type": "string"
58+
},
59+
"npm": {
60+
"$ref": "#/definitions/rnv.engine/properties/npm"
61+
}
62+
},
63+
"additionalProperties": false
64+
},
65+
"propertyNames": {
66+
"enum": [
67+
"web",
68+
"ios",
69+
"android",
70+
"androidtv",
71+
"firetv",
72+
"tvos",
73+
"macos",
74+
"linux",
75+
"windows",
76+
"tizen",
77+
"webos",
78+
"chromecast",
79+
"kaios",
80+
"webtv",
81+
"androidwear",
82+
"tizenwatch",
83+
"tizenmobile",
84+
"xbox"
85+
]
86+
}
87+
},
88+
"$schema": {
89+
"type": "string",
90+
"description": "schema definition"
91+
}
6292
},
6393
"additionalProperties": false
64-
},
65-
"propertyNames": {
66-
"enum": [
67-
"web",
68-
"ios",
69-
"android",
70-
"androidtv",
71-
"firetv",
72-
"tvos",
73-
"macos",
74-
"linux",
75-
"windows",
76-
"tizen",
77-
"webos",
78-
"chromecast",
79-
"kaios",
80-
"webtv",
81-
"androidwear",
82-
"tizenwatch",
83-
"tizenmobile",
84-
"xbox"
85-
]
86-
}
87-
},
88-
"$schema": {
89-
"type": "string",
90-
"description": "schema definition"
9194
}
92-
},
93-
"additionalProperties": false
94-
}
95-
},
96-
"$schema": "http://json-schema.org/draft-04/schema#"
97-
}
95+
},
96+
"$schema": "http://json-schema.org/draft-04/schema#"
97+
}
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"$ref": "#/definitions/rnv.integration",
3-
"definitions": {
4-
"rnv.integration": {
5-
"type": "object",
6-
"properties": {
7-
"name": {
8-
"type": "string",
9-
"description": "Name of the integration (best to use name of the actual package)"
10-
},
11-
"$schema": {
12-
"type": "string",
13-
"description": "schema definition"
2+
"$ref": "#/definitions/rnv.integration",
3+
"definitions": {
4+
"rnv.integration": {
5+
"type": "object",
6+
"properties": {
7+
"name": {
8+
"type": "string",
9+
"description": "Name of the integration (best to use name of the actual package)"
10+
},
11+
"$schema": {
12+
"type": "string",
13+
"description": "schema definition"
14+
}
15+
},
16+
"additionalProperties": false
1417
}
15-
},
16-
"additionalProperties": false
17-
}
18-
},
19-
"$schema": "http://json-schema.org/draft-04/schema#"
20-
}
18+
},
19+
"$schema": "http://json-schema.org/draft-04/schema#"
20+
}
Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,61 @@
11
{
2-
"$ref": "#/definitions/rnv.local",
3-
"definitions": {
4-
"rnv.local": {
5-
"type": "object",
6-
"properties": {
7-
"workspaceAppConfigsDir": {
8-
"type": "string",
9-
"description": "Defines app configs dir outside of current project"
10-
},
11-
"defaultTargets": {
12-
"type": "object",
13-
"additionalProperties": {
14-
"type": "string"
15-
},
16-
"propertyNames": {
17-
"enum": [
18-
"web",
19-
"ios",
20-
"android",
21-
"androidtv",
22-
"firetv",
23-
"tvos",
24-
"macos",
25-
"linux",
26-
"windows",
27-
"tizen",
28-
"webos",
29-
"chromecast",
30-
"kaios",
31-
"webtv",
32-
"androidwear",
33-
"tizenwatch",
34-
"tizenmobile",
35-
"xbox"
36-
]
37-
},
38-
"description": "Define targets to be used when -t is not set on any project run"
39-
},
40-
"_meta": {
41-
"type": "object",
42-
"properties": {
43-
"currentAppConfigId": {
44-
"type": "string"
2+
"$ref": "#/definitions/rnv.local",
3+
"definitions": {
4+
"rnv.local": {
5+
"type": "object",
6+
"properties": {
7+
"workspaceAppConfigsDir": {
8+
"type": "string",
9+
"description": "Defines app configs dir outside of current project"
10+
},
11+
"defaultTargets": {
12+
"type": "object",
13+
"additionalProperties": {
14+
"type": "string"
15+
},
16+
"propertyNames": {
17+
"enum": [
18+
"web",
19+
"ios",
20+
"android",
21+
"androidtv",
22+
"firetv",
23+
"tvos",
24+
"macos",
25+
"linux",
26+
"windows",
27+
"tizen",
28+
"webos",
29+
"chromecast",
30+
"kaios",
31+
"webtv",
32+
"androidwear",
33+
"tizenwatch",
34+
"tizenmobile",
35+
"xbox"
36+
]
37+
},
38+
"description": "Define targets to be used when -t is not set on any project run"
39+
},
40+
"_meta": {
41+
"type": "object",
42+
"properties": {
43+
"currentAppConfigId": {
44+
"type": "string"
45+
},
46+
"requiresJetify": {
47+
"type": "boolean"
48+
}
49+
},
50+
"additionalProperties": false
51+
},
52+
"$schema": {
53+
"type": "string",
54+
"description": "schema definition"
55+
}
4556
},
46-
"requiresJetify": {
47-
"type": "boolean"
48-
}
49-
},
50-
"additionalProperties": false
51-
},
52-
"$schema": {
53-
"type": "string",
54-
"description": "schema definition"
57+
"additionalProperties": false
5558
}
56-
},
57-
"additionalProperties": false
58-
}
59-
},
60-
"$schema": "http://json-schema.org/draft-04/schema#"
61-
}
59+
},
60+
"$schema": "http://json-schema.org/draft-04/schema#"
61+
}

0 commit comments

Comments
 (0)