@powerlines/plugin-env 0.13.94 → 0.13.96

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.
@@ -1,4 +1,4 @@
1
- const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`./transpile.cjs`);let n=require(`@stryke/type-checks`),r=require(`typescript`);const i=e=>({name:`powerlines:deepkit`,setup(i){i.onLoad({filter:/\.tsx?$/},async i=>{let a=await e.fs.read(i.path);if(!a)return null;if(i.pluginData?.isReflected)return{contents:a,loader:`ts`,pluginData:{isReflected:!0}};let o=t.transpile(e,a,i.path);if(o.diagnostics&&o.diagnostics.length>0)if(o.diagnostics.some(e=>e.category===r.DiagnosticCategory.Error)){let t=`Deepkit Type reflection transpilation errors in file: ${i.path} \n ${o.diagnostics.filter(e=>e.category===r.DiagnosticCategory.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
2
- `)}`;throw e.error(t),Error(t)}else o.diagnostics.some(e=>e.category===r.DiagnosticCategory.Warning)?e.warn(`Deepkit Type reflection transpilation warnings in file: ${i.path} \n ${o.diagnostics.filter(e=>e.category===r.DiagnosticCategory.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
3
- `)}`):e.debug(`Deepkit Type reflection transpilation info in file: ${i.path} \n ${o.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
1
+ const e=require(`../../_virtual/rolldown_runtime.cjs`),t=require(`./transpile.cjs`);let n=require(`@stryke/type-checks`),r=require(`typescript`);const i=(e,i={})=>({name:`powerlines:deepkit`,setup(a){a.onLoad({filter:/\.(m|c)?tsx?$/,...i},async i=>{let a=await e.fs.read(i.path);if(!a)return null;if(i.pluginData?.isReflected)return{contents:a,loader:`ts`,pluginData:{isReflected:!0}};let o=t.transpile(e,a,i.path);if(o.diagnostics&&o.diagnostics.length>0)if(o.diagnostics.some(e=>e.category===r.DiagnosticCategory.Error)){let t=`Deepkit Type reflection transpilation errors: ${i.path} \n ${o.diagnostics.filter(e=>e.category===r.DiagnosticCategory.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
2
+ `)}`;throw e.error(t),Error(t)}else o.diagnostics.some(e=>e.category===r.DiagnosticCategory.Warning)?e.warn(`Deepkit Type reflection transpilation warnings: ${i.path} \n ${o.diagnostics.filter(e=>e.category===r.DiagnosticCategory.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
3
+ `)}`):e.debug(`Deepkit Type reflection transpilation diagnostics: ${i.path} \n ${o.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${(0,n.isString)(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
4
4
  `)}`);return{contents:o.outputText,loader:`ts`,pluginData:{isReflected:!0}}})}});exports.esbuildPlugin=i;
@@ -1,4 +1,4 @@
1
- import{transpile as e}from"./transpile.mjs";import{isString as t}from"@stryke/type-checks";import{DiagnosticCategory as n}from"typescript";const r=r=>({name:`powerlines:deepkit`,setup(i){i.onLoad({filter:/\.tsx?$/},async i=>{let a=await r.fs.read(i.path);if(!a)return null;if(i.pluginData?.isReflected)return{contents:a,loader:`ts`,pluginData:{isReflected:!0}};let o=e(r,a,i.path);if(o.diagnostics&&o.diagnostics.length>0)if(o.diagnostics.some(e=>e.category===n.Error)){let e=`Deepkit Type reflection transpilation errors in file: ${i.path} \n ${o.diagnostics.filter(e=>e.category===n.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
2
- `)}`;throw r.error(e),Error(e)}else o.diagnostics.some(e=>e.category===n.Warning)?r.warn(`Deepkit Type reflection transpilation warnings in file: ${i.path} \n ${o.diagnostics.filter(e=>e.category===n.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
3
- `)}`):r.debug(`Deepkit Type reflection transpilation info in file: ${i.path} \n ${o.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
1
+ import{transpile as e}from"./transpile.mjs";import{isString as t}from"@stryke/type-checks";import{DiagnosticCategory as n}from"typescript";const r=(r,i={})=>({name:`powerlines:deepkit`,setup(a){a.onLoad({filter:/\.(m|c)?tsx?$/,...i},async i=>{let a=await r.fs.read(i.path);if(!a)return null;if(i.pluginData?.isReflected)return{contents:a,loader:`ts`,pluginData:{isReflected:!0}};let o=e(r,a,i.path);if(o.diagnostics&&o.diagnostics.length>0)if(o.diagnostics.some(e=>e.category===n.Error)){let e=`Deepkit Type reflection transpilation errors: ${i.path} \n ${o.diagnostics.filter(e=>e.category===n.Error).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
2
+ `)}`;throw r.error(e),Error(e)}else o.diagnostics.some(e=>e.category===n.Warning)?r.warn(`Deepkit Type reflection transpilation warnings: ${i.path} \n ${o.diagnostics.filter(e=>e.category===n.Warning).map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
3
+ `)}`):r.debug(`Deepkit Type reflection transpilation diagnostics: ${i.path} \n ${o.diagnostics.map(e=>`-${e.file?`${e.file.fileName}:`:``} ${t(e.messageText)?e.messageText:e.messageText.messageText} (at ${e.start}:${e.length})`).join(`
4
4
  `)}`);return{contents:o.outputText,loader:`ts`,pluginData:{isReflected:!0}}})}});export{r as esbuildPlugin};
@@ -1 +1 @@
1
- const e=require(`../../../../_virtual/rolldown_runtime.cjs`);var t={};e.__reExport(t,require(`@deepkit/type-compiler`)),Object.defineProperty(exports,`type_compiler_exports`,{enumerable:!0,get:function(){return t}});var n=require(`@deepkit/type-compiler`);Object.keys(n).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});
1
+ const e=require(`../../../../_virtual/rolldown_runtime.cjs`);var t={};e.__reExport(t,require(`@deepkit/type-compiler`)),e.__reExport(t,require(`@deepkit/type-compiler/compiler`)),e.__reExport(t,require(`@deepkit/type-compiler/config`)),Object.defineProperty(exports,`type_compiler_exports`,{enumerable:!0,get:function(){return t}});var n=require(`@deepkit/type-compiler`);Object.keys(n).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})});var r=require(`@deepkit/type-compiler/compiler`);Object.keys(r).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});var i=require(`@deepkit/type-compiler/config`);Object.keys(i).forEach(function(e){e!==`default`&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return i[e]}})});
@@ -1 +1 @@
1
- import{__reExport as e}from"../../../../_virtual/rolldown_runtime.mjs";export*from"@deepkit/type-compiler";var t={};import*as n from"@deepkit/type-compiler";e(t,n);export{t as type_compiler_exports};
1
+ import{__reExport as e}from"../../../../_virtual/rolldown_runtime.mjs";export*from"@deepkit/type-compiler";export*from"@deepkit/type-compiler/compiler";export*from"@deepkit/type-compiler/config";var t={};import*as n from"@deepkit/type-compiler";e(t,n);import*as r from"@deepkit/type-compiler/compiler";e(t,r);import*as i from"@deepkit/type-compiler/config";e(t,i);export{t as type_compiler_exports};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.13.94",
3
+ "version": "0.13.96",
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.97",
196
- "@powerlines/plugin-babel": "^0.12.97",
197
- "@powerlines/plugin-plugin": "^0.12.40",
195
+ "@powerlines/alloy": "^0.11.99",
196
+ "@powerlines/plugin-babel": "^0.12.99",
197
+ "@powerlines/plugin-plugin": "^0.12.42",
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.6"
206
+ "powerlines": "^0.34.8"
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.19",
211
+ "@powerlines/nx": "^0.11.21",
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": "775c97c66356e5deea17161cd15d59755a8193d2"
217
+ "gitHead": "a6b7abef7b6414df6df50419b53d0240033ae87a"
218
218
  }