Lucian Mocanu

Results 149 comments of Lucian Mocanu

v7 switched from CommonJS to ESM. It is not mentioned in the breaking changes, but it is a breaking change for projects that are using CommonJS

Introduced by PR #303 in `tsconfig.json` by changing: `compilerOptions.module`: `node16` (v6) -> `es2022` (v7) This change replaced the `require`s with `import`s. It's true that `package.json` doesn't contain `type: module`, so...

Normally since it's a CLI tool, it shouldn't matter whether it's CommonJS or ESM, but it does if you are forced to call `dist/cli.js` directly from your own project. We...

`ts-node --esm` does not work (obviously) and `tsx` doesn't work either because it uses `esbuild` which is not good at transpiling TypeScript (especially decorators in the TypeORM entities). I'll update...

Since neither `ts-node` nor `tsx` are working and since ESM imports in CommonJS modules are not allowed anyway, I opened PR #325 to set the TypeScript target module type back...

`@jorgebodega/typeorm-factory` has the same issue.

FYI `bun` doesn't work properly with TypeORM. Or rather, TypeORM has some incorrect `package.json` config that makes `bun` interpret imports incorrectly. See https://github.com/oven-sh/bun/issues/7633 or a few other tickets in the...

`tsx` and `bun` didn't work for my for the reasons specified above. My current solution was to update to [7.1.0-next.1](https://www.npmjs.com/package/@jorgebodega/typeorm-seeding/v/7.1.0-next.1) and patch the dynamic import in `commandUtils.js` until this is...

I just opened two PRs, #338 and #339. I prefer #339 since it relies on more on TypeORM build-in functions, so there's less code in this repo to maintain.

Besides Northern Cyprus, "Cyprus No Mans Area" also doesn't have an ISO code. In the world maps, the ISO code (hc-a2) of "Cyprus No Mans Area" is "CN" which breaks...