hokit 1.2.2-beta.1 → 1.2.3-beta.1

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/README.md CHANGED
@@ -16,21 +16,26 @@ bun add hokit --dev
16
16
 
17
17
  ## Usage
18
18
 
19
- ![How to use](https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/2xZ5Kq-OLw/original)
19
+ ![How to use](https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/MclM4EDDhi/original)
20
20
 
21
21
  Build your snippets:
22
22
 
23
- ![Build](https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/_s5vv1A8hn/original)
23
+ ![Build](https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/N_mpbRMTvU/original)
24
+
25
+ Scripts:
26
+
27
+ ![CLI](https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/8f4vwvAB5j/original)
24
28
 
25
29
  Run:
26
30
 
27
31
  ```sh
28
- bun run build.ts
32
+ bun run build # or
33
+ bun run lint
29
34
  ```
30
35
 
31
36
  Generated output:
32
37
 
33
- ![JSON generated](https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/UpIX7GpL4d/original)
38
+ ![JSON generated](https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/PGDjrKA4eD/original)
34
39
 
35
40
  <div align="right">
36
41
  <img src="https://xgjzloifyvgpbmyonaya.supabase.co/storage/v1/object/public/files/CLkIt_6NNL/original" alt="Logo" width="50">
package/dist/index.d.ts CHANGED
@@ -31,7 +31,7 @@ interface Config {
31
31
  output: string;
32
32
  snippets: SnippetBuilder[];
33
33
  }
34
- declare function defineCofig(config: Config): Config;
34
+ declare function defineConfig(config: Config): Config;
35
35
  //#endregion
36
36
  //#region src/build.d.ts
37
37
  declare function build(...config: Config[]): Promise<void>;
@@ -42,7 +42,7 @@ interface HokitConfig {
42
42
  }
43
43
  //#endregion
44
44
  //#region src/define-hokit-config.d.ts
45
- declare function defineConfig(config: HokitConfig): HokitConfig;
45
+ declare function defineHokitConfig(config: HokitConfig): HokitConfig;
46
46
  //#endregion
47
47
  //#region src/lint.d.ts
48
48
  declare function lint(...configs: Config[]): Promise<void>;
@@ -52,4 +52,4 @@ declare abstract class Registry {
52
52
  static name(name: string): SnippetBuilder;
53
53
  }
54
54
  //#endregion
55
- export { HokitConfig, Registry, type Snippet, build, defineCofig, defineConfig, lint };
55
+ export { HokitConfig, Registry, type Snippet, build, defineConfig, defineHokitConfig, lint };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{n as e,t}from"./lint-CMzvqp4X.js";function n(e){return e}function r(e){return e}var i=class{snippet={};name(e){return this.snippet.name=e,this}scope(e){return this.snippet.scope=[...e].sort(),this}prefix(e){return this.snippet.prefix=e,this}body(e){return this.snippet.body=e,this}describe(e){return this.snippet.description=e,this}template(e=!0){return this.snippet.isFileTemplate=e,this}tag(e){return this.snippet.tags=e,this}build(){return this.snippet}},a=class{static name(e){return new i().name(e)}};export{a as Registry,e as build,n as defineCofig,r as defineConfig,t as lint};
1
+ import{n as e,t}from"./lint-CMzvqp4X.js";function n(e){return e}function r(e){return e}var i=class{snippet={};name(e){return this.snippet.name=e,this}scope(e){return this.snippet.scope=[...e].sort(),this}prefix(e){return this.snippet.prefix=e,this}body(e){return this.snippet.body=e,this}describe(e){return this.snippet.description=e,this}template(e=!0){return this.snippet.isFileTemplate=e,this}tag(e){return this.snippet.tags=e,this}build(){return this.snippet}},a=class{static name(e){return new i().name(e)}};export{a as Registry,e as build,n as defineConfig,r as defineHokitConfig,t as lint};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hokit",
3
- "version": "1.2.2-beta.1",
3
+ "version": "1.2.3-beta.1",
4
4
  "description": "A type-safe snippet registry and compiler for VSCode and Cursor.",
5
5
  "keywords": [
6
6
  "cursor",