mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-13 20:39:06 +00:00
checking against 'next' version instead of 'typescript'
This commit is contained in:
parent
8df0c7a73e
commit
a45c9f117e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue