@powerlines/plugin-deepkit 0.11.558 → 0.11.561

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
@@ -74,6 +74,35 @@ A package containing the Deepkit plugin for Powerlines, various helper utilities
74
74
 
75
75
  <!-- END doctoc -->
76
76
 
77
+ ## Features
78
+
79
+ - Deepkit runtime-type transform wired through `config` and `configResolved` (`post`) hooks
80
+ - Composes the `tsc` plugin, pushing the Deepkit `transformer` to `before` and the declaration transformer to `after`
81
+ - Marks `@power-plant/schema/deepkit` external; resolved config exposes both `deepkit` and `tsc` sections
82
+
83
+ ## Usage
84
+
85
+ Install the plugin:
86
+
87
+ ```bash
88
+ pnpm add @powerlines/plugin-deepkit
89
+ ```
90
+
91
+ Register it in `powerlines.config.ts`:
92
+
93
+ ```ts
94
+ import { defineConfig } from "powerlines";
95
+ import { plugin as deepkit } from "@powerlines/plugin-deepkit";
96
+
97
+ export default defineConfig({
98
+ plugins: [
99
+ deepkit()
100
+ ]
101
+ });
102
+ ```
103
+
104
+ Run the Powerlines build for your project to activate the plugin.
105
+
77
106
  ## Installing
78
107
 
79
108
  Using [pnpm](http://pnpm.io):
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- require('./types/index.cjs');
2
+ require("./types/index.cjs");
3
3
  let _power_plant_schema_deepkit = require("@power-plant/schema/deepkit");
4
4
  let _powerlines_plugin_tsc = require("@powerlines/plugin-tsc");
5
5
  let _stryke_path_append = require("@stryke/path/append");
6
6
 
7
- //#region src/index.ts
7
+ // src/index.ts
8
8
  /**
9
9
  * Deepkit plugin for Powerlines.
10
10
  *
@@ -42,5 +42,4 @@ const plugin = (options = {}) => {
42
42
  }];
43
43
  };
44
44
 
45
- //#endregion
46
45
  exports.plugin = plugin;
package/dist/index.d.cts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig } from "./types/plugin.cjs";
2
2
  import "./types/index.cjs";
3
3
  import { Plugin } from "powerlines";
4
- //#region src/index.d.ts
5
4
  declare module "powerlines" {
6
5
  interface Config {
7
6
  deepkit?: DeepkitPluginOptions;
@@ -14,6 +13,5 @@ declare module "powerlines" {
14
13
  * @returns A Powerlines plugin that integrates Deepkit transformations.
15
14
  */
16
15
  declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>[];
17
- //#endregion
18
16
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, plugin };
19
17
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;YA8BY;IACR,UAAU;;;;;;;;;cAUD,SACX,iBAAiB,uBAAuB,sBAExC,UAAS,yBACR,OAAO"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;YA8BY;IACR,UAAU;;;;;;;;;cAUD,SACX,iBAAiB,uBAAuB,sBAExC,UAAS,yBACR,OAAO"}
package/dist/index.d.mts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig } from "./types/plugin.mjs";
2
2
  import "./types/index.mjs";
3
3
  import { Plugin } from "powerlines";
4
- //#region src/index.d.ts
5
4
  declare module "powerlines" {
6
5
  interface Config {
7
6
  deepkit?: DeepkitPluginOptions;
@@ -14,6 +13,5 @@ declare module "powerlines" {
14
13
  * @returns A Powerlines plugin that integrates Deepkit transformations.
15
14
  */
16
15
  declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>[];
17
- //#endregion
18
16
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, plugin };
19
17
  //# sourceMappingURL=index.d.mts.map
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { declarationTransformer, transformer } from "@power-plant/schema/deepkit
3
3
  import { plugin as plugin$1 } from "@powerlines/plugin-tsc";
4
4
  import { appendPath } from "@stryke/path/append";
5
5
 
6
- //#region src/index.ts
6
+ // src/index.ts
7
7
  /**
8
8
  * Deepkit plugin for Powerlines.
9
9
  *
@@ -41,6 +41,5 @@ const plugin = (options = {}) => {
41
41
  }];
42
42
  };
43
43
 
44
- //#endregion
45
44
  export { plugin };
46
45
  //# sourceMappingURL=index.mjs.map
@@ -1,5 +1,4 @@
1
1
  import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig } from "@powerlines/plugin-tsc";
2
- //#region src/types/plugin.d.ts
3
2
  type DeepkitPluginOptions = TypeScriptCompilerPluginOptions;
4
3
  interface DeepkitPluginUserConfig extends TypeScriptCompilerPluginUserConfig {
5
4
  /**
@@ -14,6 +13,5 @@ interface DeepkitPluginResolvedConfig extends TypeScriptCompilerPluginResolvedCo
14
13
  deepkit: Required<DeepkitPluginOptions>;
15
14
  }
16
15
  type DeepkitPluginContext<TResolvedConfig extends DeepkitPluginResolvedConfig = DeepkitPluginResolvedConfig> = TypeScriptCompilerPluginContext<TResolvedConfig>;
17
- //#endregion
18
16
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig };
19
17
  //# sourceMappingURL=plugin.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;KAyBY,uBAAuB;UAElB,gCAAgC;;;;EAI/C,SAAS;;UAGM,oCAAoC;;;;EAInD,SAAS,SAAS;;KAGR,qBACV,wBAAwB,8BACtB,+BACA,gCAAgC"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";KAyBY,uBAAuB;UAElB,gCAAgC;;;;EAI/C,SAAS;;UAGM,oCAAoC;;;;EAInD,SAAS,SAAS;;KAGR,qBACV,wBAAwB,8BACtB,+BACA,gCAAgC"}
@@ -1,5 +1,4 @@
1
1
  import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig } from "@powerlines/plugin-tsc";
2
- //#region src/types/plugin.d.ts
3
2
  type DeepkitPluginOptions = TypeScriptCompilerPluginOptions;
4
3
  interface DeepkitPluginUserConfig extends TypeScriptCompilerPluginUserConfig {
5
4
  /**
@@ -14,6 +13,5 @@ interface DeepkitPluginResolvedConfig extends TypeScriptCompilerPluginResolvedCo
14
13
  deepkit: Required<DeepkitPluginOptions>;
15
14
  }
16
15
  type DeepkitPluginContext<TResolvedConfig extends DeepkitPluginResolvedConfig = DeepkitPluginResolvedConfig> = TypeScriptCompilerPluginContext<TResolvedConfig>;
17
- //#endregion
18
16
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig };
19
17
  //# sourceMappingURL=plugin.d.mts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-deepkit",
3
- "version": "0.11.558",
3
+ "version": "0.11.561",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -90,17 +90,17 @@
90
90
  "files": ["dist"],
91
91
  "keywords": ["deepkit", "powerlines", "powerlines-plugin"],
92
92
  "dependencies": {
93
- "@power-plant/schema": "^0.0.91",
94
- "@powerlines/plugin-tsc": "^0.3.212",
93
+ "@power-plant/schema": "^0.0.96",
94
+ "@powerlines/plugin-tsc": "^0.3.215",
95
95
  "@stryke/json": "^0.15.40",
96
96
  "@stryke/path": "^0.29.43",
97
- "powerlines": "^0.47.214",
97
+ "powerlines": "^0.47.217",
98
98
  "typescript": "^6.0.3"
99
99
  },
100
100
  "devDependencies": {
101
- "@powerlines/plugin-plugin": "^0.12.627",
101
+ "@powerlines/plugin-plugin": "^0.12.630",
102
102
  "@types/node": "^25.9.9"
103
103
  },
104
104
  "publishConfig": { "access": "public" },
105
- "gitHead": "11405039d1373508718de6817cecb7b8f8e46104"
105
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
106
106
  }