@powerlines/plugin-untyped 0.1.16 → 0.1.20

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.
@@ -218,8 +218,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
218
218
  tsconfigFilePath: string;
219
219
  };
220
220
 
221
- declare const __VFS_PATCH__: unique symbol;
222
- declare const __VFS_REVERT__: unique symbol;
221
+ declare const __VFS_PATCH__ = "__VFS_PATCH__";
222
+ declare const __VFS_REVERT__ = "__VFS_REVERT__";
223
223
  type OutputModeType = "fs" | "virtual";
224
224
  interface VirtualFile {
225
225
  /**
@@ -628,6 +628,15 @@ interface OutputConfig {
628
628
  * @defaultValue "dist/\{projectRoot\}"
629
629
  */
630
630
  outputPath?: string;
631
+ /**
632
+ * The output directory path for the project build.
633
+ *
634
+ * @remarks
635
+ * This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
636
+ *
637
+ * @defaultValue "\{projectRoot\}/dist"
638
+ */
639
+ distPath?: string;
631
640
  /**
632
641
  * The format of the output files
633
642
  *
@@ -1416,7 +1425,7 @@ interface UntypedPluginOptions {
1416
1425
  /**
1417
1426
  * A path or glob pattern (or an array of paths and glob patterns) to schemas containing the Untyped type definitions used during generation.
1418
1427
  *
1419
- * @defaultValue "**\/{untyped.ts,*.untyped.ts}"
1428
+ * @defaultValue "**\/\{untyped.ts,*.untyped.ts\}"
1420
1429
  */
1421
1430
  schema?: string | string[];
1422
1431
  /**
@@ -1436,5 +1445,9 @@ interface UntypedPluginResolvedConfig extends ResolvedConfig {
1436
1445
  type UntypedPluginContext<TResolvedConfig extends UntypedPluginResolvedConfig = UntypedPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
1437
1446
  untyped: ReturnType<typeof getGenerateAction>;
1438
1447
  };
1448
+ declare type __ΩUntypedPluginOptions = any[];
1449
+ declare type __ΩUntypedPluginUserConfig = any[];
1450
+ declare type __ΩUntypedPluginResolvedConfig = any[];
1451
+ declare type __ΩUntypedPluginContext = any[];
1439
1452
 
1440
- export type { Plugin as P, UntypedPluginContext as U, UntypedPluginOptions as a, UntypedPluginUserConfig as b, UntypedPluginResolvedConfig as c };
1453
+ export type { Plugin as P, UntypedPluginContext as U, __ΩUntypedPluginOptions as _, UntypedPluginOptions as a, UntypedPluginUserConfig as b, UntypedPluginResolvedConfig as c, __ΩUntypedPluginUserConfig as d, __ΩUntypedPluginResolvedConfig as e, __ΩUntypedPluginContext as f };
@@ -218,8 +218,8 @@ type ParsedTypeScriptConfig = ts.ParsedCommandLine & {
218
218
  tsconfigFilePath: string;
219
219
  };
220
220
 
221
- declare const __VFS_PATCH__: unique symbol;
222
- declare const __VFS_REVERT__: unique symbol;
221
+ declare const __VFS_PATCH__ = "__VFS_PATCH__";
222
+ declare const __VFS_REVERT__ = "__VFS_REVERT__";
223
223
  type OutputModeType = "fs" | "virtual";
224
224
  interface VirtualFile {
225
225
  /**
@@ -628,6 +628,15 @@ interface OutputConfig {
628
628
  * @defaultValue "dist/\{projectRoot\}"
629
629
  */
630
630
  outputPath?: string;
631
+ /**
632
+ * The output directory path for the project build.
633
+ *
634
+ * @remarks
635
+ * This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
636
+ *
637
+ * @defaultValue "\{projectRoot\}/dist"
638
+ */
639
+ distPath?: string;
631
640
  /**
632
641
  * The format of the output files
633
642
  *
@@ -1416,7 +1425,7 @@ interface UntypedPluginOptions {
1416
1425
  /**
1417
1426
  * A path or glob pattern (or an array of paths and glob patterns) to schemas containing the Untyped type definitions used during generation.
1418
1427
  *
1419
- * @defaultValue "**\/{untyped.ts,*.untyped.ts}"
1428
+ * @defaultValue "**\/\{untyped.ts,*.untyped.ts\}"
1420
1429
  */
1421
1430
  schema?: string | string[];
1422
1431
  /**
@@ -1436,5 +1445,9 @@ interface UntypedPluginResolvedConfig extends ResolvedConfig {
1436
1445
  type UntypedPluginContext<TResolvedConfig extends UntypedPluginResolvedConfig = UntypedPluginResolvedConfig> = PluginContext<TResolvedConfig> & {
1437
1446
  untyped: ReturnType<typeof getGenerateAction>;
1438
1447
  };
1448
+ declare type __ΩUntypedPluginOptions = any[];
1449
+ declare type __ΩUntypedPluginUserConfig = any[];
1450
+ declare type __ΩUntypedPluginResolvedConfig = any[];
1451
+ declare type __ΩUntypedPluginContext = any[];
1439
1452
 
1440
- export type { Plugin as P, UntypedPluginContext as U, UntypedPluginOptions as a, UntypedPluginUserConfig as b, UntypedPluginResolvedConfig as c };
1453
+ export type { Plugin as P, UntypedPluginContext as U, __ΩUntypedPluginOptions as _, UntypedPluginOptions as a, UntypedPluginUserConfig as b, UntypedPluginResolvedConfig as c, __ΩUntypedPluginUserConfig as d, __ΩUntypedPluginResolvedConfig as e, __ΩUntypedPluginContext as f };
package/dist/index.cjs CHANGED
@@ -4,4 +4,4 @@
4
4
  *
5
5
  *****************************************/
6
6
 
7
- var o=Object.defineProperty;var e=(t,n)=>o(t,"name",{value:n,configurable:true});const r=e(t=>({name:"untyped",config(){return {untyped:{schema:"**/{untyped.ts,*.untyped.ts}",...t}}},async configResolved(){this.untyped??=generate.getGenerateAction(this.workspaceConfig);},async prepare(){return this.untyped({entry:this.config.untyped.schema,outputPath:this.config.untyped.outputPath,generatedBy:this.config.framework})}}),"plugin");var d=r;exports.default=d;exports.plugin=r;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
7
+ var o=Object.defineProperty;var e=(t,n)=>o(t,"name",{value:n,configurable:true});const r=e((t={})=>({name:"untyped",config(){return {untyped:{schema:"**/{untyped.ts,*.untyped.ts}",...t}}},async configResolved(){this.untyped??=generate.getGenerateAction(this.workspaceConfig);},async prepare(){return this.untyped({entry:this.config.untyped.schema,outputPath:this.config.untyped.outputPath,generatedBy:this.config.framework})}}),"plugin");var d=r;exports.default=d;exports.plugin=r;Object.keys(types).forEach(function(k){if(k!=='default'&&!Object.prototype.hasOwnProperty.call(exports,k))Object.defineProperty(exports,k,{enumerable:true,get:function(){return types[k]}})});
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UntypedPluginContext, a as UntypedPluginOptions, P as Plugin } from './index-BqxWFbXS.cjs';
2
- export { c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig } from './index-BqxWFbXS.cjs';
1
+ import { U as UntypedPluginContext, a as UntypedPluginOptions, P as Plugin } from './index-CoIkuef6.cjs';
2
+ export { c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig, f as __ΩUntypedPluginContext, _ as __ΩUntypedPluginOptions, e as __ΩUntypedPluginResolvedConfig, d as __ΩUntypedPluginUserConfig } from './index-CoIkuef6.cjs';
3
3
  import '@storm-software/untyped/generate';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -26,6 +26,6 @@ import '@stryke/types/array';
26
26
  * @param options - The plugin options.
27
27
  * @returns A Powerlines plugin instance.
28
28
  */
29
- declare const plugin: <TContext extends UntypedPluginContext = UntypedPluginContext>(options: UntypedPluginOptions) => Plugin<TContext>;
29
+ declare const plugin: <TContext extends UntypedPluginContext = UntypedPluginContext>(options?: UntypedPluginOptions) => Plugin<TContext>;
30
30
 
31
31
  export { UntypedPluginContext, UntypedPluginOptions, plugin as default, plugin };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { U as UntypedPluginContext, a as UntypedPluginOptions, P as Plugin } from './index-BqxWFbXS.js';
2
- export { c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig } from './index-BqxWFbXS.js';
1
+ import { U as UntypedPluginContext, a as UntypedPluginOptions, P as Plugin } from './index-CoIkuef6.js';
2
+ export { c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig, f as __ΩUntypedPluginContext, _ as __ΩUntypedPluginOptions, e as __ΩUntypedPluginResolvedConfig, d as __ΩUntypedPluginUserConfig } from './index-CoIkuef6.js';
3
3
  import '@storm-software/untyped/generate';
4
4
  import '@storm-software/build-tools/types';
5
5
  import '@storm-software/config-tools/types';
@@ -26,6 +26,6 @@ import '@stryke/types/array';
26
26
  * @param options - The plugin options.
27
27
  * @returns A Powerlines plugin instance.
28
28
  */
29
- declare const plugin: <TContext extends UntypedPluginContext = UntypedPluginContext>(options: UntypedPluginOptions) => Plugin<TContext>;
29
+ declare const plugin: <TContext extends UntypedPluginContext = UntypedPluginContext>(options?: UntypedPluginOptions) => Plugin<TContext>;
30
30
 
31
31
  export { UntypedPluginContext, UntypedPluginOptions, plugin as default, plugin };
package/dist/index.js CHANGED
@@ -4,4 +4,4 @@ import {getGenerateAction}from'@storm-software/untyped/generate';export*from'./t
4
4
  *
5
5
  *****************************************/
6
6
 
7
- var o=Object.defineProperty;var e=(t,n)=>o(t,"name",{value:n,configurable:true});const r=e(t=>({name:"untyped",config(){return {untyped:{schema:"**/{untyped.ts,*.untyped.ts}",...t}}},async configResolved(){this.untyped??=getGenerateAction(this.workspaceConfig);},async prepare(){return this.untyped({entry:this.config.untyped.schema,outputPath:this.config.untyped.outputPath,generatedBy:this.config.framework})}}),"plugin");var f=r;export{f as default,r as plugin};
7
+ var o=Object.defineProperty;var e=(t,n)=>o(t,"name",{value:n,configurable:true});const r=e((t={})=>({name:"untyped",config(){return {untyped:{schema:"**/{untyped.ts,*.untyped.ts}",...t}}},async configResolved(){this.untyped??=getGenerateAction(this.workspaceConfig);},async prepare(){return this.untyped({entry:this.config.untyped.schema,outputPath:this.config.untyped.outputPath,generatedBy:this.config.framework})}}),"plugin");var f=r;export{f as default,r as plugin};
@@ -1,4 +1,4 @@
1
- export { U as UntypedPluginContext, a as UntypedPluginOptions, c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig } from '../index-BqxWFbXS.cjs';
1
+ export { U as UntypedPluginContext, a as UntypedPluginOptions, c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig, f as __ΩUntypedPluginContext, _ as __ΩUntypedPluginOptions, e as __ΩUntypedPluginResolvedConfig, d as __ΩUntypedPluginUserConfig } from '../index-CoIkuef6.cjs';
2
2
  import '@storm-software/untyped/generate';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -1,4 +1,4 @@
1
- export { U as UntypedPluginContext, a as UntypedPluginOptions, c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig } from '../index-BqxWFbXS.js';
1
+ export { U as UntypedPluginContext, a as UntypedPluginOptions, c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig, f as __ΩUntypedPluginContext, _ as __ΩUntypedPluginOptions, e as __ΩUntypedPluginResolvedConfig, d as __ΩUntypedPluginUserConfig } from '../index-CoIkuef6.js';
2
2
  import '@storm-software/untyped/generate';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
@@ -1,5 +1,5 @@
1
1
  import '@storm-software/untyped/generate';
2
- export { U as UntypedPluginContext, a as UntypedPluginOptions, c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig } from '../index-BqxWFbXS.cjs';
2
+ export { U as UntypedPluginContext, a as UntypedPluginOptions, c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig, f as __ΩUntypedPluginContext, _ as __ΩUntypedPluginOptions, e as __ΩUntypedPluginResolvedConfig, d as __ΩUntypedPluginUserConfig } from '../index-CoIkuef6.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import '@storm-software/untyped/generate';
2
- export { U as UntypedPluginContext, a as UntypedPluginOptions, c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig } from '../index-BqxWFbXS.js';
2
+ export { U as UntypedPluginContext, a as UntypedPluginOptions, c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig, f as __ΩUntypedPluginContext, _ as __ΩUntypedPluginOptions, e as __ΩUntypedPluginResolvedConfig, d as __ΩUntypedPluginUserConfig } from '../index-CoIkuef6.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-untyped",
3
- "version": "0.1.16",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin to use Untyped for code generation based on user-defined schemas.",
6
6
  "repository": {
@@ -107,15 +107,15 @@
107
107
  "@stryke/types": "^0.10.2",
108
108
  "defu": "^6.1.4",
109
109
  "jiti": "^2.6.1",
110
- "@storm-software/untyped": "^0.24.21",
111
- "powerlines": "^0.22.1"
110
+ "@storm-software/untyped": "^0.24.23",
111
+ "powerlines": "^0.23.3"
112
112
  },
113
113
  "devDependencies": {
114
- "@storm-software/config": "^1.134.40",
115
- "@powerlines/nx": "^0.10.16",
116
- "@powerlines/plugin-plugin": "^0.11.24",
117
- "@types/node": "^22.19.1"
114
+ "@storm-software/config": "^1.134.42",
115
+ "@powerlines/nx": "^0.10.20",
116
+ "@powerlines/plugin-plugin": "^0.11.28",
117
+ "@types/node": "^24.10.1"
118
118
  },
119
119
  "publishConfig": { "access": "public" },
120
- "gitHead": "781b9a5f57b9c64bf6e659316741b7c8a429445f"
120
+ "gitHead": "6e43200541ace2946694195c092642e7ac2f3098"
121
121
  }