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.
Files changed (36) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/apps/cli/package.json +11 -5
  3. package/apps/cli/src/utils/inquirer.ts +1 -1
  4. package/apps/cli/vitest.config.ts +3 -0
  5. package/apps/core-server/package.json +4 -3
  6. package/apps/core-server/vitest.config.ts +3 -0
  7. package/apps/startx-cli/dist/index.mjs +203 -0
  8. package/apps/startx-cli/package.json +9 -2
  9. package/apps/startx-cli/src/commands/init.ts +6 -2
  10. package/apps/startx-cli/src/configs/files.ts +2 -3
  11. package/apps/startx-cli/src/configs/scripts.ts +1 -1
  12. package/apps/startx-cli/vitest.config.ts +3 -0
  13. package/configs/eslint-config/package.json +5 -3
  14. package/configs/eslint-config/src/rules/no-json-parse-json-stringify.test.ts +8 -9
  15. package/configs/eslint-config/src/rules/no-json-parse-json-stringify.ts +18 -8
  16. package/configs/tsdown-config/package.json +4 -1
  17. package/configs/vitest-config/package.json +2 -1
  18. package/configs/vitest-config/src/base.ts +1 -0
  19. package/configs/vitest-config/src/frontend.ts +11 -11
  20. package/configs/vitest-config/src/node.ts +2 -2
  21. package/configs/vitest-config/tsconfig.json +3 -1
  22. package/package.json +1 -1
  23. package/packages/@repo/constants/package.json +2 -1
  24. package/packages/@repo/constants/vitest.config.ts +3 -0
  25. package/packages/@repo/db/package.json +1 -0
  26. package/packages/@repo/db/vitest.config.ts +3 -0
  27. package/packages/@repo/env/vitest.config.ts +3 -0
  28. package/packages/@repo/lib/vitest.config.ts +3 -0
  29. package/packages/@repo/logger/vitest.config.ts +3 -0
  30. package/packages/@repo/mail/package.json +4 -3
  31. package/packages/@repo/mail/vitest.config.ts +3 -0
  32. package/packages/@repo/redis/package.json +1 -0
  33. package/packages/@repo/redis/vitest.config.ts +3 -0
  34. package/packages/ui/package.json +2 -1
  35. package/packages/ui/vitest.config.ts +3 -0
  36. package/startx.json +1 -0
@@ -30,7 +30,7 @@ jobs:
30
30
  run: pnpm install --frozen-lockfile
31
31
 
32
32
  - name: Build only CLI
33
- run: pnpm --filter ./packages/cli... build
33
+ run: pnpm --filter startx-cli build
34
34
 
35
35
  - name: Clean root package.json
36
36
  run: |
@@ -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
- "chokidar": "^4.0.3",
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: (input: string[]) => {
134
+ validate: input => {
135
135
  if (required && input.length === 0) {
136
136
  return "You must select at least one option.";
137
137
  }
@@ -0,0 +1,3 @@
1
+ import vitestConfig from "vitest-config/node";
2
+
3
+ export default vitestConfig;
@@ -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
- "build": "tsdown --config-loader unrun",
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
  },
@@ -0,0 +1,3 @@
1
+ import vitestConfig from "vitest-config/node";
2
+
3
+ export default vitestConfig;