bod 5.21.3 → 5.21.5
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/dist/bod.js +1 -1
- package/dist/commands/CreateCommand.js +0 -28
- package/dist/utils/core.d.ts +2 -0
- package/dist/utils/index.d.ts +2 -0
- package/package.json +8 -7
package/dist/bod.js
CHANGED
|
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
|
|
6
6
|
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
7
7
|
const node_process_1 = tslib_1.__importDefault(require("node:process"));
|
|
8
|
-
const utils_1 = require("./utils");
|
|
9
8
|
const index_1 = require("./index");
|
|
9
|
+
const utils_1 = require("./utils");
|
|
10
10
|
const packageJsonPath = node_path_1.default.join(__dirname, '../package.json');
|
|
11
11
|
const packageJson = JSON.parse(node_fs_1.default.readFileSync(packageJsonPath, { encoding: 'utf-8' }));
|
|
12
12
|
utils_1.program.version((_a = packageJson.version) !== null && _a !== void 0 ? _a : '0.0.1', '-v, --version');
|
|
@@ -99,34 +99,6 @@ CreateCommand.TemplateActions = [
|
|
|
99
99
|
},
|
|
100
100
|
],
|
|
101
101
|
},
|
|
102
|
-
{
|
|
103
|
-
name: 'React JSX',
|
|
104
|
-
value: 'jsx',
|
|
105
|
-
command: 'npm',
|
|
106
|
-
args: [
|
|
107
|
-
'create',
|
|
108
|
-
'react-app@latest',
|
|
109
|
-
'--template',
|
|
110
|
-
'@sabertazimi/cra-template@latest',
|
|
111
|
-
'--scripts-version',
|
|
112
|
-
'@sabertazimi/react-scripts@latest',
|
|
113
|
-
],
|
|
114
|
-
postCommands: [],
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: 'React TSX',
|
|
118
|
-
value: 'tsx',
|
|
119
|
-
command: 'npm',
|
|
120
|
-
args: [
|
|
121
|
-
'create',
|
|
122
|
-
'react-app@latest',
|
|
123
|
-
'--template',
|
|
124
|
-
'@sabertazimi/cra-template-typescript@latest',
|
|
125
|
-
'--scripts-version',
|
|
126
|
-
'@sabertazimi/react-scripts@latest',
|
|
127
|
-
],
|
|
128
|
-
postCommands: [],
|
|
129
|
-
},
|
|
130
102
|
{
|
|
131
103
|
name: 'React Framework',
|
|
132
104
|
value: 'react',
|
package/dist/utils/core.d.ts
CHANGED
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import type { Answers } from './core';
|
|
1
2
|
import { color, printer } from './console';
|
|
2
3
|
import { inquirer, program } from './core';
|
|
3
4
|
import { envinfo, spawn } from './os';
|
|
4
5
|
declare function findPackageManager(): string;
|
|
5
6
|
export { color, envinfo, findPackageManager, inquirer, printer, program, spawn };
|
|
7
|
+
export type { Answers };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bod",
|
|
3
|
-
"version": "5.21.
|
|
3
|
+
"version": "5.21.5",
|
|
4
4
|
"description": "Boilerplate CLI App",
|
|
5
5
|
"author": "sabertazimi <sabertazimi@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -48,24 +48,25 @@
|
|
|
48
48
|
"lint": "pnpm lint:style && pnpm lint:type-check",
|
|
49
49
|
"lint:style": "eslint ./src",
|
|
50
50
|
"lint:type-check": "tsc --noEmit",
|
|
51
|
+
"lint:fix": "eslint --fix ./src",
|
|
51
52
|
"start": "pnpm dev"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
55
|
"chalk": "^4.1.2",
|
|
55
56
|
"commander": "^12.1.0",
|
|
56
57
|
"consola": "^3.2.3",
|
|
57
|
-
"cross-spawn": "^7.0.
|
|
58
|
-
"envinfo": "^7.
|
|
58
|
+
"cross-spawn": "^7.0.6",
|
|
59
|
+
"envinfo": "^7.14.0",
|
|
59
60
|
"inquirer": "^8.2.6",
|
|
60
|
-
"tslib": "^2.
|
|
61
|
+
"tslib": "^2.8.1"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@types/cross-spawn": "^6.0.6",
|
|
64
65
|
"@types/envinfo": "^7.8.4",
|
|
65
66
|
"@types/inquirer": "^8.2.10",
|
|
66
|
-
"ci-info": "^4.
|
|
67
|
+
"ci-info": "^4.1.0",
|
|
67
68
|
"rimraf": "^6.0.1",
|
|
68
|
-
"type-fest": "^4.
|
|
69
|
+
"type-fest": "^4.30.1"
|
|
69
70
|
},
|
|
70
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "0cee75b03ae618b85ed9163124f4492a340bd9cd"
|
|
71
72
|
}
|