@powerlines/plugin-untyped 0.1.47 → 0.1.48

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.
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ export { };
package/dist/index.cjs CHANGED
@@ -1,7 +1 @@
1
- 'use strict';Object.defineProperty(exports,'__esModule',{value:true});var generate=require('@storm-software/untyped/generate'),types=require('./types');/*****************************************
2
- *
3
- * ⚡ Built by Storm Software
4
- *
5
- *****************************************/
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]}})});
1
+ Object.defineProperty(exports,`__esModule`,{value:!0}),require(`./plugin-DHXHjv16.cjs`),require(`./types-DHkg7xmX.cjs`);let e=require(`@storm-software/untyped/generate`);const t=(t={})=>({name:`untyped`,config(){return{untyped:{schema:`**/{untyped.ts,*.untyped.ts}`,...t}}},async configResolved(){this.untyped??=(0,e.getGenerateAction)(this.workspaceConfig)},async prepare(){return this.untyped({entry:this.config.untyped.schema,outputPath:this.config.untyped.outputPath,generatedBy:this.config.framework})}});var n=t;exports.default=n,exports.plugin=t;
package/dist/index.d.cts CHANGED
@@ -1,27 +1,7 @@
1
- import { U as UntypedPluginContext, a as UntypedPluginOptions, P as Plugin } from './index-C4u5anDj.cjs';
2
- export { c as UntypedPluginResolvedConfig, b as UntypedPluginUserConfig, f as __ΩUntypedPluginContext, _ as __ΩUntypedPluginOptions, e as __ΩUntypedPluginResolvedConfig, d as __ΩUntypedPluginUserConfig } from './index-C4u5anDj.cjs';
3
- import '@storm-software/untyped/generate';
4
- import '@storm-software/build-tools/types';
5
- import '@storm-software/config-tools/types';
6
- import '@storm-software/config/types';
7
- import '@stryke/types/base';
8
- import '@stryke/types/configuration';
9
- import '@stryke/types/file';
10
- import 'vite';
11
- import '@stryke/env/get-env-paths';
12
- import '@stryke/http/fetch';
13
- import '@stryke/types/package-json';
14
- import 'jiti';
15
- import 'magic-string';
16
- import 'oxc-parser';
17
- import 'semver';
18
- import 'ts-morph';
19
- import 'undici';
20
- import 'unplugin';
21
- import '@stryke/fs/resolve';
22
- import '@stryke/types/tsconfig';
23
- import 'typescript';
24
- import '@stryke/types/array';
1
+ import { a as __ΩUntypedPluginContext, c as __ΩUntypedPluginUserConfig, i as UntypedPluginUserConfig, l as Plugin, n as UntypedPluginOptions, o as __ΩUntypedPluginOptions, r as UntypedPluginResolvedConfig, s as __ΩUntypedPluginResolvedConfig, t as UntypedPluginContext } from "./plugin-D1DHPRaJ.cjs";
2
+ import "./index-CEgs-Dz2.cjs";
3
+
4
+ //#region src/index.d.ts
25
5
 
26
6
  /**
27
7
  * A Powerlines plugin to use Untyped for code generation based on user-defined schemas.
@@ -30,5 +10,6 @@ import '@stryke/types/array';
30
10
  * @returns A Powerlines plugin instance.
31
11
  */
32
12
  declare const plugin: <TContext extends UntypedPluginContext = UntypedPluginContext>(options?: UntypedPluginOptions) => Plugin<TContext>;
33
-
34
- export { UntypedPluginContext, UntypedPluginOptions, plugin as default, plugin };
13
+ //#endregion
14
+ export { UntypedPluginContext, UntypedPluginOptions, UntypedPluginResolvedConfig, UntypedPluginUserConfig, __ΩUntypedPluginContext, __ΩUntypedPluginOptions, __ΩUntypedPluginResolvedConfig, __ΩUntypedPluginUserConfig, plugin as default, plugin };
15
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;AA+BA;;;;;AAIG,cAJU,MAIV,EAAA,CAAA,iBAHgB,oBAGhB,GAHuC,oBAGvC,CAAA,CAAA,OAAA,CAAA,EADQ,oBACR,EAAA,GAAA,MAAA,CAAO,QAAP,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { a as __ΩUntypedPluginContext, c as __ΩUntypedPluginUserConfig, i as UntypedPluginUserConfig, l as Plugin, n as UntypedPluginOptions, o as __ΩUntypedPluginOptions, r as UntypedPluginResolvedConfig, s as __ΩUntypedPluginResolvedConfig, t as UntypedPluginContext } from "./plugin-csB6nsap.mjs";
2
+ import "./index-BgAdqTbb.mjs";
3
+
4
+ //#region src/index.d.ts
5
+
6
+ /**
7
+ * A Powerlines plugin to use Untyped for code generation based on user-defined schemas.
8
+ *
9
+ * @param options - The plugin options.
10
+ * @returns A Powerlines plugin instance.
11
+ */
12
+ declare const plugin: <TContext extends UntypedPluginContext = UntypedPluginContext>(options?: UntypedPluginOptions) => Plugin<TContext>;
13
+ //#endregion
14
+ export { UntypedPluginContext, UntypedPluginOptions, UntypedPluginResolvedConfig, UntypedPluginUserConfig, __ΩUntypedPluginContext, __ΩUntypedPluginOptions, __ΩUntypedPluginResolvedConfig, __ΩUntypedPluginUserConfig, plugin as default, plugin };
15
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;AA+BA;;;;;AAIG,cAJU,MAIV,EAAA,CAAA,iBAHgB,oBAGhB,GAHuC,oBAGvC,CAAA,CAAA,OAAA,CAAA,EADQ,oBACR,EAAA,GAAA,MAAA,CAAO,QAAP,CAAA"}
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import"./plugin-Bvn-he2n.mjs";import"./types-B7VYa_Pp.mjs";import{getGenerateAction as e}from"@storm-software/untyped/generate";const t=(t={})=>({name:`untyped`,config(){return{untyped:{schema:`**/{untyped.ts,*.untyped.ts}`,...t}}},async configResolved(){this.untyped??=e(this.workspaceConfig)},async prepare(){return this.untyped({entry:this.config.untyped.schema,outputPath:this.config.untyped.outputPath,generatedBy:this.config.framework})}});var n=t;export{n as default,t as plugin};
2
+ //# 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 type { StormWorkspaceConfig } from \"@storm-software/config/types\";\nimport { getGenerateAction } from \"@storm-software/untyped/generate\";\nimport type { Plugin } from \"powerlines/types/plugin\";\nimport { UntypedPluginContext, UntypedPluginOptions } from \"./types/plugin\";\n\nexport * from \"./types\";\n\n/**\n * A Powerlines plugin to use Untyped for code generation based on user-defined schemas.\n *\n * @param options - The plugin options.\n * @returns A Powerlines plugin instance.\n */\nexport const plugin = <\n TContext extends UntypedPluginContext = UntypedPluginContext\n>(\n options: UntypedPluginOptions = {}\n): Plugin<TContext> => {\n return {\n name: \"untyped\",\n config() {\n return {\n untyped: {\n schema: \"**/{untyped.ts,*.untyped.ts}\",\n ...options\n }\n };\n },\n async configResolved() {\n this.untyped ??= getGenerateAction(\n this.workspaceConfig as StormWorkspaceConfig\n );\n },\n async prepare() {\n return this.untyped({\n entry: this.config.untyped.schema,\n outputPath: this.config.untyped.outputPath,\n generatedBy: this.config.framework\n });\n }\n };\n};\n\nexport default plugin;\n"],"mappings":"gIA+BA,MAAa,GAGX,EAAgC,EAAE,IAE3B,CACL,KAAM,UACN,QAAS,CACP,MAAO,CACL,QAAS,CACP,OAAQ,+BACR,GAAG,EACJ,CACF,EAEH,MAAM,gBAAiB,CACrB,KAAK,UAAY,EACf,KAAK,gBACN,EAEH,MAAM,SAAU,CACd,OAAO,KAAK,QAAQ,CAClB,MAAO,KAAK,OAAO,QAAQ,OAC3B,WAAY,KAAK,OAAO,QAAQ,WAChC,YAAa,KAAK,OAAO,UAC1B,CAAC,EAEL,EAGH,IAAA,EAAe"}
@@ -0,0 +1 @@
1
+ export{};