@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.
- package/dist/index-BgAdqTbb.d.mts +1 -0
- package/dist/index-CEgs-Dz2.d.cts +1 -0
- package/dist/index.cjs +1 -7
- package/dist/index.d.cts +7 -26
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +15 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/plugin-Bvn-he2n.mjs +1 -0
- package/dist/plugin-D1DHPRaJ.d.cts +1671 -0
- package/dist/plugin-D1DHPRaJ.d.cts.map +1 -0
- package/dist/plugin-csB6nsap.d.mts +1671 -0
- package/dist/plugin-csB6nsap.d.mts.map +1 -0
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.d.cts +3 -23
- package/dist/types/index.d.mts +3 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/plugin.cjs +1 -1
- package/dist/types/plugin.d.cts +2 -23
- package/dist/types/plugin.d.mts +2 -0
- package/dist/types/plugin.mjs +1 -0
- package/dist/types-B7VYa_Pp.mjs +1 -0
- package/dist/types-DHkg7xmX.cjs +0 -0
- package/package.json +45 -27
- package/dist/index-C4u5anDj.d.cts +0 -1582
- package/dist/index-C4u5anDj.d.ts +0 -1582
- package/dist/index.d.ts +0 -34
- package/dist/index.js +0 -7
- package/dist/types/index.d.ts +0 -23
- package/dist/types/index.js +0 -1
- package/dist/types/plugin.d.ts +0 -23
- /package/dist/{types/plugin.js → plugin-DHXHjv16.cjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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"}
|
package/dist/index.d.mts
ADDED
|
@@ -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{};
|