We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3eb00cd commit 2239fdcCopy full SHA for 2239fdc
transport-node/bin/check-bundle-version.ts
@@ -12,13 +12,14 @@
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
-const { VERSION } = JSON.parse(await Deno.readTextFile("src/version.json"));
+const d = await Deno.readTextFile("./src/version.json");
16
+const { version } = JSON.parse(d);
17
-const pkg = await Deno.readTextFile("package.json");
18
+const pkg = await Deno.readTextFile("./package.json");
19
const m = JSON.parse(pkg);
-if (m.version !== VERSION) {
20
+if (m.version !== version) {
21
console.error(
- `[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`,
23
);
24
Deno.exit(1);
25
} else {
0 commit comments