checking against 'next' version instead of 'typescript'

This commit is contained in:
Yotam Mann 2020-01-19 23:40:12 -05:00
parent 8df0c7a73e
commit a45c9f117e

View file

@ -5,7 +5,7 @@ const semver = require("semver");
const { resolve } = require("path");
const { execSync } = require("child_process");
const tsVersion = execSync("npm show tone@typescript version").toString();
const tsVersion = execSync("npm show tone@next version").toString();
const masterVersion = execSync("npm show tone version").toString();
// go with whichever is the latest version
@ -33,7 +33,7 @@ if (process.env.TRAVIS) {
fs.writeFileSync(packageFile, JSON.stringify(packageObj, undefined, " "));
// write a version file
let versionFile = `export const version: string = ${JSON.stringify(version)};\n`;
const versionFile = `export const version: string = ${JSON.stringify(version)};\n`;
fs.writeFileSync(resolve(__dirname, "../Tone/version.ts"), versionFile);
}