@getkist/action-prettier 1.0.4 → 1.0.6

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
@@ -1,16 +1,8 @@
1
- import { PrettierAction } from "./actions/PrettierAction/index.js";
2
1
  export { PrettierAction } from "./actions/PrettierAction/index.js";
3
2
  export type { PrettierActionOptions } from "./actions/PrettierAction/index.js";
4
- export { Action } from "./types/Action.js";
5
- /**
6
- * Plugin definition for kist
7
- */
8
- declare const _default: {
9
- name: string;
10
- version: string;
11
- actions: {
12
- PrettierAction: PrettierAction;
13
- };
14
- };
15
- export default _default;
3
+ export { Action, ActionPlugin } from "./types/Action.js";
4
+ export type { ActionOptionsType } from "./types/Action.js";
5
+ import { ActionPlugin } from "./types/Action.js";
6
+ declare const plugin: ActionPlugin;
7
+ export default plugin;
16
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C;;GAEG;;;;;;;;AACH,wBAME"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzD,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAM3D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGjD,QAAA,MAAM,MAAM,EAAE,YAWb,CAAC;AAEF,eAAe,MAAM,CAAC"}
package/dist/index.js CHANGED
@@ -1,14 +1,20 @@
1
- import { PrettierAction } from "./actions/PrettierAction/index.js";
1
+ // ============================================================================
2
+ // Export
3
+ // ============================================================================
2
4
  export { PrettierAction } from "./actions/PrettierAction/index.js";
3
5
  export { Action } from "./types/Action.js";
4
- /**
5
- * Plugin definition for kist
6
- */
7
- export default {
8
- name: "@getkist/action-prettier",
6
+ import { PrettierAction } from "./actions/PrettierAction/index.js";
7
+ const plugin = {
9
8
  version: "1.0.0",
10
- actions: {
11
- PrettierAction: new PrettierAction(),
9
+ description: "Prettier code formatting for kist",
10
+ author: "kist",
11
+ repository: "https://github.com/getkist/kist-action-prettier",
12
+ keywords: ["kist", "kist-action", "prettier", "format"],
13
+ registerActions() {
14
+ return {
15
+ PrettierAction,
16
+ };
12
17
  },
13
18
  };
19
+ export default plugin;
14
20
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C;;GAEG;AACH,eAAe;IACX,IAAI,EAAE,0BAA0B;IAChC,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE;QACL,cAAc,EAAE,IAAI,cAAc,EAAE;KACvC;CACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,SAAS;AACT,+EAA+E;AAE/E,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,OAAO,EAAE,MAAM,EAAgB,MAAM,mBAAmB,CAAC;AAQzD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAEnE,MAAM,MAAM,GAAiB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,mCAAmC;IAChD,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,iDAAiD;IAC7D,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,CAAC;IACvD,eAAe;QACX,OAAO;YACH,cAAc;SACjB,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -45,4 +45,29 @@ export declare abstract class Action<TOptions = Record<string, unknown>> {
45
45
  */
46
46
  protected logDebug(message: string): void;
47
47
  }
48
+ /**
49
+ * Action options type - a generic record of key-value pairs
50
+ */
51
+ export type ActionOptionsType = Record<string, unknown>;
52
+ /**
53
+ * Plugin interface for kist action packages
54
+ */
55
+ export interface ActionPlugin {
56
+ /** Plugin name */
57
+ name?: string;
58
+ /** Plugin version */
59
+ version: string;
60
+ /** Plugin description */
61
+ description?: string;
62
+ /** Plugin author */
63
+ author?: string;
64
+ /** Repository URL */
65
+ repository?: string;
66
+ /** Keywords */
67
+ keywords?: string[];
68
+ /** Map of action names to action classes */
69
+ actions?: Record<string, new () => Action<any>>;
70
+ /** Register actions method */
71
+ registerActions?: () => Record<string, new () => Action<any>>;
72
+ }
48
73
  //# sourceMappingURL=Action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/types/Action.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,8BAAsB,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC3D;;OAEG;IACH,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,QAAQ,IAAI,MAAM;IAE3B;;;;OAIG;IACH,QAAQ,CAAC,eAAe,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO;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AED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qBAAqB;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,4CAA4C;IAE5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;IAChD,8BAA8B;IAE9B,eAAe,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,UAAU,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;CACjE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getkist/action-prettier",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Prettier code formatting action for kist",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -39,10 +39,10 @@
39
39
  "prettier": "^3.2.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@types/jest": "^29.5.12",
42
+ "@types/jest": "^30.0.0",
43
43
  "@types/node": "^25.2.2",
44
44
  "eslint": "^10.0.0",
45
- "jest": "^29.7.0",
45
+ "jest": "^30.2.0",
46
46
  "ts-jest": "^29.1.2",
47
47
  "typescript": "^5.3.0",
48
48
  "typescript-eslint": "^8.0.0"