Skip to content

Commit d2b57f6

Browse files
committed
ci: handle node_js v6
1 parent ce07285 commit d2b57f6

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ npm-debug.log
88
.DS_Store
99
.esm-cache
1010

11+
# Bundle
12+
target
13+
1114
# Typescript
1215
*.tsbuildinfo
1316
.tsbuildinfo

.travis.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,23 @@
11
language: node_js
2+
sudo: false
3+
24
node_js:
5+
- "6"
36
- "8"
47
- "10"
58
- "12"
69
- "13"
7-
sudo: false
10+
811
cache:
912
directories:
13+
- target
1014
- node_modules
15+
16+
install:
17+
- 'if [ "${TRAVIS_NODE_VERSION}" = "6" ] ; then nvm use 8 ; fi ;'
18+
- yarn install
19+
- yarn build
20+
- 'if [ "${TRAVIS_NODE_VERSION}" = "6" ] ; then nvm use "${TRAVIS_NODE_VERSION}" && node --version ; fi ;'
21+
22+
script:
23+
- yarn test

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"license": "MIT",
88
"version": "2.1.0",
9-
"source": "src/main/ts/index.ts",
9+
"source": "jsonrpc.ts",
1010
"main": "jsonrpc.js",
1111
"module": "jsonrpc.mjs",
1212
"unpkg": "jsonrpc.umd.js",
@@ -42,10 +42,10 @@
4242
},
4343
"scripts": {
4444
"build:tsc": "tsc -p tsconfig.build.json",
45-
"build:microbundle": "microbundle jsonrpc.ts --name jsonrpc --strict",
45+
"build:microbundle": "microbundle build jsonrpc.ts --name jsonrpc --strict",
4646
"build": "yarn build:microbundle",
4747
"lint": "tslint -p tsconfig.json -t stylish jsonrpc.ts",
48-
"test": "npm run lint && tman"
48+
"test": "yarn lint && tman"
4949
},
5050
"files": [
5151
"README.md",

0 commit comments

Comments
 (0)