mysql-schema-ts
mysql-schema-ts copied to clipboard
build script issue - package.json gets copied into the dist/ folder
...which in turn causes an off-by-one error in the version reported by the generated types:
From the top of a file created by the latest version v1.6.2:
/**
Schema Generated with mysql-schema-ts 1.6.1
*/
https://github.com/nettofarah/mysql-schema-ts/blob/711b6419e227aea7e2f22ce8777768e823869f91/package.json#L12
I'm guessing this line could simply change into something like:
"pub": "tsc && rm dist/package.json* && np"
no?
I'm unsure tbh, as this sounds like a chicken and egg sort of problem 😬 I might change the way we publish packages to use something a bit simpler, or remove the version header altogether