complete-cli 1.0.15 → 1.0.17
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.
|
@@ -104,11 +104,11 @@ async function incrementVersion(versionBumpType) {
|
|
|
104
104
|
if (versionBumpType === "dev") {
|
|
105
105
|
throw new Error('The version bump type of "dev" is not currently supported.');
|
|
106
106
|
}
|
|
107
|
-
if (versionBumpType !== "major"
|
|
108
|
-
versionBumpType !== "minor"
|
|
109
|
-
versionBumpType !== "patch"
|
|
110
|
-
versionBumpType !== "dev"
|
|
111
|
-
!isSemanticVersion(versionBumpType)) {
|
|
107
|
+
if (versionBumpType !== "major"
|
|
108
|
+
&& versionBumpType !== "minor"
|
|
109
|
+
&& versionBumpType !== "patch"
|
|
110
|
+
&& versionBumpType !== "dev"
|
|
111
|
+
&& !isSemanticVersion(versionBumpType)) {
|
|
112
112
|
fatalError('The version must be one of "major", "minor", "patch", "dev", "none", or a specific semantic version like "1.2.3".');
|
|
113
113
|
}
|
|
114
114
|
// We always use `npm` here to avoid differences with the version command between package
|
|
@@ -95,8 +95,8 @@ export function getTruncatedText(fileName, text, ignoreLines, linesBeforeIgnore)
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
// End-users can have different ignored words.
|
|
98
|
-
if (fileName === "cspell.config.jsonc"
|
|
99
|
-
fileName === "_cspell.config.jsonc") {
|
|
98
|
+
if (fileName === "cspell.config.jsonc"
|
|
99
|
+
|| fileName === "_cspell.config.jsonc") {
|
|
100
100
|
if (line.match(/"words": \[.*]/) !== null) {
|
|
101
101
|
continue;
|
|
102
102
|
}
|
|
@@ -19,6 +19,11 @@ const config = {
|
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
21
|
],
|
|
22
|
+
|
|
23
|
+
// We break from the default Prettier config for only a single option: operator position. There
|
|
24
|
+
// are no known arguments for placing operators at the end of the line, as outlined in this
|
|
25
|
+
// thread: https://github.com/prettier/prettier/issues/3806
|
|
26
|
+
experimentalOperatorPosition: "start",
|
|
22
27
|
};
|
|
23
28
|
|
|
24
29
|
export default config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "complete-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "A command line tool for bootstrapping TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"chalk": "5.4.1",
|
|
39
39
|
"clipanion": "4.0.0-rc.4",
|
|
40
40
|
"complete-common": "1.1.2",
|
|
41
|
-
"complete-node": "3.1.
|
|
41
|
+
"complete-node": "3.1.6",
|
|
42
42
|
"klaw-sync": "6.0.0",
|
|
43
43
|
"yaml": "2.7.0"
|
|
44
44
|
},
|
|
@@ -172,11 +172,11 @@ async function incrementVersion(versionBumpType: string) {
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
if (
|
|
175
|
-
versionBumpType !== "major"
|
|
176
|
-
versionBumpType !== "minor"
|
|
177
|
-
versionBumpType !== "patch"
|
|
178
|
-
versionBumpType !== "dev"
|
|
179
|
-
!isSemanticVersion(versionBumpType)
|
|
175
|
+
versionBumpType !== "major"
|
|
176
|
+
&& versionBumpType !== "minor"
|
|
177
|
+
&& versionBumpType !== "patch"
|
|
178
|
+
&& versionBumpType !== "dev"
|
|
179
|
+
&& !isSemanticVersion(versionBumpType)
|
|
180
180
|
) {
|
|
181
181
|
fatalError(
|
|
182
182
|
'The version must be one of "major", "minor", "patch", "dev", "none", or a specific semantic version like "1.2.3".',
|
|
@@ -134,8 +134,8 @@ export function getTruncatedText(
|
|
|
134
134
|
|
|
135
135
|
// End-users can have different ignored words.
|
|
136
136
|
if (
|
|
137
|
-
fileName === "cspell.config.jsonc"
|
|
138
|
-
fileName === "_cspell.config.jsonc"
|
|
137
|
+
fileName === "cspell.config.jsonc"
|
|
138
|
+
|| fileName === "_cspell.config.jsonc"
|
|
139
139
|
) {
|
|
140
140
|
if (line.match(/"words": \[.*]/) !== null) {
|
|
141
141
|
continue;
|