Skip to content

Commit 9f6786c

Browse files
committed
Fixes
1 parent ae5fd64 commit 9f6786c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ jobs:
251251
if [ "${OS}" = "windows-2022" ]; then
252252
bin="${bin}.exe"
253253
fi
254-
cp "../../target/${TARGET}/release/${internal_name}" "${node_pkg}/bin"
254+
cp "../../target/${TARGET}/release/${bin}" "${node_pkg}/bin"
255255
cp ../README.md "${node_pkg}"
256256
cd "${node_pkg}"
257257
npm publish --access public

codegenerator/cli/npm/envio/bin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ function getExePath() {
2828

2929
try {
3030
// Since the bin will be located inside `node_modules`, we can simply call require.resolve
31-
return require.resolve(`@envio-dev/envio-${os}-${arch}/bin/envio${extension}`);
31+
return require.resolve(`@envio-dev/core-${os}-${arch}/bin/envio${extension}`);
3232
} catch (e) {
3333
throw new Error(
34-
`Couldn't find envio binary (@envio-dev/envio-${os}-${arch}) inside node_modules for ${os}-${arch}`
34+
`Couldn't find envio binary (@envio-dev/core-${os}-${arch}) inside node_modules for ${os}-${arch}`
3535
);
3636
}
3737
}

codegenerator/cli/npm/package.json.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@envio-dev/core-${node_pkg}",
2+
"name": "@envio-dev/${node_pkg}",
33
"version": "${version}",
44
"description": "A latency and sync speed optimized, developer friendly blockchain data indexer.",
55
"repository": {

0 commit comments

Comments
 (0)