@wolfstar/create-http-framework 2.1.2 → 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 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.2",
3
+ "version": "2.1.3-next-20260819113924",
4
4
  "description": "Create a new WolfStar HTTP Framework bot project",
5
5
  "keywords": [
6
6
  "cli",
@@ -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({ baseUserDirectory: join(dirname(fileURLToPath(import.meta.url)), 'commands') });
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({ baseUserDirectory: join(dirname(fileURLToPath(import.meta.url)), 'commands') });
5
+ await client.load();
8
6
  await client.listen({ port: {{port}} });
9
7
 
10
8
  console.log('Bot is running on port {{port}}');