hokit 1.2.0-beta.1 → 1.2.1-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/dist/index.d.ts CHANGED
@@ -36,6 +36,14 @@ declare function defineCofig(config: Config): Config;
36
36
  //#region src/build.d.ts
37
37
  declare function build(...config: Config[]): Promise<void>;
38
38
  //#endregion
39
+ //#region src/types/hokit-config.d.ts
40
+ interface HokitConfig {
41
+ snippets: Config[];
42
+ }
43
+ //#endregion
44
+ //#region src/define-hokit-config.d.ts
45
+ declare function defineConfig(config: HokitConfig): HokitConfig;
46
+ //#endregion
39
47
  //#region src/lint.d.ts
40
48
  declare function lint(...configs: Config[]): Promise<void>;
41
49
  //#endregion
@@ -44,4 +52,4 @@ declare abstract class Registry {
44
52
  static name(name: string): SnippetBuilder;
45
53
  }
46
54
  //#endregion
47
- export { Registry, type Snippet, build, defineCofig, lint };
55
+ export { HokitConfig, Registry, type Snippet, build, defineCofig, defineConfig, lint };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{n as e,t}from"./lint-B7CfdNnF.js";function n(e){return e}var r=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}},i=class{static name(e){return new r().name(e)}};export{i as Registry,e as build,n as defineCofig,t as lint};
1
+ import{n as e,t}from"./lint-B7CfdNnF.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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hokit",
3
- "version": "1.2.0-beta.1",
3
+ "version": "1.2.1-beta.1",
4
4
  "description": "A type-safe snippet registry and compiler for VSCode and Cursor.",
5
5
  "keywords": [
6
6
  "cursor",