@powerlines/plugin-deepkit 0.11.116 → 0.11.118

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.cts CHANGED
@@ -12,4 +12,5 @@ import { Plugin } from "powerlines/types/plugin";
12
12
  */
13
13
  declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>[];
14
14
  //#endregion
15
- export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig, plugin as default, plugin };
15
+ export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig, plugin as default, plugin };
16
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +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"}
package/dist/index.d.mts CHANGED
@@ -12,4 +12,5 @@ import { Plugin } from "powerlines/types/plugin";
12
12
  */
13
13
  declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>[];
14
14
  //#endregion
15
- export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig, plugin as default, plugin };
15
+ export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig, plugin as default, plugin };
16
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +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"}
package/dist/index.mjs CHANGED
@@ -56,4 +56,5 @@ const plugin = (options = {}) => {
56
56
  var src_default = plugin;
57
57
 
58
58
  //#endregion
59
- export { src_default as default, plugin };
59
+ export { src_default as default, plugin };
60
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +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"}
@@ -25,4 +25,5 @@ declare type __ΩDeepkitPluginUserConfig = any[];
25
25
  declare type __ΩDeepkitPluginResolvedConfig = any[];
26
26
  declare type __ΩDeepkitPluginContext = any[];
27
27
  //#endregion
28
- 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 };
28
+ 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
@@ -0,0 +1 @@
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"}
@@ -25,4 +25,5 @@ declare type __ΩDeepkitPluginUserConfig = any[];
25
25
  declare type __ΩDeepkitPluginResolvedConfig = any[];
26
26
  declare type __ΩDeepkitPluginContext = any[];
27
27
  //#endregion
28
- 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 };
28
+ 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
@@ -0,0 +1 @@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-deepkit",
3
- "version": "0.11.116",
3
+ "version": "0.11.118",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -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.17",
94
- "@powerlines/plugin-tsc": "^0.2.245",
93
+ "@powerlines/deepkit": "^0.6.19",
94
+ "@powerlines/plugin-tsc": "^0.2.247",
95
95
  "@stryke/json": "^0.9.40",
96
- "powerlines": "^0.38.4",
96
+ "powerlines": "^0.38.6",
97
97
  "typescript": "^5.9.3"
98
98
  },
99
99
  "devDependencies": {
100
- "@powerlines/plugin-plugin": "^0.12.188",
100
+ "@powerlines/plugin-plugin": "^0.12.190",
101
101
  "@types/node": "^24.10.9"
102
102
  },
103
103
  "publishConfig": { "access": "public" },
104
- "gitHead": "6b0e05037adb26af85fec6f2aa30bcd3b1db4fe1"
104
+ "gitHead": "f90d675c44d4323d447a46c8a4c833420543cc0a"
105
105
  }