@wolfstar/create-http-framework 2.1.1 → 2.1.3-next-20260819113924
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/index.js +2 -0
- package/package.json +3 -2
- package/template/src/index.js.hbs +1 -3
- package/template/src/index.ts.hbs +1 -3
package/dist/index.js
CHANGED
|
@@ -262,11 +262,13 @@ function buildDevDependencies(ctx) {
|
|
|
262
262
|
}
|
|
263
263
|
function packageJson(ctx) {
|
|
264
264
|
const devDependencies = buildDevDependencies(ctx);
|
|
265
|
+
const main = ctx.language === "js" ? "src/index.js" : "dist/index.js";
|
|
265
266
|
return json({
|
|
266
267
|
name: ctx.name,
|
|
267
268
|
version: "1.0.0",
|
|
268
269
|
description: "A Discord HTTP bot built with `@wolfstar/http-framework`",
|
|
269
270
|
type: "module",
|
|
271
|
+
main,
|
|
270
272
|
scripts: buildScripts(ctx),
|
|
271
273
|
dependencies: buildDependencies(ctx),
|
|
272
274
|
...Object.keys(devDependencies).length > 0 ? { devDependencies } : {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wolfstar/create-http-framework",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3-next-20260819113924",
|
|
4
4
|
"description": "Create a new WolfStar HTTP Framework bot project",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
],
|
|
31
31
|
"type": "module",
|
|
32
32
|
"publishConfig": {
|
|
33
|
-
"access": "public"
|
|
33
|
+
"access": "public",
|
|
34
|
+
"provenance": true
|
|
34
35
|
},
|
|
35
36
|
"dependencies": {
|
|
36
37
|
"@clack/prompts": "^1.7.0",
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { dirname, join } from 'node:path';
|
|
2
|
-
import { fileURLToPath } from 'node:url';
|
|
3
1
|
import { Client } from '@wolfstar/http-framework';
|
|
4
2
|
|
|
5
3
|
const client = new Client();
|
|
6
4
|
|
|
7
|
-
await client.load(
|
|
5
|
+
await client.load();
|
|
8
6
|
await client.listen({ port: {{port}} });
|
|
9
7
|
|
|
10
8
|
console.log('Bot is running on port {{port}}');
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import { dirname, join } from 'node:path';
|
|
2
|
-
import { fileURLToPath } from 'node:url';
|
|
3
1
|
import { Client } from '@wolfstar/http-framework';
|
|
4
2
|
|
|
5
3
|
const client = new Client();
|
|
6
4
|
|
|
7
|
-
await client.load(
|
|
5
|
+
await client.load();
|
|
8
6
|
await client.listen({ port: {{port}} });
|
|
9
7
|
|
|
10
8
|
console.log('Bot is running on port {{port}}');
|