Skip to content

Commit 3367e88

Browse files
feat: add the conditionalGeneration property in the package.json. (#725)
Co-authored-by: AayushSaini101 <[email protected]> Co-authored-by: Chan <[email protected]>
1 parent 547dd6d commit 3367e88

File tree

2 files changed

+15
-36
lines changed

2 files changed

+15
-36
lines changed

hooks/01_removeNotRelevantParts.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,20 @@
6060
"renderer": "react",
6161
"apiVersion": "v3",
6262
"generator": ">=2.0.0 <3.0.0",
63+
"conditionalGeneration": {
64+
"css": {
65+
"parameter": "singleFile",
66+
"validation": {
67+
"const": "false"
68+
}
69+
},
70+
"js": {
71+
"parameter": "singleFile",
72+
"validation": {
73+
"const": "false"
74+
}
75+
}
76+
},
6377
"parameters": {
6478
"sidebarOrganization": {
6579
"description": "Defines how the sidebar should be organized. 'byTags' to categorize operations by tags in the root of the document, `byTagsNoRoot` does the same but for pub/sub tags.",
@@ -134,4 +148,4 @@
134148
"^nimma/(.*)": "<rootDir>/node_modules/nimma/dist/cjs/$1"
135149
}
136150
}
137-
}
151+
}

0 commit comments

Comments
 (0)