Skip to content

Commit

Permalink
Keep Node 12 building by running tsc instead of rollup in Travis
Browse files Browse the repository at this point in the history
Signed-off-by: Quinn Turner <[email protected]>
  • Loading branch information
quinnturner committed Feb 18, 2023
1 parent e9b8e5c commit 85df3bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
language: node_js
node_js:
- "12"
- "14"
- "16"

Expand All @@ -19,7 +20,7 @@ cache: npm
script:
# Have audit-ci run audit-ci to audit itself :)
# Temporary to properly test TypeScript PR
- npm run build
- npm run tsc
- if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then node dist/bin.js --config ./audit-ci.jsonc; fi
- npm run lint
- npm run test
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"README.md"
],
"scripts": {
"tsc": "tsc -p tsconfig.build.json",
"build": "concurrently \"tsc -p tsconfig.build.json --noEmit\" \"tsup lib/index.ts lib/bin.ts\"",
"lint": "eslint . --ext .ts,.js,.cjs",
"lint:fix": "eslint . --ext .ts,.js,.cjs --fix",
Expand Down

0 comments on commit 85df3bf

Please sign in to comment.