Skip to content

Commit 2239fdc

Browse files
committed
fix check script
1 parent 3eb00cd commit 2239fdc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: transport-node/bin/check-bundle-version.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212
* See the License for the specific language governing permissions and
1313
* limitations under the License.
1414
*/
15-
const { VERSION } = JSON.parse(await Deno.readTextFile("src/version.json"));
15+
const d = await Deno.readTextFile("./src/version.json");
16+
const { version } = JSON.parse(d);
1617

17-
const pkg = await Deno.readTextFile("package.json");
18+
const pkg = await Deno.readTextFile("./package.json");
1819
const m = JSON.parse(pkg);
19-
if (m.version !== VERSION) {
20+
if (m.version !== version) {
2021
console.error(
21-
`[ERROR] expected package version ${m.version} and transport version ${VERSION} to match`,
22+
`[ERROR] expected package version ${m.version} and transport version ${version} to match`,
2223
);
2324
Deno.exit(1);
2425
} else {

0 commit comments

Comments
 (0)