@getkist/action-tsup 1.0.2 → 1.0.5

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,8 +1,8 @@
1
+ export { BundleAction } from "./actions/BundleAction/index.js";
2
+ export type { BundleActionOptions, BundleFormat } from "./actions/BundleAction/index.js";
3
+ export { Action, ActionPlugin } from "./types/Action.js";
4
+ export type { ActionOptionsType } from "./types/Action.js";
1
5
  import { ActionPlugin } from "./types/Action.js";
2
- import { BundleAction } from "./actions/BundleAction/index.js";
3
6
  declare const plugin: ActionPlugin;
4
7
  export default plugin;
5
- export type { BundleActionOptions, BundleFormat } from "./actions/BundleAction/index.js";
6
- export { BundleAction };
7
- export { Action, ActionPlugin, ActionOptionsType } from "./types/Action.js";
8
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,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,QAAA,MAAM,MAAM,EAAE,YAIb,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACzF,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,10 +1,20 @@
1
+ // ============================================================================
2
+ // Export
3
+ // ============================================================================
4
+ export { BundleAction } from "./actions/BundleAction/index.js";
5
+ export { Action } from "./types/Action.js";
1
6
  import { BundleAction } from "./actions/BundleAction/index.js";
2
7
  const plugin = {
3
- name: "@getkist/action-tsup",
4
- version: "1.0.0",
5
- actions: { BundleAction },
8
+ version: "1.0.2",
9
+ description: "TypeScript bundling actions for kist using tsup",
10
+ author: "kist",
11
+ repository: "https://github.com/getkist/kist-action-tsup",
12
+ keywords: ["kist", "kist-action", "tsup", "bundler", "typescript", "esbuild"],
13
+ registerActions() {
14
+ return {
15
+ BundleAction,
16
+ };
17
+ },
6
18
  };
7
19
  export default plugin;
8
- export { BundleAction };
9
- export { Action } from "./types/Action.js";
10
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":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,MAAM,GAAiB;IACzB,IAAI,EAAE,sBAAsB;IAC5B,OAAO,EAAE,OAAO;IAChB,OAAO,EAAE,EAAE,YAAY,EAAE;CAC5B,CAAC;AAEF,eAAe,MAAM,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,MAAM,EAAmC,MAAM,mBAAmB,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,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,OAAO,EAAE,MAAM,EAAgB,MAAM,mBAAmB,CAAC;AAQzD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAE/D,MAAM,MAAM,GAAiB;IACzB,OAAO,EAAE,OAAO;IAChB,WAAW,EAAE,iDAAiD;IAC9D,MAAM,EAAE,MAAM;IACd,UAAU,EAAE,6CAA6C;IACzD,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,CAAC;IAC7E,eAAe;QACX,OAAO;YACH,YAAY;SACf,CAAC;IACN,CAAC;CACJ,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -51,10 +51,20 @@ export declare abstract class Action<T extends ActionOptionsType = ActionOptions
51
51
  */
52
52
  export interface ActionPlugin {
53
53
  /** Plugin name */
54
- name: string;
54
+ name?: string;
55
55
  /** Plugin version */
56
56
  version: string;
57
+ /** Plugin description */
58
+ description?: string;
59
+ /** Plugin author */
60
+ author?: string;
61
+ /** Repository URL */
62
+ repository?: string;
63
+ /** Keywords */
64
+ keywords?: string[];
57
65
  /** Map of action names to action classes */
58
- actions: Record<string, new () => Action>;
66
+ actions?: Record<string, new () => Action>;
67
+ /** Register actions method */
68
+ registerActions?: () => Record<string, new () => Action>;
59
69
  }
60
70
  //# sourceMappingURL=Action.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../src/types/Action.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAExD;;;GAGG;AACH,8BAAsB,MAAM,CAAC,CAAC,SAAS,iBAAiB,GAAG,iBAAiB;IACxE;;OAEG;IACH,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;OAGG;IACH,eAAe,CAAC,QAAQ,EAAE,CAAC,GAAG,OAAO;IAIrC;;;OAGG;IACH,QAAQ,CAAC,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S,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;IAI1D;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAMzC;;OAEG;IACH,SAAS,CAAC,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;CAG9C;AAED;;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;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,MAAM,CAAC,CAAC;IAC3C,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,UAAU,MAAM,CAAC,CAAC;CAC5D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getkist/action-tsup",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "TypeScript bundling actions for kist using tsup",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",