@powerlines/plugin-env 0.13.88 → 0.13.90
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/alloy/src/core/components/output.cjs +1 -1
- package/dist/alloy/src/core/components/output.mjs +1 -1
- package/dist/alloy/src/core/components/single-line-comment.cjs +1 -1
- package/dist/alloy/src/core/components/single-line-comment.mjs +1 -1
- package/dist/alloy/src/core/components/source-file.cjs +1 -1
- package/dist/alloy/src/core/components/source-file.mjs +1 -1
- package/dist/alloy/src/create-plugin.cjs +2 -2
- package/dist/alloy/src/create-plugin.mjs +2 -2
- package/dist/alloy/src/markdown/components/markdown-file.cjs +1 -1
- package/dist/alloy/src/markdown/components/markdown-file.mjs +1 -1
- package/dist/alloy/src/markdown/components/markdown-table.cjs +1 -1
- package/dist/alloy/src/markdown/components/markdown-table.mjs +1 -1
- package/dist/alloy/src/types/components.d.mts +2 -2
- package/dist/alloy/src/typescript/components/builtin-file.cjs +1 -1
- package/dist/alloy/src/typescript/components/builtin-file.mjs +1 -1
- package/dist/alloy/src/typescript/components/tsdoc-reflection.cjs +1 -1
- package/dist/alloy/src/typescript/components/tsdoc-reflection.mjs +1 -1
- package/dist/alloy/src/typescript/components/tsdoc.cjs +1 -1
- package/dist/alloy/src/typescript/components/tsdoc.mjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-file.cjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-file.mjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-interface.cjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-interface.mjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-object.cjs +1 -1
- package/dist/alloy/src/typescript/components/typescript-object.mjs +1 -1
- package/dist/babel/plugin.cjs +4 -4
- package/dist/babel/plugin.mjs +3 -3
- package/dist/components/docs.cjs +1 -1
- package/dist/components/docs.mjs +1 -1
- package/dist/components/env.cjs +9 -9
- package/dist/components/env.mjs +7 -7
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/deepkit/src/utilities.cjs +1 -1
- package/dist/deepkit/src/utilities.mjs +1 -1
- package/dist/helpers/create-reflection-resource.cjs +1 -1
- package/dist/helpers/create-reflection-resource.mjs +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/index.mjs +1 -1
- package/dist/helpers/load.cjs +1 -1
- package/dist/helpers/load.mjs +1 -1
- package/dist/helpers/persistence.cjs +1 -1
- package/dist/helpers/persistence.mjs +1 -1
- package/dist/helpers/reflect.cjs +1 -1
- package/dist/helpers/reflect.mjs +1 -1
- package/dist/helpers/source-file-env.cjs +1 -1
- package/dist/helpers/source-file-env.mjs +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +1 -1
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +1 -1
- package/dist/plugin-babel/src/helpers/index.cjs +1 -1
- package/dist/plugin-babel/src/helpers/index.mjs +1 -1
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +1 -1
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +1 -1
- package/dist/plugin-babel/src/helpers/options.cjs +1 -1
- package/dist/plugin-babel/src/helpers/options.mjs +1 -1
- package/dist/plugin-babel/src/index.cjs +1 -1
- package/dist/plugin-babel/src/index.mjs +1 -1
- package/dist/powerlines/src/lib/build/esbuild.cjs +9 -9
- package/dist/powerlines/src/lib/build/esbuild.mjs +9 -9
- package/dist/powerlines/src/lib/entry.cjs +1 -1
- package/dist/powerlines/src/lib/entry.mjs +1 -1
- package/dist/powerlines/src/lib/logger.cjs +1 -1
- package/dist/powerlines/src/lib/logger.mjs +1 -1
- package/dist/powerlines/src/lib/utilities/resolve.cjs +1 -1
- package/dist/powerlines/src/lib/utilities/resolve.mjs +1 -1
- package/dist/powerlines/src/plugin-utils/helpers.cjs +1 -1
- package/dist/powerlines/src/plugin-utils/helpers.mjs +1 -1
- package/dist/powerlines/src/types/babel.d.mts +1 -1
- package/dist/powerlines/src/types/config.d.mts +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getPluginName as e}from"./filters.mjs";import{LogLevelLabel as t}from"@storm-software/config-tools/types";import{isFunction as
|
|
1
|
+
import{getPluginName as e}from"./filters.mjs";import{LogLevelLabel as t}from"@storm-software/config-tools/types";import n from"chalk";import{isFunction as r}from"@stryke/type-checks/is-function";function i(e,t){try{return Array.isArray(t)&&t.length>0&&t[0]?r(t[0])?t[0](e):t[0]:r(t)?t(e):t}catch{return t[0]}}function a(a,o,s,c){if(Array.isArray(c)&&c.length>0&&c[0]){if(c.length>2&&c[2]&&r(c[2])&&!c[2](o,s)){a.log(t.TRACE,`Skipping filtered Babel plugin ${n.bold.cyanBright(e(c)||`unnamed`)} for ${s}`);return}return c.length>2?[i(a,c),c[1],c[2]]:[i(a,c),c[1],null]}return[i(a,c),{},null]}export{a as resolveBabelPlugin,i as resolvePluginFunction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`./helpers/
|
|
1
|
+
const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`./helpers/create-plugin.cjs`),n=require(`./helpers/module-helpers.cjs`),r=require(`./helpers/filters.cjs`),i=require(`./helpers/options.cjs`);require(`./helpers/index.cjs`);let a=require(`@storm-software/config-tools/types`),o=require(`defu`);o=e.__toESM(o);let s=require(`@stryke/path/is-parent-path`),c=require(`@stryke/type-checks/is-set-object`),l=require(`@babel/core`),u=require(`@stryke/path/file-path-fns`);const d=(e={})=>({name:`babel`,config(){if((0,c.isSetObject)(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=(0,o.default)(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,n){if((0,s.isParentPath)(n,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(a.LogLevelLabel.TRACE,`Skipping Babel transformation for: ${n}`),{code:t,id:n};this.log(a.LogLevelLabel.TRACE,`Babel transforming file: ${n}`);let c=this.config.transform.babel.plugins.map(e=>i.resolveBabelPlugin(this,t,n,e)).filter((e,t,n)=>e&&!r.isDuplicatePlugin(n,e)),d=this.config.transform.babel.presets.map(e=>i.resolveBabelPlugin(this,t,n,e)).filter((e,t,n)=>e&&!r.isDuplicatePlugin(n,e));if(Array.isArray(c)&&c.length===0&&Array.isArray(d)&&d.length===0)return{code:t,id:n};[`ts`,`cts`,`mts`,`tsx`].includes((0,u.findFileExtensionSafe)(n))&&!r.isDuplicatePlugin(c,`@babel/plugin-syntax-typescript`)&&!r.isDuplicatePlugin(d,`@babel/preset-typescript`)&&c.unshift([`@babel/plugin-syntax-typescript`,{isTSX:(0,u.findFileExtension)(n)===`.tsx`}]);let f=await(0,l.transformAsync)(t,{highlightCode:!0,code:!0,ast:!1,cloneInputAst:!1,comments:!0,sourceType:`module`,configFile:!1,babelrc:!1,envName:this.config.mode,caller:{name:this.config.framework},...this.config.transform.babel??{},filename:n,plugins:c.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,o.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:d.map(t=>Array.isArray(t)&&t.length>=2?[t[0],(0,o.default)(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!f?.code)throw Error(`Powerlines - Babel plugin failed to compile ${n}`);return{code:f.code,id:n}}});var f=d;exports.default=f;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{createBabelPlugin as e}from"./helpers/create-plugin.mjs";import{addImport as t,addImportsToProgram as n}from"./helpers/module-helpers.mjs";import{getPluginName as r,isDuplicatePlugin as i}from"./helpers/filters.mjs";import{resolveBabelPlugin as a,resolvePluginFunction as o}from"./helpers/options.mjs";import"./helpers/index.mjs";import{LogLevelLabel as s}from"@storm-software/config-tools/types";import c from"defu";import{isParentPath as l}from"@stryke/path/is-parent-path";import{isSetObject as u}from"@stryke/type-checks/is-set-object";import{transformAsync as d}from"@babel/core";import{findFileExtension as f,findFileExtensionSafe as p}from"@stryke/path/file-path-fns";var m=(e={})=>({name:`babel`,config(){if(u(e))return{transform:{babel:e}}},configResolved:{order:`pre`,handler(){this.devDependencies[`@babel/core`]=`^7.28.4`,this.config.transform.babel=c(this.config.transform.babel??{},{plugins:[],presets:[]})}},async transform(t,n){if(l(n,this.powerlinesPath)||t.includes(`/* @storm-ignore */`)||t.includes(`/* @storm-disable */`))return this.log(s.TRACE,`Skipping Babel transformation for: ${n}`),{code:t,id:n};this.log(s.TRACE,`Babel transforming file: ${n}`);let r=this.config.transform.babel.plugins.map(e=>a(this,t,n,e)).filter((e,t,n)=>e&&!i(n,e)),o=this.config.transform.babel.presets.map(e=>a(this,t,n,e)).filter((e,t,n)=>e&&!i(n,e));if(Array.isArray(r)&&r.length===0&&Array.isArray(o)&&o.length===0)return{code:t,id:n};[`ts`,`cts`,`mts`,`tsx`].includes(p(n))&&!i(r,`@babel/plugin-syntax-typescript`)&&!i(o,`@babel/preset-typescript`)&&r.unshift([`@babel/plugin-syntax-typescript`,{isTSX:f(n)===`.tsx`}]);let u=await d(t,{highlightCode:!0,code:!0,ast:!1,cloneInputAst:!1,comments:!0,sourceType:`module`,configFile:!1,babelrc:!1,envName:this.config.mode,caller:{name:this.config.framework},...this.config.transform.babel??{},filename:n,plugins:r.map(t=>Array.isArray(t)&&t.length>=2?[t[0],c(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean),presets:o.map(t=>Array.isArray(t)&&t.length>=2?[t[0],c(t.length>1&&t[1]?t[1]:{},{options:e})]:t).filter(Boolean)});if(!u?.code)throw Error(`Powerlines - Babel plugin failed to compile ${n}`);return{code:u.code,id:n}}});export{m as default};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
const e=require(`../../../../_virtual/rolldown_runtime.cjs`);require(`../entry.cjs`);let t=require(`@stryke/path/
|
|
2
|
-
import ${(0,
|
|
3
|
-
export { ${(0,
|
|
4
|
-
import ${t[1]===`*`?`* as ${(0,
|
|
5
|
-
export { ${(0,
|
|
1
|
+
const e=require(`../../../../_virtual/rolldown_runtime.cjs`);require(`../entry.cjs`);let t=require(`@stryke/path/join-paths`),n=require(`@stryke/helpers/omit`),r=require(`@stryke/path/replace`),i=require(`@stryke/string-format/camel-case`),a=require(`@stryke/type-checks/is-string`),o=require(`defu`);o=e.__toESM(o);const s={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function c(e){let r=e.config.build.override.inject??e.config.build.inject;return r&&Object.keys(r).length>0&&e.fs.writeSync((0,t.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`),Object.entries(r).map(([e,t])=>{if(t)if(Array.isArray(t)){if((0,i.camelCase)(e)!==e){if(t.length===1)return`
|
|
2
|
+
import ${(0,i.camelCase)(e)} from "${t[0]}";
|
|
3
|
+
export { ${(0,i.camelCase)(e)} as "${e}" }`;if(t.length>1)return`
|
|
4
|
+
import ${t[1]===`*`?`* as ${(0,i.camelCase)(e)}`:`{ ${t[1]} as ${(0,i.camelCase)(e)} }`} from "${t[0]}";
|
|
5
|
+
export { ${(0,i.camelCase)(e)} as "${e}" }`}else if(t.length===1)return`
|
|
6
6
|
import ${e} from "${t[0]}";
|
|
7
7
|
export { ${e} };`;else if(t.length>1)return`
|
|
8
8
|
import ${t[1]===`*`?`* as ${e}`:`{ ${t[1]} as ${e} }`} from "${t[0]}";
|
|
9
|
-
export { ${e} };`}else if((0,
|
|
10
|
-
import ${(0,
|
|
11
|
-
export { ${(0,
|
|
9
|
+
export { ${e} };`}else if((0,i.camelCase)(e)!==e)return`
|
|
10
|
+
import ${(0,i.camelCase)(e)} from "${t[0]}";
|
|
11
|
+
export { ${(0,i.camelCase)(e)} as "${e}" }`;else return`
|
|
12
12
|
import ${e} from "${t}";
|
|
13
13
|
export { ${e} };`;return``}).join(`
|
|
14
|
-
`)),(0,
|
|
14
|
+
`)),(0,o.default)({alias:e.builtins.reduce((t,n)=>{if(!t[n]){let r=e.fs.ids[n];r&&(t[n]=r)}return t},e.config.build.alias?Array.isArray(e.config.build.alias)?e.config.build.alias.reduce((e,t)=>(e[t.find.toString()]||(e[t.find.toString()]=t.replacement),e),{}):e.config.build.alias:{}),inject:r&&Object.keys(r).length>0?[(0,t.joinPaths)(e.workspaceConfig.workspaceRoot,e.config.projectRoot,e.artifactsPath,`inject-shim.js`)]:void 0},e.config.build.variant===`esbuild`?(0,n.omit)(e.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},e.config.build.variant===`esbuild`?(0,n.omit)(e.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:e.config.build.mainFields,conditions:e.config.build.conditions,define:e.config.build.define,resolveExtensions:e.config.build.extensions,packages:e.config.build.skipNodeModulesBundle?`external`:e.config.build.variant===`esbuild`?e.config.build.packages:void 0,format:Array.isArray(e.config.output.format)?e.config.output.format[0]:e.config.output.format,platform:e.config.build.platform,treeShaking:!!e.config.build?.treeshake||e.config.build?.treeShaking,outdir:e.config.output.buildPath,tsconfig:e.tsconfig.tsconfigFilePath,tsconfigRaw:e.tsconfig.tsconfigJson,minify:e.config.mode!==`development`,metafile:e.config.mode===`development`,sourcemap:e.config.mode===`development`},s)}exports.extractESBuildConfig=c;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import"../entry.mjs";import{
|
|
2
|
-
import ${
|
|
3
|
-
export { ${
|
|
4
|
-
import ${t[1]===`*`?`* as ${
|
|
5
|
-
export { ${
|
|
1
|
+
import"../entry.mjs";import{joinPaths as e}from"@stryke/path/join-paths";import{omit as t}from"@stryke/helpers/omit";import{replacePath as n}from"@stryke/path/replace";import{camelCase as r}from"@stryke/string-format/camel-case";import{isString as i}from"@stryke/type-checks/is-string";import a from"defu";const o={target:`esnext`,platform:`neutral`,format:`esm`,write:!0,minify:!0,sourcemap:!1,bundle:!0,treeShaking:!0,keepNames:!0,splitting:!0,logLevel:`silent`};function s(n){let i=n.config.build.override.inject??n.config.build.inject;return i&&Object.keys(i).length>0&&n.fs.writeSync(e(n.workspaceConfig.workspaceRoot,n.config.projectRoot,n.artifactsPath,`inject-shim.js`),Object.entries(i).map(([e,t])=>{if(t)if(Array.isArray(t)){if(r(e)!==e){if(t.length===1)return`
|
|
2
|
+
import ${r(e)} from "${t[0]}";
|
|
3
|
+
export { ${r(e)} as "${e}" }`;if(t.length>1)return`
|
|
4
|
+
import ${t[1]===`*`?`* as ${r(e)}`:`{ ${t[1]} as ${r(e)} }`} from "${t[0]}";
|
|
5
|
+
export { ${r(e)} as "${e}" }`}else if(t.length===1)return`
|
|
6
6
|
import ${e} from "${t[0]}";
|
|
7
7
|
export { ${e} };`;else if(t.length>1)return`
|
|
8
8
|
import ${t[1]===`*`?`* as ${e}`:`{ ${t[1]} as ${e} }`} from "${t[0]}";
|
|
9
|
-
export { ${e} };`}else if(
|
|
10
|
-
import ${
|
|
11
|
-
export { ${
|
|
9
|
+
export { ${e} };`}else if(r(e)!==e)return`
|
|
10
|
+
import ${r(e)} from "${t[0]}";
|
|
11
|
+
export { ${r(e)} as "${e}" }`;else return`
|
|
12
12
|
import ${e} from "${t}";
|
|
13
13
|
export { ${e} };`;return``}).join(`
|
|
14
|
-
`)),
|
|
14
|
+
`)),a({alias:n.builtins.reduce((e,t)=>{if(!e[t]){let r=n.fs.ids[t];r&&(e[t]=r)}return e},n.config.build.alias?Array.isArray(n.config.build.alias)?n.config.build.alias.reduce((e,t)=>(e[t.find.toString()]||(e[t.find.toString()]=t.replacement),e),{}):n.config.build.alias:{}),inject:i&&Object.keys(i).length>0?[e(n.workspaceConfig.workspaceRoot,n.config.projectRoot,n.artifactsPath,`inject-shim.js`)]:void 0},n.config.build.variant===`esbuild`?t(n.config.build.override,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`]):{},n.config.build.variant===`esbuild`?t(n.config.build,[`alias`,`inject`,`external`,`noExternal`,`skipNodeModulesBundle`,`extensions`,`variant`,`override`]):{},{mainFields:n.config.build.mainFields,conditions:n.config.build.conditions,define:n.config.build.define,resolveExtensions:n.config.build.extensions,packages:n.config.build.skipNodeModulesBundle?`external`:n.config.build.variant===`esbuild`?n.config.build.packages:void 0,format:Array.isArray(n.config.output.format)?n.config.output.format[0]:n.config.output.format,platform:n.config.build.platform,treeShaking:!!n.config.build?.treeshake||n.config.build?.treeShaking,outdir:n.config.output.buildPath,tsconfig:n.tsconfig.tsconfigFilePath,tsconfigRaw:n.tsconfig.tsconfigJson,minify:n.config.mode!==`development`,metafile:n.config.mode===`development`,sourcemap:n.config.mode===`development`},o)}export{s as extractESBuildConfig};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`../plugin-utils/paths.cjs`);let e=require(`@stryke/path/
|
|
1
|
+
require(`../plugin-utils/paths.cjs`);let e=require(`@stryke/path/join-paths`),t=require(`@stryke/convert/parse-type-definition`),n=require(`@stryke/type-checks/is-set-string`),r=require(`@stryke/path/replace`),i=require(`@stryke/type-checks/is-string`),a=require(`@stryke/convert/to-array`);require(`@stryke/fs/is-file`),require(`@stryke/fs/list-files`),require(`@stryke/hash/murmurhash`);let o=require(`@stryke/helpers/get-unique`),s=require(`@stryke/path/append`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../plugin-utils/paths.mjs";import{
|
|
1
|
+
import"../plugin-utils/paths.mjs";import{joinPaths as e}from"@stryke/path/join-paths";import{parseTypeDefinition as t}from"@stryke/convert/parse-type-definition";import{isSetString as n}from"@stryke/type-checks/is-set-string";import{replacePath as r}from"@stryke/path/replace";import{isString as i}from"@stryke/type-checks/is-string";import{toArray as a}from"@stryke/convert/to-array";import"@stryke/fs/is-file";import"@stryke/fs/list-files";import"@stryke/hash/murmurhash";import{getUniqueBy as o}from"@stryke/helpers/get-unique";import{appendPath as s}from"@stryke/path/append";export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../../_virtual/rolldown_runtime.cjs`);let t=require(`@storm-software/config-tools/types`),
|
|
1
|
+
const e=require(`../../../_virtual/rolldown_runtime.cjs`);let t=require(`@stryke/string-format/title-case`),n=require(`@storm-software/config-tools/types`),r=require(`chalk`);r=e.__toESM(r),require(`@storm-software/config-tools/logger`),require(`@storm-software/config-tools/utilities/colors`),require(`@stryke/helpers/noop`);const i=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`],a=(e,n)=>(a,...o)=>e(a,` ${r.default.inverse.hex(i[n.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%i.length]||i[0])(` ${(0,t.titleCase)(n)} `)} ${o.join(` `)} `);exports.extendLog=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{titleCase as e}from"@stryke/string-format/title-case";import{LogLevelLabel as t}from"@storm-software/config-tools/types";import n from"chalk";import"@storm-software/config-tools/logger";import"@storm-software/config-tools/utilities/colors";import"@stryke/helpers/noop";const r=[`#00A0DD`,`#6FCE4E`,`#FBBF24`,`#F43F5E`,`#3B82F6`,`#A855F7`,`#469592`,`#288EDF`,`#10B981`,`#EF4444`,`#F0EC56`,`#F472B6`,`#22D3EE`,`#EAB308`,`#84CC16`,`#F87171`,`#0EA5E9`,`#D946EF`,`#FACC15`,`#34D399`],i=(t,i)=>(a,...o)=>t(a,` ${n.inverse.hex(r[i.split(``).map(e=>e.charCodeAt(0)).reduce((e,t)=>e+t,0)%r.length]||r[0])(` ${e(i)} `)} ${o.join(` `)} `);export{i as extendLog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`./bundle.cjs`);let n=require(`@stryke/
|
|
1
|
+
const e=require(`../../../../_virtual/rolldown_runtime.cjs`),t=require(`./bundle.cjs`);let n=require(`@stryke/convert/parse-type-definition`),r=require(`@stryke/type-checks/is-set-string`);async function i(e,i,a={}){let o;o=(0,r.isSetString)(i)?(0,n.parseTypeDefinition)(i):i;let s=await t.bundle(e,o.file,a),c=await e.resolver.evalModule(s.text,{filename:s.path,forceTranspile:!0}),l=o.name;return l||=`default`,c[l]??c[`__Ω${l}`]}exports.resolve=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bundle as e}from"./bundle.mjs";import{
|
|
1
|
+
import{bundle as e}from"./bundle.mjs";import{parseTypeDefinition as t}from"@stryke/convert/parse-type-definition";import{isSetString as n}from"@stryke/type-checks/is-set-string";async function r(r,i,a={}){let o;o=n(i)?t(i):i;let s=await e(r,o.file,a),c=await r.resolver.evalModule(s.text,{filename:s.path,forceTranspile:!0}),l=o.name;return l||=`default`,c[l]??c[`__Ω${l}`]}export{r as resolve};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../../../_virtual/rolldown_runtime.cjs`);let t=require(`@stryke/type-checks/is-set-string`),n=require(`@stryke/type-checks/is-
|
|
1
|
+
const e=require(`../../../_virtual/rolldown_runtime.cjs`);let t=require(`@stryke/type-checks/is-set-string`),n=require(`@stryke/type-checks/is-set-object`),r=require(`@stryke/type-checks/is-undefined`),i=require(`@stryke/type-checks/is-function`);function a(e){return(0,i.isFunction)(e)||(0,n.isSetObject)(e)&&`handler`in e&&(0,i.isFunction)(e.handler)}function o(e){return(0,n.isSetObject)(e)&&`handler`in e&&(0,i.isFunction)(e.handler)}function s(e){return a(e)||o(e)}function c(e){return(0,i.isFunction)(e)?e:e.handler}exports.getHookHandler=c,exports.isPluginHook=s,exports.isPluginHookFunction=a,exports.isPluginHookObject=o;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isSetString as e}from"@stryke/type-checks/is-set-string";import{
|
|
1
|
+
import{isSetString as e}from"@stryke/type-checks/is-set-string";import{isSetObject as t}from"@stryke/type-checks/is-set-object";import{isUndefined as n}from"@stryke/type-checks/is-undefined";import{isFunction as r}from"@stryke/type-checks/is-function";function i(e){return r(e)||t(e)&&`handler`in e&&r(e.handler)}function a(e){return t(e)&&`handler`in e&&r(e.handler)}function o(e){return i(e)||a(e)}function s(e){return r(e)?e:e.handler}export{s as getHookHandler,o as isPluginHook,i as isPluginHookFunction,a as isPluginHookObject};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Context } from "./context.mjs";
|
|
2
2
|
import { LogFn } from "./config.mjs";
|
|
3
|
-
import { PluginItem, PluginObj, PluginPass } from "@babel/core";
|
|
4
3
|
import { BabelAPI } from "@babel/helper-plugin-utils";
|
|
4
|
+
import { PluginItem, PluginObj, PluginPass } from "@babel/core";
|
|
5
5
|
|
|
6
6
|
//#region ../powerlines/src/types/babel.d.ts
|
|
7
7
|
|
|
@@ -5,8 +5,8 @@ import { TSConfig } from "./tsconfig.mjs";
|
|
|
5
5
|
import { PluginContext } from "./context.mjs";
|
|
6
6
|
import { BabelTransformPluginOptions } from "./babel.mjs";
|
|
7
7
|
import { LogLevelLabel } from "@storm-software/config-tools/types";
|
|
8
|
-
import { transformAsync } from "@babel/core";
|
|
9
8
|
import "c12";
|
|
9
|
+
import { transformAsync } from "@babel/core";
|
|
10
10
|
import { Format } from "@storm-software/build-tools/types";
|
|
11
11
|
import { StormWorkspaceConfig } from "@storm-software/config/types";
|
|
12
12
|
import { MaybePromise } from "@stryke/types/base";
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ import { Reflection } from "../deepkit/src/types.mjs";
|
|
|
2
2
|
import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "../plugin-babel/src/types/plugin.mjs";
|
|
3
3
|
import "../plugin-babel/src/types/index.mjs";
|
|
4
4
|
import { EnvInterface, SecretsInterface } from "./runtime.mjs";
|
|
5
|
-
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
6
5
|
import { DotenvParseOutput } from "@stryke/env/types";
|
|
6
|
+
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
7
7
|
import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
|
|
8
8
|
|
|
9
9
|
//#region src/types/plugin.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.90",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
|
|
6
6
|
"repository": {
|
|
@@ -192,9 +192,9 @@
|
|
|
192
192
|
"@alloy-js/markdown": "^0.21.0",
|
|
193
193
|
"@babel/core": "^7.28.5",
|
|
194
194
|
"@babel/types": "^7.28.5",
|
|
195
|
-
"@powerlines/alloy": "^0.11.
|
|
196
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
197
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
195
|
+
"@powerlines/alloy": "^0.11.93",
|
|
196
|
+
"@powerlines/plugin-babel": "^0.12.93",
|
|
197
|
+
"@powerlines/plugin-plugin": "^0.12.36",
|
|
198
198
|
"@storm-software/config-tools": "^1.188.73",
|
|
199
199
|
"@stryke/capnp": "^0.12.51",
|
|
200
200
|
"@stryke/env": "^0.20.43",
|
|
@@ -203,16 +203,16 @@
|
|
|
203
203
|
"@stryke/string-format": "^0.12.29",
|
|
204
204
|
"@stryke/type-checks": "^0.5.14",
|
|
205
205
|
"@stryke/types": "^0.10.28",
|
|
206
|
-
"powerlines": "^0.34.
|
|
206
|
+
"powerlines": "^0.34.2"
|
|
207
207
|
},
|
|
208
208
|
"devDependencies": {
|
|
209
209
|
"@alloy-js/babel-preset": "^0.2.1",
|
|
210
210
|
"@babel/preset-typescript": "^7.28.5",
|
|
211
|
-
"@powerlines/nx": "^0.11.
|
|
211
|
+
"@powerlines/nx": "^0.11.15",
|
|
212
212
|
"@types/node": "^24.10.4",
|
|
213
213
|
"typescript": "^5.9.3",
|
|
214
214
|
"vite": "8.0.0-beta.2"
|
|
215
215
|
},
|
|
216
216
|
"publishConfig": { "access": "public" },
|
|
217
|
-
"gitHead": "
|
|
217
|
+
"gitHead": "6407c0f7097c50efaf2096a8ea0b53f403f3ac0a"
|
|
218
218
|
}
|