From 1bbad5310e5ce8bead58882d7d053870a24d5300 Mon Sep 17 00:00:00 2001 From: Mike North Date: Wed, 27 Mar 2019 10:45:46 -0700 Subject: [PATCH] fix: ensure build step happens in CI --- .travis.yml | 19 +++++++------------ package.json | 2 +- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index ca661442..8a6c85a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,8 +8,6 @@ before_install: - curl -o- -L https://yarnpkg.com/install.sh | bash - export PATH=$HOME/.yarn/bin:$PATH -before_script: yarn global add codecov - stages: - 'Test' - name: 'Deploy' @@ -24,21 +22,18 @@ jobs: - name: 'Lint' script: yarn lint - name: 'Floating Dependencies' - after_success: codecov - - name: 'Fixed Dependencies' install: - - yarn install --non-interactive - script: yarn test - + - yarn install --no-lockfile --non-interactive + - name: 'Fixed Dependencies' + before_script: yarn build && yarn global add codecov + script: + - node_modules/.bin/nyc yarn test + after_success: codecov - stage: 'Deploy' name: 'Publish to npm' - install: - - yarn install --non-interactive script: yarn semantic-release install: - - yarn install --no-lockfile --non-interactive + - yarn install --non-interactive -script: - - node_modules/.bin/nyc yarn test diff --git a/package.json b/package.json index 365e3ec4..49a79973 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "json-typescript", "version": "1.0.0", "description": "TypeScript type definitions for JSON objects", - "main": "index.ts", + "main": "dist/index.js", "scripts": { "build": "tsc", "test": "./node_modules/.bin/mocha --opts tests/mocha.opts",