Updated travis to node 12

Updated package scripts to use yarn
This commit is contained in:
Martin Donnelly 2020-11-17 11:45:16 +00:00
parent 833f8feef0
commit 83003b6987
2 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,3 @@
language: node_js language: node_js
node_js: node_js:
- "10" - 12

View File

@ -7,11 +7,11 @@
"scripts": { "scripts": {
"release": "vik patch -t", "release": "vik patch -t",
"clean": "rm -rf dist", "clean": "rm -rf dist",
"prepublish": "npm run clean && npm run compile", "prepublish": "yarn run clean && yarn run compile",
"test": "jest --coverage && npm run compile", "test": "jest --coverage && yarn run compile",
"compile:es": "tsc --declaration true --declarationMap true --module esnext --outDir './dist/es'", "compile:es": "tsc --declaration true --declarationMap true --module esnext --outDir './dist/es'",
"compile:commonjs": "tsc --declaration true --declarationMap true --module commonjs --outDir './dist/commonjs'", "compile:commonjs": "tsc --declaration true --declarationMap true --module commonjs --outDir './dist/commonjs'",
"compile": "npm run clean && npm run compile:es && npm run compile:commonjs" "compile": "yarn run clean && yarn run compile:es && yarn run compile:commonjs"
}, },
"author": "Martin Donnelly", "author": "Martin Donnelly",
"license": "ISC", "license": "ISC",