Soptq pfp

Soptq

@soptq

68 Following
4 Followers


frolic pfp
frolic
@frolic
foundry binaries are now on npm! npm add @foundryup/foundry these track foundry nightly releases and automatically publish a new version to npm for each nightly (with a similar versioning scheme) https://www.npmjs.com/package/@foundryup/foundry
1 reply
2 recasts
8 reactions

Soptq pfp
Soptq
@soptq
Thanks for letting me know! 🫡 I have made another package to achieve that: ``` npm install foundry-js@nightly-87bc53fc6c874bd4c92d97ed180b949e3a36d78c ``` will install the corresponding version of foundry. This package will be updated daily automatically.
1 reply
0 recast
1 reaction

Soptq pfp
Soptq
@soptq
Unfortunately for now I don't think it is doable, as the version of any npm package needs to be semantic (https://docs.npmjs.com/about-semantic-versioning). Namely, if the package has a version of "nightly-2cf84d…", it cannot be published to npmjs.
1 reply
0 recast
0 reaction

Soptq pfp
Soptq
@soptq
Great! I just updated to 1.2.0. Now you can specify the foundry version in the `package.json` by adding the following: "config": { "foundry_version": "nightly" } and then `npm install` will install the given foundry version. After installing locally, you need to call forge by npx. Refer to README for details ;)
1 reply
0 recast
0 reaction

Soptq pfp
Soptq
@soptq
Yes, indeed. I have made an update to foundry-up to version 0.1.3 to allow specifying a release tag. For example, if I want to stick to `nightly-2cf84d9f3ba7b6f4a9296299e7036ecc24cfa1da`, I can now: ```bash npm install -g foundry-up --foundry_version=nightly-2cf84d9f3ba7b6f4a9296299e7036ecc24cfa1da ```
1 reply
0 recast
1 reaction

Soptq pfp
Soptq
@soptq
Great! please DM me or open an issue on Github if there is any problem ;)
0 reply
0 recast
1 reaction

Soptq pfp
Soptq
@soptq
For now there isn't, as Foundry still has no versioned releases (see https://github.com/foundry-rs/foundry/issues/3895 for more details). However, this functionality is not hard to implement once the Foundry has versioned releases. Will add this feat when its ready.
1 reply
0 recast
0 reaction

Soptq pfp
Soptq
@soptq
Yes it is! Here is the `forge -V` running on Vercel Node.js 20.x. (the last line)
2 replies
0 recast
1 reaction

Soptq pfp
Soptq
@soptq
Just made one 🫡 : ```bash npm install -g foundry-up ``` and you can `forge build` with latest nightly foundry without problems. Source code: https://github.com/Soptq/foundry-up
1 reply
0 recast
1 reaction