@powerlines/plugin-deepkit 0.11.217 → 0.11.219
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-CEgs-Dz2.d.cts +1 -0
- package/dist/index-DvIJYkSC.d.mts +1 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-BkCdQ7Qi.d.cts +25 -0
- package/dist/plugin-BkCdQ7Qi.d.cts.map +1 -0
- package/dist/plugin-Dk9YCgdY.d.mts +25 -0
- package/dist/plugin-Dk9YCgdY.d.mts.map +1 -0
- package/dist/types/index.d.cts +3 -0
- package/dist/types/index.d.mts +3 -0
- package/dist/types/plugin.d.cts +2 -0
- package/dist/types/plugin.d.mts +2 -0
- package/package.json +6 -6
- /package/dist/{plugin-CYPrTDyp.mjs → plugin-C3MaN5jp.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
import "./index-CEgs-Dz2.cjs";
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
|
+
|
|
5
|
+
//#region src/index.d.ts
|
|
6
|
+
declare module "powerlines" {
|
|
7
|
+
interface Config {
|
|
8
|
+
deepkit?: DeepkitPluginOptions;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Deepkit plugin for Powerlines.
|
|
13
|
+
*
|
|
14
|
+
* @param options - The Deepkit plugin user configuration options.
|
|
15
|
+
* @returns A Powerlines plugin that integrates Deepkit transformations.
|
|
16
|
+
*/
|
|
17
|
+
declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>[];
|
|
18
|
+
//#endregion
|
|
19
|
+
export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig, plugin as default, plugin };
|
|
20
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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-Dk9YCgdY.mjs";
|
|
2
|
+
import "./index-DvIJYkSC.mjs";
|
|
3
|
+
import { Plugin } from "powerlines";
|
|
4
|
+
|
|
5
|
+
//#region src/index.d.ts
|
|
6
|
+
declare module "powerlines" {
|
|
7
|
+
interface Config {
|
|
8
|
+
deepkit?: DeepkitPluginOptions;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Deepkit plugin for Powerlines.
|
|
13
|
+
*
|
|
14
|
+
* @param options - The Deepkit plugin user configuration options.
|
|
15
|
+
* @returns A Powerlines plugin that integrates Deepkit transformations.
|
|
16
|
+
*/
|
|
17
|
+
declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>[];
|
|
18
|
+
//#endregion
|
|
19
|
+
export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig, plugin as default, plugin };
|
|
20
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
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
|
@@ -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, 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;;AAGH,kBAAe"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReflectionConfig } from "@powerlines/deepkit/vendor/type-compiler/config";
|
|
2
|
+
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig } from "@powerlines/plugin-tsc/types/plugin";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type DeepkitPluginOptions = Partial<ReflectionConfig> & TypeScriptCompilerPluginOptions;
|
|
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
|
+
}
|
|
18
|
+
type DeepkitPluginContext<TResolvedConfig extends DeepkitPluginResolvedConfig = DeepkitPluginResolvedConfig> = TypeScriptCompilerPluginContext<TResolvedConfig>;
|
|
19
|
+
declare type __ΩDeepkitPluginOptions = any[];
|
|
20
|
+
declare type __ΩDeepkitPluginUserConfig = any[];
|
|
21
|
+
declare type __ΩDeepkitPluginResolvedConfig = any[];
|
|
22
|
+
declare type __ΩDeepkitPluginContext = any[];
|
|
23
|
+
//#endregion
|
|
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 };
|
|
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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReflectionConfig } from "@powerlines/deepkit/vendor/type-compiler/config";
|
|
2
|
+
import { TypeScriptCompilerPluginContext, TypeScriptCompilerPluginOptions, TypeScriptCompilerPluginResolvedConfig, TypeScriptCompilerPluginUserConfig } from "@powerlines/plugin-tsc/types/plugin";
|
|
3
|
+
|
|
4
|
+
//#region src/types/plugin.d.ts
|
|
5
|
+
type DeepkitPluginOptions = Partial<ReflectionConfig> & TypeScriptCompilerPluginOptions;
|
|
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
|
+
}
|
|
18
|
+
type DeepkitPluginContext<TResolvedConfig extends DeepkitPluginResolvedConfig = DeepkitPluginResolvedConfig> = TypeScriptCompilerPluginContext<TResolvedConfig>;
|
|
19
|
+
declare type __ΩDeepkitPluginOptions = any[];
|
|
20
|
+
declare type __ΩDeepkitPluginUserConfig = any[];
|
|
21
|
+
declare type __ΩDeepkitPluginResolvedConfig = any[];
|
|
22
|
+
declare type __ΩDeepkitPluginContext = any[];
|
|
23
|
+
//#endregion
|
|
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 };
|
|
25
|
+
//# sourceMappingURL=plugin-Dk9YCgdY.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-Dk9YCgdY.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"}
|
|
@@ -0,0 +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-BkCdQ7Qi.cjs";
|
|
2
|
+
import "../index-CEgs-Dz2.cjs";
|
|
3
|
+
export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig };
|
|
@@ -0,0 +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-Dk9YCgdY.mjs";
|
|
2
|
+
import "../index-DvIJYkSC.mjs";
|
|
3
|
+
export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig };
|
|
@@ -0,0 +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-BkCdQ7Qi.cjs";
|
|
2
|
+
export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig };
|
|
@@ -0,0 +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-Dk9YCgdY.mjs";
|
|
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.
|
|
3
|
+
"version": "0.11.219",
|
|
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.
|
|
94
|
-
"@powerlines/plugin-tsc": "^0.2.
|
|
93
|
+
"@powerlines/deepkit": "^0.6.119",
|
|
94
|
+
"@powerlines/plugin-tsc": "^0.2.348",
|
|
95
95
|
"@stryke/json": "^0.14.7",
|
|
96
|
-
"powerlines": "^0.41.
|
|
96
|
+
"powerlines": "^0.41.5",
|
|
97
97
|
"typescript": "^5.9.3"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
100
|
+
"@powerlines/plugin-plugin": "^0.12.291",
|
|
101
101
|
"@types/node": "^25.4.0"
|
|
102
102
|
},
|
|
103
103
|
"publishConfig": { "access": "public" },
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "0ed0ad0cd6f440d1584ac705987ef985931161db"
|
|
105
105
|
}
|
|
File without changes
|