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.
- package/dist/bin.js +237 -34
- package/dist/templates/fumadocs/MUST-FOLLOW-GUIDELINES.md +1496 -33
- package/dist/templates/monorepo/MUST-FOLLOW-GUIDELINES.md +1496 -33
- package/dist/templates/monorepo/apps/example/package.json +1 -1
- package/dist/templates/monorepo/core/packages/utils/rolldown.config.ts +30 -0
- package/dist/templates/monorepo/tsconfig.json +3 -1
- package/dist/templates/telegram-bot/MUST-FOLLOW-GUIDELINES.md +1732 -0
- package/dist/templates/telegram-bot/bun.lock +6 -20
- package/dist/templates/telegram-bot/core/package.json +11 -0
- package/dist/templates/telegram-bot/core/rolldown.config.ts +11 -0
- package/dist/templates/telegram-bot/core/src/config/logging.ts +1 -3
- package/dist/templates/telegram-bot/core/src/handlers/config-export.ts +10 -9
- package/dist/templates/telegram-bot/core/src/handlers/control.ts +30 -21
- package/dist/templates/telegram-bot/core/src/handlers/demo-full.ts +58 -0
- package/dist/templates/telegram-bot/core/src/handlers/demo-keyboard.ts +49 -0
- package/dist/templates/telegram-bot/core/src/handlers/demo-media.ts +163 -0
- package/dist/templates/telegram-bot/core/src/handlers/demo-text.ts +27 -0
- package/dist/templates/telegram-bot/core/src/handlers/health.ts +22 -14
- package/dist/templates/telegram-bot/core/src/handlers/info.ts +21 -23
- package/dist/templates/telegram-bot/core/src/handlers/logs.ts +8 -6
- package/dist/templates/telegram-bot/core/src/index.ts +20 -1
- package/dist/templates/telegram-bot/core/src/utils/formatters.ts +5 -60
- package/dist/templates/telegram-bot/core/tsconfig.json +2 -0
- package/dist/templates/telegram-bot/package.json +3 -2
- package/dist/templates/telegram-bot/packages/utils/package.json +12 -1
- package/dist/templates/telegram-bot/packages/utils/rolldown.config.ts +11 -0
- package/dist/templates/telegram-bot/packages/utils/tsconfig.json +10 -0
- package/dist/templates/telegram-bot/tsconfig.json +7 -2
- package/package.json +6 -3
- package/templates/fumadocs/MUST-FOLLOW-GUIDELINES.md +1496 -33
- package/templates/monorepo/MUST-FOLLOW-GUIDELINES.md +1496 -33
- package/templates/monorepo/apps/example/package.json +1 -1
- package/templates/monorepo/core/packages/utils/rolldown.config.ts +30 -0
- package/templates/monorepo/tsconfig.json +3 -1
- package/templates/telegram-bot/MUST-FOLLOW-GUIDELINES.md +1732 -0
- package/templates/telegram-bot/bun.lock +6 -20
- package/templates/telegram-bot/core/package.json +11 -0
- package/templates/telegram-bot/core/rolldown.config.ts +11 -0
- package/templates/telegram-bot/core/src/config/logging.ts +1 -3
- package/templates/telegram-bot/core/src/handlers/config-export.ts +10 -9
- package/templates/telegram-bot/core/src/handlers/control.ts +30 -21
- package/templates/telegram-bot/core/src/handlers/demo-full.ts +58 -0
- package/templates/telegram-bot/core/src/handlers/demo-keyboard.ts +49 -0
- package/templates/telegram-bot/core/src/handlers/demo-media.ts +163 -0
- package/templates/telegram-bot/core/src/handlers/demo-text.ts +27 -0
- package/templates/telegram-bot/core/src/handlers/health.ts +22 -14
- package/templates/telegram-bot/core/src/handlers/info.ts +21 -23
- package/templates/telegram-bot/core/src/handlers/logs.ts +8 -6
- package/templates/telegram-bot/core/src/index.ts +20 -1
- package/templates/telegram-bot/core/src/utils/formatters.ts +5 -60
- package/templates/telegram-bot/core/tsconfig.json +2 -0
- package/templates/telegram-bot/package.json +3 -2
- package/templates/telegram-bot/packages/utils/package.json +12 -1
- package/templates/telegram-bot/packages/utils/rolldown.config.ts +11 -0
- package/templates/telegram-bot/packages/utils/tsconfig.json +10 -0
- package/templates/telegram-bot/tsconfig.json +7 -2
- 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
|
}
|