Skip to content

Commit

Permalink
Fix require for the bin.js file (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
DZakh authored Oct 1, 2024
1 parent 8e0f015 commit a236a89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//@ts-check
"use strict";

import { spawnSync } from "child_process";
const { spawnSync } = require("child_process");

/**
* Returns the executable path for envio located inside node_modules
Expand Down
4 changes: 2 additions & 2 deletions codegenerator/cli/npm/envio/package.json.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "envio",
"version": "${version}",
"description": "A latency and sync speed optimized, developer friendly blockchain data indexer.",
"bin": "./bin.mjs",
"bin": "./bin.js",
"repository": {
"type": "git",
"url": "git+https://github.com/enviodev/hyperindex.git"
Expand All @@ -29,7 +29,7 @@
"envio-darwin-arm64": "${version}"
},
"files": [
"bin.mjs",
"bin.js",
"evm.schema.json",
"fuel.schema.json",
"rescript.json",
Expand Down

0 comments on commit a236a89

Please sign in to comment.