startx 0.6.0 → 0.7.0
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/.github/workflows/publish.yml +1 -1
- package/apps/cli/package.json +11 -5
- package/apps/cli/src/utils/inquirer.ts +1 -1
- package/apps/cli/vitest.config.ts +3 -0
- package/apps/core-server/package.json +4 -3
- package/apps/core-server/vitest.config.ts +3 -0
- package/apps/startx-cli/dist/index.mjs +203 -0
- package/apps/startx-cli/package.json +9 -2
- package/apps/startx-cli/src/commands/init.ts +6 -2
- package/apps/startx-cli/src/configs/files.ts +2 -3
- package/apps/startx-cli/src/configs/scripts.ts +1 -1
- package/apps/startx-cli/vitest.config.ts +3 -0
- package/configs/eslint-config/package.json +5 -3
- package/configs/eslint-config/src/rules/no-json-parse-json-stringify.test.ts +8 -9
- package/configs/eslint-config/src/rules/no-json-parse-json-stringify.ts +18 -8
- package/configs/tsdown-config/package.json +4 -1
- package/configs/vitest-config/package.json +2 -1
- package/configs/vitest-config/src/base.ts +1 -0
- package/configs/vitest-config/src/frontend.ts +11 -11
- package/configs/vitest-config/src/node.ts +2 -2
- package/configs/vitest-config/tsconfig.json +3 -1
- package/package.json +1 -1
- package/packages/@repo/constants/package.json +2 -1
- package/packages/@repo/constants/vitest.config.ts +3 -0
- package/packages/@repo/db/package.json +1 -0
- package/packages/@repo/db/vitest.config.ts +3 -0
- package/packages/@repo/env/vitest.config.ts +3 -0
- package/packages/@repo/lib/vitest.config.ts +3 -0
- package/packages/@repo/logger/vitest.config.ts +3 -0
- package/packages/@repo/mail/package.json +4 -3
- package/packages/@repo/mail/vitest.config.ts +3 -0
- package/packages/@repo/redis/package.json +1 -0
- package/packages/@repo/redis/vitest.config.ts +3 -0
- package/packages/ui/package.json +2 -1
- package/packages/ui/vitest.config.ts +3 -0
- package/startx.json +1 -0
package/apps/cli/package.json
CHANGED
|
@@ -5,9 +5,17 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
8
|
"build": "tsdown --config-loader unrun",
|
|
10
|
-
"cli": "tsx src/index.ts"
|
|
9
|
+
"cli": "tsx src/index.ts",
|
|
10
|
+
"start": "node dist/index.mjs",
|
|
11
|
+
"lint": "eslint .",
|
|
12
|
+
"lint:fix": "eslint . src/**/*.ts --fix",
|
|
13
|
+
"clean": "rimraf dist .turbo dist",
|
|
14
|
+
"deep:clean": "rimraf node_modules dist .turbo",
|
|
15
|
+
"typecheck": "tsc --noEmit",
|
|
16
|
+
"format": "prettier --write .",
|
|
17
|
+
"format:check": "prettier --check .",
|
|
18
|
+
"test": "vitest run"
|
|
11
19
|
},
|
|
12
20
|
"keywords": [],
|
|
13
21
|
"author": "",
|
|
@@ -21,9 +29,7 @@
|
|
|
21
29
|
"dependencies": {
|
|
22
30
|
"@inquirer/prompts": "^8.3.0",
|
|
23
31
|
"@repo/logger": "workspace:*",
|
|
24
|
-
"
|
|
25
|
-
"commander": "^14.0.0",
|
|
26
|
-
"type-fest": "^5.4.4"
|
|
32
|
+
"commander": "^14.0.0"
|
|
27
33
|
},
|
|
28
34
|
"startx": {
|
|
29
35
|
"gTags": [
|
|
@@ -131,7 +131,7 @@ export class CommonInquirer {
|
|
|
131
131
|
const answer = await checkbox({
|
|
132
132
|
message,
|
|
133
133
|
choices,
|
|
134
|
-
validate:
|
|
134
|
+
validate: input => {
|
|
135
135
|
if (required && input.length === 0) {
|
|
136
136
|
return "You must select at least one option.";
|
|
137
137
|
}
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
"dev": "tsx watch src/index.ts",
|
|
9
9
|
"dev:debug": "tsx watch --inspect src/index.ts",
|
|
10
10
|
"bun:dev": "bun --watch src/index.ts",
|
|
11
|
+
"build": "tsdown --config-loader unrun",
|
|
11
12
|
"start": "node dist/index.mjs",
|
|
12
13
|
"lint": "eslint .",
|
|
13
|
-
"
|
|
14
|
-
"clean": "rimraf dist",
|
|
14
|
+
"lint:fix": "eslint . src/**/*.ts --fix",
|
|
15
|
+
"clean": "rimraf dist .turbo dist",
|
|
15
16
|
"deep:clean": "rimraf node_modules dist .turbo",
|
|
16
17
|
"typecheck": "tsc --noEmit",
|
|
17
|
-
"lint:fix": "eslint . src/**/*.ts --fix",
|
|
18
18
|
"format": "biome format --write .",
|
|
19
19
|
"format:check": "biome ci .",
|
|
20
20
|
"test": "vitest run"
|
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
"@types/express-fileupload": "catalog:",
|
|
43
43
|
"@types/morgan": "catalog:",
|
|
44
44
|
"eslint-config": "workspace:*",
|
|
45
|
+
"vitest-config": "workspace:*",
|
|
45
46
|
"tsdown-config": "workspace:*",
|
|
46
47
|
"typescript-config": "workspace:*"
|
|
47
48
|
},
|