create-seedcli 0.1.9 → 0.1.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-seedcli",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Scaffold a new Seed CLI project — works with bun create, npx, and npm create",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -40,15 +40,15 @@
40
40
  "templates"
41
41
  ],
42
42
  "dependencies": {
43
- "@seedcli/filesystem": "^0.1.9",
44
- "@seedcli/package-manager": "^0.1.9",
45
- "@seedcli/print": "^0.1.9",
46
- "@seedcli/prompt": "^0.1.9",
47
- "@seedcli/strings": "^0.1.9",
48
- "@seedcli/system": "^0.1.9",
49
- "@seedcli/template": "^0.1.9"
43
+ "@seedcli/filesystem": "^0.1.7",
44
+ "@seedcli/package-manager": "^0.1.7",
45
+ "@seedcli/print": "^0.1.7",
46
+ "@seedcli/prompt": "^0.1.7",
47
+ "@seedcli/strings": "^0.1.7",
48
+ "@seedcli/system": "^0.1.7",
49
+ "@seedcli/template": "^0.1.7"
50
50
  },
51
51
  "devDependencies": {
52
- "@seedcli/testing": "^0.1.9"
52
+ "@seedcli/testing": "^0.1.7"
53
53
  }
54
54
  }
@@ -1,19 +1,15 @@
1
1
  import { defineExtension } from "@seedcli/core";
2
2
 
3
- declare module "@seedcli/core" {
4
- interface ToolboxExtensions {
5
- <%= it.name.replace(/-/g, "_") %>: {
6
- greet(name: string): string;
7
- };
8
- }
9
- }
10
-
11
3
  export const exampleExtension = defineExtension({
12
4
  name: "<%= it.name %>",
13
5
  description: "Example extension for <%= it.name %>",
14
6
 
15
7
  setup: (toolbox) => {
16
- (toolbox as unknown as Record<string, unknown>).<%= it.name.replace(/-/g, "_") %> = {
8
+ // Built-in toolbox modules are fully typed
9
+ toolbox.print.muted("[<%= it.name %>] extension loaded");
10
+
11
+ // Attach your extension to the toolbox (typed via src/types.d.ts)
12
+ toolbox.<%= it.name.replace(/-/g, "_") %> = {
17
13
  greet: (name: string) => `Hello from <%= it.name %>, ${name}!`,
18
14
  };
19
15
  },
@@ -2,6 +2,9 @@ import { definePlugin } from "@seedcli/core";
2
2
  import helloCommand from "./commands/hello.js";
3
3
  import { exampleExtension } from "./extensions/example.js";
4
4
 
5
+ // Re-export types so consumers get ToolboxExtensions augmentation
6
+ export type {} from "./types.js";
7
+
5
8
  export default definePlugin({
6
9
  name: "<%= it.name %>",
7
10
  version: "<%= it.version %>",
@@ -0,0 +1,9 @@
1
+ import type {} from "@seedcli/core";
2
+
3
+ declare module "@seedcli/core" {
4
+ interface ToolboxExtensions {
5
+ <%= it.name.replace(/-/g, "_") %>: {
6
+ greet(name: string): string;
7
+ };
8
+ }
9
+ }