@powerlines/plugin-deepkit 0.11.222 → 0.11.223

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.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import "./chunk-BCHjMept.mjs";
2
1
  import "./types/index.mjs";
3
2
  import { createDeclarationTransformer, createTransformer } from "@powerlines/deepkit/transformer";
4
3
  import tsc from "@powerlines/plugin-tsc";
@@ -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, ReflectionLevel } from \"powerlines\";\nimport { DeepkitPluginContext, DeepkitPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\ndeclare module \"powerlines\" {\n interface Config {\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"}
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 interface Config {\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"}
@@ -1,3 +1 @@
1
- import "../chunk-BCHjMept.mjs";
2
-
3
1
  export { };
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KA0BY,oBAAA,GAAuB,OAAA,CAAQ,gBAAA,IACzC,+BAAA;AAAA,UAEe,uBAAA,SAAgC,kCAAA;;AAHjD;;EAOE,OAAA,EAAS,oBAAA;AAAA;AAAA,UAGM,2BAAA,SAAoC,sCAAA;EATnD;;;EAaA,OAAA,EAAS,QAAA,CAAS,oBAAA;AAAA;AAAA,KAGR,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,+BAAA,CAAgC,eAAA;AAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;KA0BY,oBAAA,GAAuB,OAAA,CAAQ,gBAAA,IACzC,+BAAA;AAAA,UAEe,uBAAA,SAAgC,kCAAA;EAHrC;;;EAOV,OAAA,EAAS,oBAAA;AAAA;AAAA,UAGM,2BAAA,SAAoC,sCAAA;EATpB;;;EAa/B,OAAA,EAAS,QAAA,CAAS,oBAAA;AAAA;AAAA,KAGR,oBAAA,yBACc,2BAAA,GACtB,2BAAA,IACA,+BAAA,CAAgC,eAAA;AAAA"}
@@ -1,3 +1 @@
1
- import "../chunk-BCHjMept.mjs";
2
-
3
1
  export { };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-deepkit",
3
- "version": "0.11.222",
3
+ "version": "0.11.223",
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.122",
94
- "@powerlines/plugin-tsc": "^0.2.351",
93
+ "@powerlines/deepkit": "^0.6.123",
94
+ "@powerlines/plugin-tsc": "^0.2.352",
95
95
  "@stryke/json": "^0.14.7",
96
- "powerlines": "^0.41.8",
96
+ "powerlines": "^0.41.9",
97
97
  "typescript": "^5.9.3"
98
98
  },
99
99
  "devDependencies": {
100
- "@powerlines/plugin-plugin": "^0.12.294",
101
- "@types/node": "^25.4.0"
100
+ "@powerlines/plugin-plugin": "^0.12.295",
101
+ "@types/node": "^25.5.0"
102
102
  },
103
103
  "publishConfig": { "access": "public" },
104
- "gitHead": "40d1f94407720be23c3801f9145fdad1fe27dfb2"
104
+ "gitHead": "74a26c533ea4d67ba1b3e297256309c2e23f6e62"
105
105
  }
@@ -1,3 +0,0 @@
1
- import "node:module";
2
-
3
- export { };