bod 5.21.2 → 5.21.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.
|
@@ -19,12 +19,12 @@ describe('createCommand', () => {
|
|
|
19
19
|
it.each(CreateCommand_1.default.TemplateActions)('should get correct command/args and invoke [inquirer] via template choice [$name]', (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ value }) {
|
|
20
20
|
const mockPrompt = jest
|
|
21
21
|
.spyOn(utils_1.inquirer, 'prompt')
|
|
22
|
-
.mockImplementation(() => {
|
|
22
|
+
.mockImplementation(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
23
23
|
const promise = new Promise((resolve) => {
|
|
24
24
|
resolve({ templateName: value });
|
|
25
25
|
});
|
|
26
26
|
return promise;
|
|
27
|
-
});
|
|
27
|
+
}));
|
|
28
28
|
const mockSpawn = jest.spyOn(utils_1.spawn, 'sync').mockImplementation(() => {
|
|
29
29
|
return {
|
|
30
30
|
status: 0,
|
|
@@ -49,12 +49,12 @@ describe('createCommand', () => {
|
|
|
49
49
|
it.each(CreateCommand_1.default.TemplateActions)('should throw error when exited with non zero via template choice [$name]', (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ value }) {
|
|
50
50
|
const mockPrompt = jest
|
|
51
51
|
.spyOn(utils_1.inquirer, 'prompt')
|
|
52
|
-
.mockImplementation(() => {
|
|
52
|
+
.mockImplementation(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
53
53
|
const promise = new Promise((resolve) => {
|
|
54
54
|
resolve({ templateName: value });
|
|
55
55
|
});
|
|
56
56
|
return promise;
|
|
57
|
-
});
|
|
57
|
+
}));
|
|
58
58
|
const mockSpawn = jest.spyOn(utils_1.spawn, 'sync').mockImplementation(() => {
|
|
59
59
|
return {
|
|
60
60
|
status: 1,
|
|
@@ -75,12 +75,12 @@ describe('createCommand', () => {
|
|
|
75
75
|
it.each(CreateCommand_1.default.TemplateActions)('should initialize app directory via template choice [$name]', (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ value }) {
|
|
76
76
|
const mockPrompt = jest
|
|
77
77
|
.spyOn(utils_1.inquirer, 'prompt')
|
|
78
|
-
.mockImplementation(() => {
|
|
78
|
+
.mockImplementation(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
79
79
|
const promise = new Promise((resolve) => {
|
|
80
80
|
resolve({ templateName: value });
|
|
81
81
|
});
|
|
82
82
|
return promise;
|
|
83
|
-
});
|
|
83
|
+
}));
|
|
84
84
|
const additionalOptions = value === 'vue'
|
|
85
85
|
? ['--default']
|
|
86
86
|
: value === 'vite'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bod",
|
|
3
|
-
"version": "5.21.
|
|
3
|
+
"version": "5.21.3",
|
|
4
4
|
"description": "Boilerplate CLI App",
|
|
5
5
|
"author": "sabertazimi <sabertazimi@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
"@types/envinfo": "^7.8.4",
|
|
65
65
|
"@types/inquirer": "^8.2.10",
|
|
66
66
|
"ci-info": "^4.0.0",
|
|
67
|
-
"rimraf": "^
|
|
68
|
-
"type-fest": "^4.
|
|
67
|
+
"rimraf": "^6.0.1",
|
|
68
|
+
"type-fest": "^4.22.1"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "33a9ef85979e8e04af80f9577eca064158e8a070"
|
|
71
71
|
}
|