diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea641d505..9ce25d134 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,6 +48,10 @@ jobs: - name: Install npm dependencies run: npm ci + - name: Compile typescript + run: tsc + if: "!(startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV)" + - name: Run tests run: npm run test if: "!(startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV)" diff --git a/scripts/build.js b/scripts/build.js index 8883f6ad1..1de1dbd75 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -13,7 +13,7 @@ const escapeComments = s => s.replace(/\*\*\//g, '**\\/') /** Extracts CLI options from the bin output. */ const readOptions = async () => { const optionsBinLabel = 'Options:\n' - const helpOutput = await spawn('node', ['./bin/cli.js', '--help']) + const helpOutput = await spawn('node', ['./build/src/bin/cli.js', '--help']) return helpOutput.slice(helpOutput.indexOf(optionsBinLabel) + optionsBinLabel.length) // outdent .split('\n').map(s => s.slice(2)).join('\n')