Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 3 additions & 12 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ defaults:
shell: bash

env:
ACTIONS_RUNNER_DEBUG: true
NPM_CONFIG_PROVENANCE: true
NPM_REGISTRY_URL: "https://registry.npmjs.org"

Expand Down Expand Up @@ -98,14 +97,6 @@ jobs:
node-version: "24"
registry-url: "https://registry.npmjs.org"

- name: Install Dependencies
working-directory: ./npm
run: bun install --frozen-lockfile

- name: Transpile TS -> JS
working-directory: ./npm
run: bun run build

- name: Derive RELEASE_VERSION
id: release-version
working-directory: ./npm
Expand Down Expand Up @@ -159,7 +150,7 @@ jobs:
fi

echo "Staging binary $BIN into @foundry-rs/forge-${{ matrix.os }}-${{ matrix.arch }}"
PLATFORM_NAME=${{ matrix.os }} ARCH=${{ matrix.arch }} FORGE_BIN_PATH="$BIN" bun ./scripts/prepublish.ts
PLATFORM_NAME=${{ matrix.os }} ARCH=${{ matrix.arch }} FORGE_BIN_PATH="$BIN" bun ./scripts/prepublish.mjs

- name: Sanity Check Binary
working-directory: ./npm
Expand Down Expand Up @@ -197,7 +188,7 @@ jobs:

ls -la ./@foundry-rs/forge-${{ matrix.os }}-${{ matrix.arch }}

bun ./scripts/publish.ts ./@foundry-rs/forge-${{ matrix.os }}-${{ matrix.arch }}
bun ./scripts/publish.mjs ./@foundry-rs/forge-${{ matrix.os }}-${{ matrix.arch }}

echo "Published @foundry-rs/forge-${{ matrix.os }}-${{ matrix.arch }}"

Expand Down Expand Up @@ -240,7 +231,7 @@ jobs:

- name: Publish Meta
working-directory: ./npm
run: bun run ./scripts/publish.ts ./@foundry-rs/forge
run: bun run ./scripts/publish.mjs ./@foundry-rs/forge
env:
PROVENANCE: true
VERSION_NAME: ${{ env.RELEASE_VERSION }}
Expand Down
6 changes: 5 additions & 1 deletion npm/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
.DS_Store

forge/*/bin/forge
anvil/*/bin/anvil
cast/*/bin/cast
chisel/*/bin/chisel
@foundry-rs/*/bin/
test/workspace/bun.lock
_
build
4 changes: 4 additions & 0 deletions npm/@foundry-rs/anvil/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Anvil

Anvil is a fast local Ethereum development node.
The cast binary can be used both within and outside of a Foundry project.
34 changes: 34 additions & 0 deletions npm/@foundry-rs/anvil/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@foundry-rs/anvil",
"version": "0.0.0",
"type": "module",
"homepage": "https://getfoundry.sh/anvil",
"description": "Anvil is a fast local Ethereum development node",
"bin": {
"anvil": "./bin.mjs"
},
"files": [
"bin",
"dist"
],
"scripts": {
"postinstall": "node ./dist/install.mjs"
},
"optionalDependencies": {
"@foundry-rs/anvil-darwin-arm64": "0.0.0",
"@foundry-rs/anvil-darwin-amd64": "0.0.0",
"@foundry-rs/anvil-linux-arm64": "0.0.0",
"@foundry-rs/anvil-linux-amd64": "0.0.0",
"@foundry-rs/anvil-win32-amd64": "0.0.0"
},
"publishConfig": {
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org"
},
"license": "MIT OR Apache-2.0",
"repository": {
"directory": "npm",
"url": "https://github.com/foundry-rs/foundry"
}
}
5 changes: 5 additions & 0 deletions npm/@foundry-rs/cast/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Cast

Cast is a Swiss Army knife for interacting with Ethereum applications from the command line.
You can make smart contract calls, send transactions, or retrieve any type of chain data - all from your command-line!
The cast binary can be used both within and outside of a Foundry project.
34 changes: 34 additions & 0 deletions npm/@foundry-rs/cast/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@foundry-rs/cast",
"version": "0.0.0",
"type": "module",
"homepage": "https://getfoundry.sh/cast",
"description": "Swiss Army knife for interacting with Ethereum applications from the command line",
"bin": {
"cast": "./bin.mjs"
},
"files": [
"bin",
"dist"
],
"scripts": {
"postinstall": "node ./dist/install.mjs"
},
"optionalDependencies": {
"@foundry-rs/cast-darwin-arm64": "0.0.0",
"@foundry-rs/cast-darwin-amd64": "0.0.0",
"@foundry-rs/cast-linux-arm64": "0.0.0",
"@foundry-rs/cast-linux-amd64": "0.0.0",
"@foundry-rs/cast-win32-amd64": "0.0.0"
},
"publishConfig": {
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org"
},
"license": "MIT OR Apache-2.0",
"repository": {
"directory": "npm",
"url": "https://github.com/foundry-rs/foundry"
}
}
4 changes: 4 additions & 0 deletions npm/@foundry-rs/chisel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Chisel

Chisel is a fast, utilitarian, and verbose Solidity REPL.
The chisel binary can be used both within and outside of a Foundry project.
34 changes: 34 additions & 0 deletions npm/@foundry-rs/chisel/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "@foundry-rs/chisel",
"version": "0.0.0",
"type": "module",
"homepage": "https://getfoundry.sh/chisel",
"description": "Chisel is a fast, utilitarian, and verbose Solidity REPL",
"bin": {
"chisel": "./bin.mjs"
},
"files": [
"bin",
"dist"
],
"scripts": {
"postinstall": "node ./dist/install.mjs"
},
"optionalDependencies": {
"@foundry-rs/chisel-darwin-arm64": "0.0.0",
"@foundry-rs/chisel-darwin-amd64": "0.0.0",
"@foundry-rs/chisel-linux-arm64": "0.0.0",
"@foundry-rs/chisel-linux-amd64": "0.0.0",
"@foundry-rs/chisel-win32-amd64": "0.0.0"
},
"publishConfig": {
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org"
},
"license": "MIT OR Apache-2.0",
"repository": {
"directory": "npm",
"url": "https://github.com/foundry-rs/foundry"
}
}
4 changes: 0 additions & 4 deletions npm/@foundry-rs/forge-darwin-amd64/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions npm/@foundry-rs/forge-darwin-amd64/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions npm/@foundry-rs/forge-darwin-arm64/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions npm/@foundry-rs/forge-darwin-arm64/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions npm/@foundry-rs/forge-linux-amd64/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions npm/@foundry-rs/forge-linux-amd64/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions npm/@foundry-rs/forge-linux-arm64/README.md

This file was deleted.

38 changes: 0 additions & 38 deletions npm/@foundry-rs/forge-linux-arm64/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions npm/@foundry-rs/forge-win32-amd64/README.md

This file was deleted.

Loading
Loading