node-sql-parser icon indicating copy to clipboard operation
node-sql-parser copied to clipboard

Question: how to use this library with changes from Github (unreleased changes)?

Open antonioorct opened this issue 11 months ago • 5 comments

There is a PR (#1794) that I need to use right now that's in the master branch but not released yet on npm.

I've tried to add the dependency directly from Github: pnpm add https://github.com/taozhi8833998/node-sql-parser#master but that failed due to the module not being transpiled.

Is there any other way or suggestion to work around this?

antonioorct avatar Mar 23 '24 16:03 antonioorct

@antonioorct new version 5.0.0 has been released, please check it.

taozhi8833998 avatar Mar 25 '24 02:03 taozhi8833998

It works, thanks!

It would still be useful to know how to use an unpublished version though

antonioorct avatar Mar 25 '24 15:03 antonioorct

It works, thanks!

It would still be useful to know how to use an unpublished version though

I will add the sop later.

taozhi8833998 avatar Mar 26 '24 00:03 taozhi8833998

@antonioorct I've needed to the same in the past. You cant use this repo as a package source because it doesn't contain the compiled peg parsers. Those are generated by the build scripts in package.json

you'll need to clone the repo and built it yourself and then the built artifacts can be used in your code.

@taozhi8833998 can correct me if I'm wrong

karanssj4 avatar Apr 01 '24 09:04 karanssj4

@antonioorct You can try it.

taozhi8833998 avatar Apr 01 '24 09:04 taozhi8833998