Skip to content

Commit

Permalink
Fix build script and add tsc to test workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
raineorshine committed May 2, 2021
1 parent 05c7302 commit dee163f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit dee163f

Please # to comment.