Misha Bruml
Misha Bruml
> This is what i did. > > This plugin replaces __dirname and/or __filename with the correct values > > ``` > const fs = require("fs"); > const path =...
mind if i take this?
yes please. we need to run a snyk scan on the built image before pushing it
hey, any movement on this? I am getting the same error when bundling with `esbuild` ```ts client = await pool.connect(); const migrationsDir = path.resolve('resources/migrations'); console.log(migrationsDir); await migrate({ client }, migrationsDir);...
> How have other libraries solved this? I expect other libraries read files in similar ways and have had the same problem. > > I'm open to solutions, but I...
You could try e.g. `path.join(process.cwd())` from https://github.com/evanw/esbuild/issues/859#issuecomment-790868963
> > You could try e.g. path.join(process.cwd()) from [evanw/esbuild#859 (comment)](https://github.com/evanw/esbuild/issues/859#issuecomment-790868963) > > I would be surprised if that worked in a normal Node.js/NPM environment. > > Perhaps you would like...
I think `separator` is a good fit, the character that separates array/string joins is referred to as `separator` by the js `Array.join()` api which is a similar concept https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join#parameters
> Useful solution for this pattern: > > ```ts > class ConstructableBaseEntity extends BaseEntity { > static construct(this: new () => T, params: Partial): T { > return Object.assign(new this(),...
also ``` ╷ │ Error: Invalid count argument │ │ on .terraform/modules/infrastructure.k8s_monitor_client/secret.tf line 5, in resource "kubernetes_secret" "client_signing_key": │ 5: count = var.enabled && var.kubernetes_monitor_private_key_encoded != "" ? 1 :...