create-bunspace 0.3.0 → 0.4.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 (57) hide show
  1. package/dist/bin.js +237 -34
  2. package/dist/templates/fumadocs/MUST-FOLLOW-GUIDELINES.md +1496 -33
  3. package/dist/templates/monorepo/MUST-FOLLOW-GUIDELINES.md +1496 -33
  4. package/dist/templates/monorepo/apps/example/package.json +1 -1
  5. package/dist/templates/monorepo/core/packages/utils/rolldown.config.ts +30 -0
  6. package/dist/templates/monorepo/tsconfig.json +3 -1
  7. package/dist/templates/telegram-bot/MUST-FOLLOW-GUIDELINES.md +1732 -0
  8. package/dist/templates/telegram-bot/bun.lock +6 -20
  9. package/dist/templates/telegram-bot/core/package.json +11 -0
  10. package/dist/templates/telegram-bot/core/rolldown.config.ts +11 -0
  11. package/dist/templates/telegram-bot/core/src/config/logging.ts +1 -3
  12. package/dist/templates/telegram-bot/core/src/handlers/config-export.ts +10 -9
  13. package/dist/templates/telegram-bot/core/src/handlers/control.ts +30 -21
  14. package/dist/templates/telegram-bot/core/src/handlers/demo-full.ts +58 -0
  15. package/dist/templates/telegram-bot/core/src/handlers/demo-keyboard.ts +49 -0
  16. package/dist/templates/telegram-bot/core/src/handlers/demo-media.ts +163 -0
  17. package/dist/templates/telegram-bot/core/src/handlers/demo-text.ts +27 -0
  18. package/dist/templates/telegram-bot/core/src/handlers/health.ts +22 -14
  19. package/dist/templates/telegram-bot/core/src/handlers/info.ts +21 -23
  20. package/dist/templates/telegram-bot/core/src/handlers/logs.ts +8 -6
  21. package/dist/templates/telegram-bot/core/src/index.ts +20 -1
  22. package/dist/templates/telegram-bot/core/src/utils/formatters.ts +5 -60
  23. package/dist/templates/telegram-bot/core/tsconfig.json +2 -0
  24. package/dist/templates/telegram-bot/package.json +3 -2
  25. package/dist/templates/telegram-bot/packages/utils/package.json +12 -1
  26. package/dist/templates/telegram-bot/packages/utils/rolldown.config.ts +11 -0
  27. package/dist/templates/telegram-bot/packages/utils/tsconfig.json +10 -0
  28. package/dist/templates/telegram-bot/tsconfig.json +7 -2
  29. package/package.json +6 -3
  30. package/templates/fumadocs/MUST-FOLLOW-GUIDELINES.md +1496 -33
  31. package/templates/monorepo/MUST-FOLLOW-GUIDELINES.md +1496 -33
  32. package/templates/monorepo/apps/example/package.json +1 -1
  33. package/templates/monorepo/core/packages/utils/rolldown.config.ts +30 -0
  34. package/templates/monorepo/tsconfig.json +3 -1
  35. package/templates/telegram-bot/MUST-FOLLOW-GUIDELINES.md +1732 -0
  36. package/templates/telegram-bot/bun.lock +6 -20
  37. package/templates/telegram-bot/core/package.json +11 -0
  38. package/templates/telegram-bot/core/rolldown.config.ts +11 -0
  39. package/templates/telegram-bot/core/src/config/logging.ts +1 -3
  40. package/templates/telegram-bot/core/src/handlers/config-export.ts +10 -9
  41. package/templates/telegram-bot/core/src/handlers/control.ts +30 -21
  42. package/templates/telegram-bot/core/src/handlers/demo-full.ts +58 -0
  43. package/templates/telegram-bot/core/src/handlers/demo-keyboard.ts +49 -0
  44. package/templates/telegram-bot/core/src/handlers/demo-media.ts +163 -0
  45. package/templates/telegram-bot/core/src/handlers/demo-text.ts +27 -0
  46. package/templates/telegram-bot/core/src/handlers/health.ts +22 -14
  47. package/templates/telegram-bot/core/src/handlers/info.ts +21 -23
  48. package/templates/telegram-bot/core/src/handlers/logs.ts +8 -6
  49. package/templates/telegram-bot/core/src/index.ts +20 -1
  50. package/templates/telegram-bot/core/src/utils/formatters.ts +5 -60
  51. package/templates/telegram-bot/core/tsconfig.json +2 -0
  52. package/templates/telegram-bot/package.json +3 -2
  53. package/templates/telegram-bot/packages/utils/package.json +12 -1
  54. package/templates/telegram-bot/packages/utils/rolldown.config.ts +11 -0
  55. package/templates/telegram-bot/packages/utils/tsconfig.json +10 -0
  56. package/templates/telegram-bot/tsconfig.json +7 -2
  57. package/templates/telegram-bot/core/src/utils/message-builder.ts +0 -180
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "bun --watch src/index.ts",
8
- "build": "bun build src/index.ts --outdir ./dist",
8
+ "build": "bun build src/index.ts --outdir ./dist --sourcemap && tsgo --emitDeclarationOnly",
9
9
  "typecheck": "tsgo --noEmit",
10
10
  "start": "bun run dist/index.js"
11
11
  },
@@ -11,6 +11,16 @@ export default defineConfig([
11
11
  },
12
12
  external: ['@mks2508/better-logger', '@mks2508/no-throw'],
13
13
  },
14
+ {
15
+ input: './src/index.ts',
16
+ output: {
17
+ file: './dist/index.cjs',
18
+ format: 'cjs',
19
+ exports: 'named',
20
+ sourcemap: true,
21
+ },
22
+ external: ['@mks2508/better-logger', '@mks2508/no-throw'],
23
+ },
14
24
  {
15
25
  input: './src/logger.ts',
16
26
  output: {
@@ -21,6 +31,16 @@ export default defineConfig([
21
31
  },
22
32
  external: ['@mks2508/better-logger'],
23
33
  },
34
+ {
35
+ input: './src/logger.ts',
36
+ output: {
37
+ file: './dist/logger.cjs',
38
+ format: 'cjs',
39
+ exports: 'named',
40
+ sourcemap: true,
41
+ },
42
+ external: ['@mks2508/better-logger'],
43
+ },
24
44
  {
25
45
  input: './src/result.ts',
26
46
  output: {
@@ -31,4 +51,14 @@ export default defineConfig([
31
51
  },
32
52
  external: ['@mks2508/no-throw'],
33
53
  },
54
+ {
55
+ input: './src/result.ts',
56
+ output: {
57
+ file: './dist/result.cjs',
58
+ format: 'cjs',
59
+ exports: 'named',
60
+ sourcemap: true,
61
+ },
62
+ external: ['@mks2508/no-throw'],
63
+ },
34
64
  ]);
@@ -29,7 +29,9 @@
29
29
  "declaration": true,
30
30
  "declarationMap": true,
31
31
  "sourceMap": true,
32
- "removeComments": false
32
+ "removeComments": false,
33
+ "outDir": "./dist",
34
+ "declarationDir": "./dist"
33
35
  },
34
36
  "exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
35
37
  }