@powerlines/plugin-deepkit 0.10.113 → 0.10.115

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
@@ -1 +1 @@
1
- Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./_virtual/rolldown_runtime.cjs`),t=require(`./deepkit/src/transformer.cjs`),n=require(`./plugin-tsc/src/index.cjs`);let r=require(`@stryke/json/storm-json`);const i=(e={})=>({name:`deepkit`,dependsOn:[n.default(e)],config(){return{transform:{deepkit:e??{}}}},configResolved:{order:`post`,async handler(){let e=this.config.transform.deepkit.reflection||this.tsconfig.tsconfigJson.compilerOptions?.reflection||this.tsconfig.tsconfigJson.reflection||`default`,n=this.config.transform.deepkit.reflectionLevel||this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||this.tsconfig.tsconfigJson.reflectionLevel||`minimal`;(!this.tsconfig.tsconfigJson.reflection||!this.tsconfig.tsconfigJson.reflectionLevel)&&(this.tsconfig.tsconfigJson.reflection??=e,this.tsconfig.tsconfigJson.reflectionLevel??=n,await this.fs.write(this.tsconfig.tsconfigFilePath,r.StormJSON.stringify(this.tsconfig.tsconfigJson))),this.config.transform.tsc??={},this.config.transform.tsc.compilerOptions={...this.config.transform.tsc.compilerOptions??{},exclude:this.config.transform.deepkit.exclude??[],reflection:e,reflectionLevel:n},this.config.transform.tsc.transformers??={before:[],after:[]},this.config.transform.tsc.transformers.before.push(t.createTransformer(this,this.config.transform.deepkit)),this.config.transform.tsc.transformers.after.push(t.createDeclarationTransformer(this,this.config.transform.deepkit))}}});var a=i;exports.default=a,exports.plugin=i;
1
+ Object.defineProperty(exports,`__esModule`,{value:!0});const e=require(`./_virtual/rolldown_runtime.cjs`),t=require(`./deepkit/src/transformer.cjs`),n=require(`./plugin-tsc/src/index.cjs`);let r=require(`@stryke/json/storm-json`);const i=(e={})=>[n.default(e),{name:`deepkit`,config(){return{transform:{deepkit:e??{}}}},configResolved:{order:`post`,async handler(){let e=this.config.transform.deepkit.reflection||this.tsconfig.tsconfigJson.compilerOptions?.reflection||this.tsconfig.tsconfigJson.reflection||`default`,n=this.config.transform.deepkit.reflectionLevel||this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||this.tsconfig.tsconfigJson.reflectionLevel||`minimal`;(!this.tsconfig.tsconfigJson.reflection||!this.tsconfig.tsconfigJson.reflectionLevel)&&(this.tsconfig.tsconfigJson.reflection??=e,this.tsconfig.tsconfigJson.reflectionLevel??=n,await this.fs.write(this.tsconfig.tsconfigFilePath,r.StormJSON.stringify(this.tsconfig.tsconfigJson))),this.config.transform.tsc??={},this.config.transform.tsc.compilerOptions={...this.config.transform.tsc.compilerOptions??{},exclude:this.config.transform.deepkit.exclude??[],reflection:e,reflectionLevel:n},this.config.transform.tsc.transformers??={before:[],after:[]},this.config.transform.tsc.transformers.before.push(t.createTransformer(this,this.config.transform.deepkit)),this.config.transform.tsc.transformers.after.push(t.createDeclarationTransformer(this,this.config.transform.deepkit))}}}];var a=i;exports.default=a,exports.plugin=i;
package/dist/index.d.cts CHANGED
@@ -9,6 +9,6 @@ import { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig
9
9
  * @param options - The Deepkit plugin user configuration options.
10
10
  * @returns A Powerlines plugin that integrates Deepkit transformations.
11
11
  */
12
- declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>;
12
+ declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>[];
13
13
  //#endregion
14
14
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig, plugin as default, plugin };
package/dist/index.d.mts CHANGED
@@ -10,6 +10,6 @@ import "./types/index.mjs";
10
10
  * @param options - The Deepkit plugin user configuration options.
11
11
  * @returns A Powerlines plugin that integrates Deepkit transformations.
12
12
  */
13
- declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>;
13
+ declare const plugin: <TContext extends DeepkitPluginContext = DeepkitPluginContext>(options?: DeepkitPluginOptions) => Plugin<TContext>[];
14
14
  //#endregion
15
15
  export { DeepkitPluginContext, DeepkitPluginOptions, DeepkitPluginResolvedConfig, DeepkitPluginUserConfig, __ΩDeepkitPluginContext, __ΩDeepkitPluginOptions, __ΩDeepkitPluginResolvedConfig, __ΩDeepkitPluginUserConfig, plugin as default, plugin };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{createDeclarationTransformer as e,createTransformer as t}from"./deepkit/src/transformer.mjs";import n from"./plugin-tsc/src/index.mjs";import{StormJSON as r}from"@stryke/json/storm-json";const i=(i={})=>({name:`deepkit`,dependsOn:[n(i)],config(){return{transform:{deepkit:i??{}}}},configResolved:{order:`post`,async handler(){let n=this.config.transform.deepkit.reflection||this.tsconfig.tsconfigJson.compilerOptions?.reflection||this.tsconfig.tsconfigJson.reflection||`default`,i=this.config.transform.deepkit.reflectionLevel||this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||this.tsconfig.tsconfigJson.reflectionLevel||`minimal`;(!this.tsconfig.tsconfigJson.reflection||!this.tsconfig.tsconfigJson.reflectionLevel)&&(this.tsconfig.tsconfigJson.reflection??=n,this.tsconfig.tsconfigJson.reflectionLevel??=i,await this.fs.write(this.tsconfig.tsconfigFilePath,r.stringify(this.tsconfig.tsconfigJson))),this.config.transform.tsc??={},this.config.transform.tsc.compilerOptions={...this.config.transform.tsc.compilerOptions??{},exclude:this.config.transform.deepkit.exclude??[],reflection:n,reflectionLevel:i},this.config.transform.tsc.transformers??={before:[],after:[]},this.config.transform.tsc.transformers.before.push(t(this,this.config.transform.deepkit)),this.config.transform.tsc.transformers.after.push(e(this,this.config.transform.deepkit))}}});var a=i;export{a as default,i as plugin};
1
+ import{createDeclarationTransformer as e,createTransformer as t}from"./deepkit/src/transformer.mjs";import n from"./plugin-tsc/src/index.mjs";import{StormJSON as r}from"@stryke/json/storm-json";const i=(i={})=>[n(i),{name:`deepkit`,config(){return{transform:{deepkit:i??{}}}},configResolved:{order:`post`,async handler(){let n=this.config.transform.deepkit.reflection||this.tsconfig.tsconfigJson.compilerOptions?.reflection||this.tsconfig.tsconfigJson.reflection||`default`,i=this.config.transform.deepkit.reflectionLevel||this.tsconfig.tsconfigJson.compilerOptions?.reflectionLevel||this.tsconfig.tsconfigJson.reflectionLevel||`minimal`;(!this.tsconfig.tsconfigJson.reflection||!this.tsconfig.tsconfigJson.reflectionLevel)&&(this.tsconfig.tsconfigJson.reflection??=n,this.tsconfig.tsconfigJson.reflectionLevel??=i,await this.fs.write(this.tsconfig.tsconfigFilePath,r.stringify(this.tsconfig.tsconfigJson))),this.config.transform.tsc??={},this.config.transform.tsc.compilerOptions={...this.config.transform.tsc.compilerOptions??{},exclude:this.config.transform.deepkit.exclude??[],reflection:n,reflectionLevel:i},this.config.transform.tsc.transformers??={before:[],after:[]},this.config.transform.tsc.transformers.before.push(t(this,this.config.transform.deepkit)),this.config.transform.tsc.transformers.after.push(e(this,this.config.transform.deepkit))}}}];var a=i;export{a as default,i as plugin};
@@ -36,7 +36,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
36
36
  /**
37
37
  * A configuration tuple for a Powerlines plugin.
38
38
  */
39
- type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Plugin<TContext>[] | Promise<Plugin<TContext> | Plugin<TContext>[]> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
39
+ type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
40
40
  type ProjectType = "application" | "library";
41
41
  interface DeployConfig {
42
42
  /**
@@ -36,7 +36,7 @@ type PluginConfigObject<TContext extends PluginContext = PluginContext, TOptions
36
36
  /**
37
37
  * A configuration tuple for a Powerlines plugin.
38
38
  */
39
- type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | Plugin<TContext>[] | Promise<Plugin<TContext> | Plugin<TContext>[]> | PluginConfigTuple<TContext> | PluginConfigObject<TContext>;
39
+ type PluginConfig<TContext extends PluginContext = PluginContext> = string | PluginFactory<TContext, void> | Plugin<TContext> | PluginConfigTuple<TContext> | PluginConfigObject<TContext> | Promise<PluginConfig<TContext>> | PluginConfig<TContext>[];
40
40
  type ProjectType = "application" | "library";
41
41
  interface DeployConfig {
42
42
  /**
@@ -39,7 +39,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
39
39
  * @remarks
40
40
  * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
41
41
  *
42
- * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
42
+ * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect.
43
43
  *
44
44
  * @see https://vitejs.dev/guide/api-plugin#config
45
45
  *
@@ -215,11 +215,10 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
215
215
  * @param other - The other plugin to compare against.
216
216
  * @returns `true` if the two plugins are the same, `false` otherwise.
217
217
  */
218
- dedupe?: false | ((other: Plugin<TContext>) => boolean);
218
+ dedupe?: false | ((other: Plugin<any>) => boolean);
219
219
  /**
220
220
  * A list of pre-requisite plugins that must be loaded before this plugin can be used.
221
221
  */
222
- dependsOn?: PluginConfig<TContext>[];
223
222
  /**
224
223
  * Define environments where this plugin should be active. By default, the plugin is active in all environments.
225
224
  *
@@ -39,7 +39,7 @@ interface BasePluginHookFunctions<TContext extends PluginContext = PluginContext
39
39
  * @remarks
40
40
  * Modify config before it's resolved. The hook can either mutate {@link Context.config} on the passed-in context directly, or return a partial config object that will be deeply merged into existing config.
41
41
  *
42
- * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect. If you want to add plugins, consider doing so in the {@link Plugin.dependsOn} property instead.
42
+ * @warning User plugins are resolved before running this hook so injecting other plugins inside the config hook will have no effect.
43
43
  *
44
44
  * @see https://vitejs.dev/guide/api-plugin#config
45
45
  *
@@ -215,11 +215,10 @@ interface Plugin<TContext extends PluginContext<ResolvedConfig> = PluginContext<
215
215
  * @param other - The other plugin to compare against.
216
216
  * @returns `true` if the two plugins are the same, `false` otherwise.
217
217
  */
218
- dedupe?: false | ((other: Plugin<TContext>) => boolean);
218
+ dedupe?: false | ((other: Plugin<any>) => boolean);
219
219
  /**
220
220
  * A list of pre-requisite plugins that must be loaded before this plugin can be used.
221
221
  */
222
- dependsOn?: PluginConfig<TContext>[];
223
222
  /**
224
223
  * Define environments where this plugin should be active. By default, the plugin is active in all environments.
225
224
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-deepkit",
3
- "version": "0.10.113",
3
+ "version": "0.10.115",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -118,15 +118,15 @@
118
118
  "keywords": ["deepkit", "powerlines", "storm-software", "powerlines-plugin"],
119
119
  "dependencies": {
120
120
  "@stryke/json": "^0.9.32",
121
- "@powerlines/deepkit": "^0.5.16",
122
- "@powerlines/plugin-tsc": "^0.2.109",
123
- "powerlines": "^0.36.6",
121
+ "@powerlines/deepkit": "^0.5.18",
122
+ "@powerlines/plugin-tsc": "^0.2.111",
123
+ "powerlines": "^0.36.8",
124
124
  "typescript": "^5.9.3"
125
125
  },
126
126
  "devDependencies": {
127
- "@powerlines/nx": "^0.11.32",
127
+ "@powerlines/nx": "^0.11.34",
128
128
  "@types/node": "^24.10.4"
129
129
  },
130
130
  "publishConfig": { "access": "public" },
131
- "gitHead": "2175eec0f5ee1cd6cefd06526262dcdac0ddab09"
131
+ "gitHead": "8867c7bf5d0505b507b029ae191bfc2844478c0e"
132
132
  }