mysql-schema-ts icon indicating copy to clipboard operation
mysql-schema-ts copied to clipboard

build script issue - package.json gets copied into the dist/ folder

Open maranomynet opened this issue 4 years ago • 2 comments

...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
*/

maranomynet avatar Jan 14 '21 17:01 maranomynet

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?

maranomynet avatar Jan 21 '21 14:01 maranomynet

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

nettofarah avatar Feb 20 '21 21:02 nettofarah