@powerlines/plugin-deepkit 0.11.168 → 0.11.170

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.cjs CHANGED
@@ -45,8 +45,8 @@ const plugin = (options = {}) => {
45
45
  name: "deepkit",
46
46
  config() {
47
47
  return {
48
- transform: { deepkit: options ?? {} },
49
- build: { external: [
48
+ deepkit: options ?? {},
49
+ resolve: { external: [
50
50
  "@powerlines/deepkit/vendor/type-compiler",
51
51
  "@powerlines/deepkit/vendor/type-spec",
52
52
  "@powerlines/deepkit/vendor/type",
@@ -57,27 +57,27 @@ const plugin = (options = {}) => {
57
57
  configResolved: {
58
58
  order: "post",
59
59
  async handler() {
60
- const reflection = this.config.transform.deepkit.reflection || this.tsconfig.tsconfigJson.compilerOptions?.reflection || this.tsconfig.tsconfigJson.reflection || "default";
61
- const reflectionLevel = this.config.transform.deepkit.reflectionLevel || this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || this.tsconfig.tsconfigJson.reflectionLevel || "minimal";
60
+ const reflection = this.config.deepkit.reflection || this.tsconfig.tsconfigJson.compilerOptions?.reflection || this.tsconfig.tsconfigJson.reflection || "default";
61
+ const reflectionLevel = this.config.deepkit.reflectionLevel || this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || this.tsconfig.tsconfigJson.reflectionLevel || "minimal";
62
62
  if (!this.tsconfig.tsconfigJson.reflection || !this.tsconfig.tsconfigJson.reflectionLevel) {
63
63
  this.tsconfig.tsconfigJson.reflection ??= reflection;
64
64
  this.tsconfig.tsconfigJson.reflectionLevel ??= reflectionLevel;
65
65
  await this.fs.write(this.tsconfig.tsconfigFilePath, __stryke_json_storm_json.StormJSON.stringify(this.tsconfig.tsconfigJson));
66
66
  }
67
- this.config.transform.tsc ??= {};
68
- this.config.transform.tsc.compilerOptions = {
69
- ...this.config.transform.tsc.compilerOptions ?? {},
70
- exclude: this.config.transform.deepkit.exclude ?? [],
67
+ this.config.tsc ??= {};
68
+ this.config.tsc.compilerOptions = {
69
+ ...this.config.tsc.compilerOptions ?? {},
70
+ exclude: this.config.deepkit.exclude ?? [],
71
71
  reflection,
72
72
  reflectionLevel,
73
73
  configFilePath: this.tsconfig.tsconfigFilePath
74
74
  };
75
- this.config.transform.tsc.transformers ??= {
75
+ this.config.tsc.transformers ??= {
76
76
  before: [],
77
77
  after: []
78
78
  };
79
- this.config.transform.tsc.transformers.before.push((0, __powerlines_deepkit_transformer.createTransformer)(this, this.config.transform.deepkit));
80
- this.config.transform.tsc.transformers.after.push((0, __powerlines_deepkit_transformer.createDeclarationTransformer)(this, this.config.transform.deepkit));
79
+ this.config.tsc.transformers.before.push((0, __powerlines_deepkit_transformer.createTransformer)(this, this.config.deepkit));
80
+ this.config.tsc.transformers.after.push((0, __powerlines_deepkit_transformer.createDeclarationTransformer)(this, this.config.deepkit));
81
81
  }
82
82
  }
83
83
  }];
package/dist/index.d.cts CHANGED
@@ -1,9 +1,13 @@
1
- import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "./plugin-B5AoSwTS.cjs";
1
+ import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "./plugin-BkCdQ7Qi.cjs";
2
2
  import "./index-CEgs-Dz2.cjs";
3
- import { Plugin } from "powerlines/types/plugin";
3
+ import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
6
-
6
+ declare module "powerlines" {
7
+ interface UserConfig {
8
+ deepkit?: DeepkitPluginOptions;
9
+ }
10
+ }
7
11
  /**
8
12
  * Deepkit plugin for Powerlines.
9
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAoCA;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,oBAGT,GAHgC,oBAGhC,CAAA,CAAA,OAAA,CAAA,EADC,oBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA2BwB,OAAA,CAAA,EAIV,oBAJU;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,oBAGT,GAHgC,oBAGhC,CAAA,CAAA,OAAA,CAAA,EADC,oBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
package/dist/index.d.mts CHANGED
@@ -1,9 +1,13 @@
1
- import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "./plugin-yzhYd_n5.mjs";
1
+ import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "./plugin-Q8sst2_z.mjs";
2
2
  import "./index-BgAdqTbb.mjs";
3
- import { Plugin } from "powerlines/types/plugin";
3
+ import { Plugin } from "powerlines";
4
4
 
5
5
  //#region src/index.d.ts
6
-
6
+ declare module "powerlines" {
7
+ interface UserConfig {
8
+ deepkit?: DeepkitPluginOptions;
9
+ }
10
+ }
7
11
  /**
8
12
  * Deepkit plugin for Powerlines.
9
13
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAoCA;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,oBAGT,GAHgC,oBAGhC,CAAA,CAAA,OAAA,CAAA,EADC,oBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;IA2BwB,OAAA,CAAA,EAIV,oBAJU;EAAA;;;;AAcxB;;;;AAIU,cAJG,MAIH,EAAA,CAAA,iBAHS,oBAGT,GAHgC,oBAGhC,CAAA,CAAA,OAAA,CAAA,EADC,oBACD,EAAA,GAAP,MAAO,CAAA,QAAA,CAAA,EAAA"}
package/dist/index.mjs CHANGED
@@ -16,8 +16,8 @@ const plugin = (options = {}) => {
16
16
  name: "deepkit",
17
17
  config() {
18
18
  return {
19
- transform: { deepkit: options ?? {} },
20
- build: { external: [
19
+ deepkit: options ?? {},
20
+ resolve: { external: [
21
21
  "@powerlines/deepkit/vendor/type-compiler",
22
22
  "@powerlines/deepkit/vendor/type-spec",
23
23
  "@powerlines/deepkit/vendor/type",
@@ -28,27 +28,27 @@ const plugin = (options = {}) => {
28
28
  configResolved: {
29
29
  order: "post",
30
30
  async handler() {
31
- const reflection = this.config.transform.deepkit.reflection || this.tsconfig.tsconfigJson.compilerOptions?.reflection || this.tsconfig.tsconfigJson.reflection || "default";
32
- const reflectionLevel = this.config.transform.deepkit.reflectionLevel || this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || this.tsconfig.tsconfigJson.reflectionLevel || "minimal";
31
+ const reflection = this.config.deepkit.reflection || this.tsconfig.tsconfigJson.compilerOptions?.reflection || this.tsconfig.tsconfigJson.reflection || "default";
32
+ const reflectionLevel = this.config.deepkit.reflectionLevel || this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel || this.tsconfig.tsconfigJson.reflectionLevel || "minimal";
33
33
  if (!this.tsconfig.tsconfigJson.reflection || !this.tsconfig.tsconfigJson.reflectionLevel) {
34
34
  this.tsconfig.tsconfigJson.reflection ??= reflection;
35
35
  this.tsconfig.tsconfigJson.reflectionLevel ??= reflectionLevel;
36
36
  await this.fs.write(this.tsconfig.tsconfigFilePath, StormJSON.stringify(this.tsconfig.tsconfigJson));
37
37
  }
38
- this.config.transform.tsc ??= {};
39
- this.config.transform.tsc.compilerOptions = {
40
- ...this.config.transform.tsc.compilerOptions ?? {},
41
- exclude: this.config.transform.deepkit.exclude ?? [],
38
+ this.config.tsc ??= {};
39
+ this.config.tsc.compilerOptions = {
40
+ ...this.config.tsc.compilerOptions ?? {},
41
+ exclude: this.config.deepkit.exclude ?? [],
42
42
  reflection,
43
43
  reflectionLevel,
44
44
  configFilePath: this.tsconfig.tsconfigFilePath
45
45
  };
46
- this.config.transform.tsc.transformers ??= {
46
+ this.config.tsc.transformers ??= {
47
47
  before: [],
48
48
  after: []
49
49
  };
50
- this.config.transform.tsc.transformers.before.push(createTransformer(this, this.config.transform.deepkit));
51
- this.config.transform.tsc.transformers.after.push(createDeclarationTransformer(this, this.config.transform.deepkit));
50
+ this.config.tsc.transformers.before.push(createTransformer(this, this.config.deepkit));
51
+ this.config.tsc.transformers.after.push(createDeclarationTransformer(this, this.config.deepkit));
52
52
  }
53
53
  }
54
54
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n createDeclarationTransformer,\n createTransformer\n} from \"@powerlines/deepkit/transformer\";\nimport tsc from \"@powerlines/plugin-tsc\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { Plugin } from \"powerlines/types/plugin\";\nimport { ReflectionLevel } from \"powerlines/types/tsconfig\";\nimport { DeepkitPluginContext, DeepkitPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * Deepkit plugin for Powerlines.\n *\n * @param options - The Deepkit plugin user configuration options.\n * @returns A Powerlines plugin that integrates Deepkit transformations.\n */\nexport const plugin = <\n TContext extends DeepkitPluginContext = DeepkitPluginContext\n>(\n options: DeepkitPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n tsc(options),\n {\n name: \"deepkit\",\n config() {\n return {\n transform: {\n deepkit: options ?? {}\n },\n build: {\n external: [\n \"@powerlines/deepkit/vendor/type-compiler\",\n \"@powerlines/deepkit/vendor/type-spec\",\n \"@powerlines/deepkit/vendor/type\",\n \"@powerlines/deepkit/vendor/core\"\n ]\n }\n };\n },\n configResolved: {\n order: \"post\",\n async handler() {\n const reflection =\n this.config.transform.deepkit.reflection ||\n this.tsconfig.tsconfigJson.compilerOptions?.reflection ||\n this.tsconfig.tsconfigJson.reflection ||\n \"default\";\n const reflectionLevel =\n this.config.transform.deepkit.reflectionLevel ||\n this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel ||\n this.tsconfig.tsconfigJson.reflectionLevel ||\n \"minimal\";\n\n if (\n !this.tsconfig.tsconfigJson.reflection ||\n !this.tsconfig.tsconfigJson.reflectionLevel\n ) {\n this.tsconfig.tsconfigJson.reflection ??= reflection;\n this.tsconfig.tsconfigJson.reflectionLevel ??=\n reflectionLevel as ReflectionLevel;\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n\n this.config.transform.tsc ??=\n {} as TContext[\"config\"][\"transform\"][\"tsc\"];\n this.config.transform.tsc.compilerOptions = {\n ...(this.config.transform.tsc.compilerOptions ?? {}),\n exclude: this.config.transform.deepkit.exclude ?? [],\n reflection,\n reflectionLevel,\n configFilePath: this.tsconfig.tsconfigFilePath\n };\n\n this.config.transform.tsc.transformers ??= {\n before: [],\n after: []\n };\n\n this.config.transform.tsc.transformers.before!.push(\n createTransformer(this, this.config.transform.deepkit)\n );\n this.config.transform.tsc.transformers.after!.push(\n createDeclarationTransformer(this, this.config.transform.deepkit)\n );\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AAoCA,MAAa,UAGX,UAAgC,EAAE,KACX;AACvB,QAAO,CACL,IAAI,QAAQ,EACZ;EACE,MAAM;EACN,SAAS;AACP,UAAO;IACL,WAAW,EACT,SAAS,WAAW,EAAE,EACvB;IACD,OAAO,EACL,UAAU;KACR;KACA;KACA;KACA;KACD,EACF;IACF;;EAEH,gBAAgB;GACd,OAAO;GACP,MAAM,UAAU;IACd,MAAM,aACJ,KAAK,OAAO,UAAU,QAAQ,cAC9B,KAAK,SAAS,aAAa,iBAAiB,cAC5C,KAAK,SAAS,aAAa,cAC3B;IACF,MAAM,kBACJ,KAAK,OAAO,UAAU,QAAQ,mBAC9B,KAAK,SAAS,aAAa,iBAAiB,mBAC5C,KAAK,SAAS,aAAa,mBAC3B;AAEF,QACE,CAAC,KAAK,SAAS,aAAa,cAC5B,CAAC,KAAK,SAAS,aAAa,iBAC5B;AACA,UAAK,SAAS,aAAa,eAAe;AAC1C,UAAK,SAAS,aAAa,oBACzB;AAEF,WAAM,KAAK,GAAG,MACZ,KAAK,SAAS,kBACd,UAAU,UAAU,KAAK,SAAS,aAAa,CAChD;;AAGH,SAAK,OAAO,UAAU,QACpB,EAAE;AACJ,SAAK,OAAO,UAAU,IAAI,kBAAkB;KAC1C,GAAI,KAAK,OAAO,UAAU,IAAI,mBAAmB,EAAE;KACnD,SAAS,KAAK,OAAO,UAAU,QAAQ,WAAW,EAAE;KACpD;KACA;KACA,gBAAgB,KAAK,SAAS;KAC/B;AAED,SAAK,OAAO,UAAU,IAAI,iBAAiB;KACzC,QAAQ,EAAE;KACV,OAAO,EAAE;KACV;AAED,SAAK,OAAO,UAAU,IAAI,aAAa,OAAQ,KAC7C,kBAAkB,MAAM,KAAK,OAAO,UAAU,QAAQ,CACvD;AACD,SAAK,OAAO,UAAU,IAAI,aAAa,MAAO,KAC5C,6BAA6B,MAAM,KAAK,OAAO,UAAU,QAAQ,CAClE;;GAEJ;EACF,CACF;;AAGH,kBAAe"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport {\n createDeclarationTransformer,\n createTransformer\n} from \"@powerlines/deepkit/transformer\";\nimport tsc from \"@powerlines/plugin-tsc\";\nimport { StormJSON } from \"@stryke/json/storm-json\";\nimport { Plugin, ReflectionLevel } from \"powerlines\";\nimport { DeepkitPluginContext, DeepkitPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n export interface UserConfig {\n deepkit?: DeepkitPluginOptions;\n }\n}\n\n/**\n * Deepkit plugin for Powerlines.\n *\n * @param options - The Deepkit plugin user configuration options.\n * @returns A Powerlines plugin that integrates Deepkit transformations.\n */\nexport const plugin = <\n TContext extends DeepkitPluginContext = DeepkitPluginContext\n>(\n options: DeepkitPluginOptions = {}\n): Plugin<TContext>[] => {\n return [\n tsc(options),\n {\n name: \"deepkit\",\n config() {\n return {\n deepkit: options ?? {},\n resolve: {\n external: [\n \"@powerlines/deepkit/vendor/type-compiler\",\n \"@powerlines/deepkit/vendor/type-spec\",\n \"@powerlines/deepkit/vendor/type\",\n \"@powerlines/deepkit/vendor/core\"\n ]\n }\n };\n },\n configResolved: {\n order: \"post\",\n async handler() {\n const reflection =\n this.config.deepkit.reflection ||\n this.tsconfig.tsconfigJson.compilerOptions?.reflection ||\n this.tsconfig.tsconfigJson.reflection ||\n \"default\";\n const reflectionLevel =\n this.config.deepkit.reflectionLevel ||\n this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel ||\n this.tsconfig.tsconfigJson.reflectionLevel ||\n \"minimal\";\n\n if (\n !this.tsconfig.tsconfigJson.reflection ||\n !this.tsconfig.tsconfigJson.reflectionLevel\n ) {\n this.tsconfig.tsconfigJson.reflection ??= reflection;\n this.tsconfig.tsconfigJson.reflectionLevel ??=\n reflectionLevel as ReflectionLevel;\n\n await this.fs.write(\n this.tsconfig.tsconfigFilePath,\n StormJSON.stringify(this.tsconfig.tsconfigJson)\n );\n }\n\n this.config.tsc ??= {} as TContext[\"config\"][\"tsc\"];\n this.config.tsc.compilerOptions = {\n ...(this.config.tsc.compilerOptions ?? {}),\n exclude: this.config.deepkit.exclude ?? [],\n reflection,\n reflectionLevel,\n configFilePath: this.tsconfig.tsconfigFilePath\n };\n\n this.config.tsc.transformers ??= {\n before: [],\n after: []\n };\n\n this.config.tsc.transformers.before!.push(\n createTransformer(this, this.config.deepkit)\n );\n this.config.tsc.transformers.after!.push(\n createDeclarationTransformer(this, this.config.deepkit)\n );\n }\n }\n }\n ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;AAyCA,MAAa,UAGX,UAAgC,EAAE,KACX;AACvB,QAAO,CACL,IAAI,QAAQ,EACZ;EACE,MAAM;EACN,SAAS;AACP,UAAO;IACL,SAAS,WAAW,EAAE;IACtB,SAAS,EACP,UAAU;KACR;KACA;KACA;KACA;KACD,EACF;IACF;;EAEH,gBAAgB;GACd,OAAO;GACP,MAAM,UAAU;IACd,MAAM,aACJ,KAAK,OAAO,QAAQ,cACpB,KAAK,SAAS,aAAa,iBAAiB,cAC5C,KAAK,SAAS,aAAa,cAC3B;IACF,MAAM,kBACJ,KAAK,OAAO,QAAQ,mBACpB,KAAK,SAAS,aAAa,iBAAiB,mBAC5C,KAAK,SAAS,aAAa,mBAC3B;AAEF,QACE,CAAC,KAAK,SAAS,aAAa,cAC5B,CAAC,KAAK,SAAS,aAAa,iBAC5B;AACA,UAAK,SAAS,aAAa,eAAe;AAC1C,UAAK,SAAS,aAAa,oBACzB;AAEF,WAAM,KAAK,GAAG,MACZ,KAAK,SAAS,kBACd,UAAU,UAAU,KAAK,SAAS,aAAa,CAChD;;AAGH,SAAK,OAAO,QAAQ,EAAE;AACtB,SAAK,OAAO,IAAI,kBAAkB;KAChC,GAAI,KAAK,OAAO,IAAI,mBAAmB,EAAE;KACzC,SAAS,KAAK,OAAO,QAAQ,WAAW,EAAE;KAC1C;KACA;KACA,gBAAgB,KAAK,SAAS;KAC/B;AAED,SAAK,OAAO,IAAI,iBAAiB;KAC/B,QAAQ,EAAE;KACV,OAAO,EAAE;KACV;AAED,SAAK,OAAO,IAAI,aAAa,OAAQ,KACnC,kBAAkB,MAAM,KAAK,OAAO,QAAQ,CAC7C;AACD,SAAK,OAAO,IAAI,aAAa,MAAO,KAClC,6BAA6B,MAAM,KAAK,OAAO,QAAQ,CACxD;;GAEJ;EACF,CACF;;AAGH,kBAAe"}
@@ -3,22 +3,18 @@ import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeS
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type DeepkitPluginOptions = Partial<ReflectionConfig> & TypeScriptCompilerPluginOptions;
6
- type DeepkitPluginUserConfig = TypeScriptCompilerPluginUserConfig & {
7
- transform: {
8
- /**
9
- * Deepkit transformation options
10
- */
11
- deepkit: DeepkitPluginOptions;
12
- };
13
- };
14
- type DeepkitPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig & {
15
- transform: {
16
- /**
17
- * Resolved deepkit transformation options
18
- */
19
- deepkit: Required<DeepkitPluginOptions>;
20
- };
21
- };
6
+ interface DeepkitPluginUserConfig extends TypeScriptCompilerPluginUserConfig {
7
+ /**
8
+ * Deepkit transformation options
9
+ */
10
+ deepkit: DeepkitPluginOptions;
11
+ }
12
+ interface DeepkitPluginResolvedConfig extends TypeScriptCompilerPluginResolvedConfig {
13
+ /**
14
+ * Resolved deepkit transformation options
15
+ */
16
+ deepkit: Required<DeepkitPluginOptions>;
17
+ }
22
18
  type DeepkitPluginContext<TResolvedConfig extends DeepkitPluginResolvedConfig = DeepkitPluginResolvedConfig> = TypeScriptCompilerPluginContext<TResolvedConfig>;
23
19
  declare type __ΩDeepkitPluginOptions = any[];
24
20
  declare type __ΩDeepkitPluginUserConfig = any[];
@@ -26,4 +22,4 @@ declare type __ΩDeepkitPluginResolvedConfig = any[];
26
22
  declare type __ΩDeepkitPluginContext = any[];
27
23
  //#endregion
28
24
  export { __ΩDeepkitPluginContext as a, __ΩDeepkitPluginUserConfig as c, DeepkitPluginUserConfig as i, DeepkitPluginOptions as n, __ΩDeepkitPluginOptions as o, DeepkitPluginResolvedConfig as r, __ΩDeepkitPluginResolvedConfig as s, DeepkitPluginContext as t };
29
- //# sourceMappingURL=plugin-B5AoSwTS.d.cts.map
25
+ //# sourceMappingURL=plugin-BkCdQ7Qi.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-BkCdQ7Qi.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KA0BY,oBAAA,GAAuB,QAAQ,oBACzC;UAEe,uBAAA,SAAgC;EAHrC;;;EACV,OAAA,EAMS,oBANT;;AAEe,UAOA,2BAAA,SAAoC,sCAPJ,CAAA;EAOhC;;;EAAoC,OAAA,EAI1C,QAJ0C,CAIjC,oBAJiC,CAAA;;AAOzC,KAAA,oBAAoB,CAAA,wBACN,2BADM,GAE5B,2BAF4B,CAAA,GAG5B,+BAH4B,CAGI,eAHJ,CAAA;AACN,uCAAA,GAAA,EAAA;AACtB,0CAAA,GAAA,EAAA;AACgC,8CAAA,GAAA,EAAA;AAAhC,uCAAA,GAAA,EAAA"}
@@ -3,22 +3,18 @@ import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeS
3
3
 
4
4
  //#region src/types/plugin.d.ts
5
5
  type DeepkitPluginOptions = Partial<ReflectionConfig> & TypeScriptCompilerPluginOptions;
6
- type DeepkitPluginUserConfig = TypeScriptCompilerPluginUserConfig & {
7
- transform: {
8
- /**
9
- * Deepkit transformation options
10
- */
11
- deepkit: DeepkitPluginOptions;
12
- };
13
- };
14
- type DeepkitPluginResolvedConfig = TypeScriptCompilerPluginResolvedConfig & {
15
- transform: {
16
- /**
17
- * Resolved deepkit transformation options
18
- */
19
- deepkit: Required<DeepkitPluginOptions>;
20
- };
21
- };
6
+ interface DeepkitPluginUserConfig extends TypeScriptCompilerPluginUserConfig {
7
+ /**
8
+ * Deepkit transformation options
9
+ */
10
+ deepkit: DeepkitPluginOptions;
11
+ }
12
+ interface DeepkitPluginResolvedConfig extends TypeScriptCompilerPluginResolvedConfig {
13
+ /**
14
+ * Resolved deepkit transformation options
15
+ */
16
+ deepkit: Required<DeepkitPluginOptions>;
17
+ }
22
18
  type DeepkitPluginContext<TResolvedConfig extends DeepkitPluginResolvedConfig = DeepkitPluginResolvedConfig> = TypeScriptCompilerPluginContext<TResolvedConfig>;
23
19
  declare type __ΩDeepkitPluginOptions = any[];
24
20
  declare type __ΩDeepkitPluginUserConfig = any[];
@@ -26,4 +22,4 @@ declare type __ΩDeepkitPluginResolvedConfig = any[];
26
22
  declare type __ΩDeepkitPluginContext = any[];
27
23
  //#endregion
28
24
  export { __ΩDeepkitPluginContext as a, __ΩDeepkitPluginUserConfig as c, DeepkitPluginUserConfig as i, DeepkitPluginOptions as n, __ΩDeepkitPluginOptions as o, DeepkitPluginResolvedConfig as r, __ΩDeepkitPluginResolvedConfig as s, DeepkitPluginContext as t };
29
- //# sourceMappingURL=plugin-yzhYd_n5.d.mts.map
25
+ //# sourceMappingURL=plugin-Q8sst2_z.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-Q8sst2_z.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KA0BY,oBAAA,GAAuB,QAAQ,oBACzC;UAEe,uBAAA,SAAgC;EAHrC;;;EACV,OAAA,EAMS,oBANT;;AAEe,UAOA,2BAAA,SAAoC,sCAPJ,CAAA;EAOhC;;;EAAoC,OAAA,EAI1C,QAJ0C,CAIjC,oBAJiC,CAAA;;AAOzC,KAAA,oBAAoB,CAAA,wBACN,2BADM,GAE5B,2BAF4B,CAAA,GAG5B,+BAH4B,CAGI,eAHJ,CAAA;AACN,uCAAA,GAAA,EAAA;AACtB,0CAAA,GAAA,EAAA;AACgC,8CAAA,GAAA,EAAA;AAAhC,uCAAA,GAAA,EAAA"}
@@ -1,3 +1,3 @@
1
- import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "../plugin-B5AoSwTS.cjs";
1
+ import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "../plugin-BkCdQ7Qi.cjs";
2
2
  import "../index-CEgs-Dz2.cjs";
3
3
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig };
@@ -1,3 +1,3 @@
1
- import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "../plugin-yzhYd_n5.mjs";
1
+ import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "../plugin-Q8sst2_z.mjs";
2
2
  import "../index-BgAdqTbb.mjs";
3
3
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "../plugin-B5AoSwTS.cjs";
1
+ import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "../plugin-BkCdQ7Qi.cjs";
2
2
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig };
@@ -1,2 +1,2 @@
1
- import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "../plugin-yzhYd_n5.mjs";
1
+ import { a as __ΩDeepkitPluginContext, c as __ΩDeepkitPluginUserConfig, i as DeepkitPluginUserConfig, n as DeepkitPluginOptions, o as __ΩDeepkitPluginOptions, r as DeepkitPluginResolvedConfig, s as __ΩDeepkitPluginResolvedConfig, t as DeepkitPluginContext } from "../plugin-Q8sst2_z.mjs";
2
2
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-deepkit",
3
- "version": "0.11.168",
3
+ "version": "0.11.170",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -55,7 +55,7 @@
55
55
  "default": "./dist/index.mjs"
56
56
  }
57
57
  },
58
- "./package.json": "./package.json",
58
+ "./*": "./*",
59
59
  "./types": {
60
60
  "require": {
61
61
  "types": "./dist/types/index.d.cts",
@@ -90,16 +90,16 @@
90
90
  "files": ["dist/**/*"],
91
91
  "keywords": ["deepkit", "powerlines", "storm-software", "powerlines-plugin"],
92
92
  "dependencies": {
93
- "@powerlines/deepkit": "^0.6.69",
94
- "@powerlines/plugin-tsc": "^0.2.297",
93
+ "@powerlines/deepkit": "^0.6.71",
94
+ "@powerlines/plugin-tsc": "^0.2.299",
95
95
  "@stryke/json": "^0.9.43",
96
- "powerlines": "^0.38.56",
96
+ "powerlines": "^0.39.0",
97
97
  "typescript": "^5.9.3"
98
98
  },
99
99
  "devDependencies": {
100
- "@powerlines/plugin-plugin": "^0.12.240",
101
- "@types/node": "^25.3.0"
100
+ "@powerlines/plugin-plugin": "^0.12.242",
101
+ "@types/node": "^25.3.2"
102
102
  },
103
103
  "publishConfig": { "access": "public" },
104
- "gitHead": "256020b11a6afd9decac143ca57eaba68d102906"
104
+ "gitHead": "0dcb16f054b8a69915b074578e6d4dfa3ecc1529"
105
105
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-B5AoSwTS.d.cts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KA0BY,oBAAA,GAAuB,QAAQ,oBACzC;KAEU,uBAAA,GAA0B;EAH1B,SAAA,EAAA;IAA+B;;;IACV,OAAA,EAOpB,oBAPoB;EAErB,CAAA;AASZ,CAAA;AACE,KADU,2BAAA,GACV,sCAAA,GAAA;EAKsB,SAAA,EAAA;IAAT;;AAIf;IAC0B,OAAA,EALX,QAKW,CALF,oBAKE,CAAA;EACtB,CAAA;CACgC;AAAhC,KAHQ,oBAGR,CAAA,wBAFsB,2BAEtB,GADA,2BACA,CAAA,GAAA,+BAAA,CAAgC,eAAhC,CAAA;AAA+B,uCAAA,GAAA,EAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-yzhYd_n5.d.mts","names":[],"sources":["../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;KA0BY,oBAAA,GAAuB,QAAQ,oBACzC;KAEU,uBAAA,GAA0B;EAH1B,SAAA,EAAA;IAA+B;;;IACV,OAAA,EAOpB,oBAPoB;EAErB,CAAA;AASZ,CAAA;AACE,KADU,2BAAA,GACV,sCAAA,GAAA;EAKsB,SAAA,EAAA;IAAT;;AAIf;IAC0B,OAAA,EALX,QAKW,CALF,oBAKE,CAAA;EACtB,CAAA;CACgC;AAAhC,KAHQ,oBAGR,CAAA,wBAFsB,2BAEtB,GADA,2BACA,CAAA,GAAA,+BAAA,CAAgC,eAAhC,CAAA;AAA+B,uCAAA,GAAA,EAAA"}