From 68a794b5efbe1d3c1955752b013c080bd17c8878 Mon Sep 17 00:00:00 2001 From: Jonathan Creamer Date: Thu, 5 Jul 2018 15:46:34 -0500 Subject: [PATCH] fix(build): fix the travis-ci build to deploy with assets (#39) * update to only include `files` in the package --- .npmignore | 21 --------------------- .travis.yml | 8 ++++---- package.json | 4 ++++ 3 files changed, 8 insertions(+), 25 deletions(-) delete mode 100644 .npmignore diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 7172387..0000000 --- a/.npmignore +++ /dev/null @@ -1,21 +0,0 @@ -# Configuration files -tsconfig.json -config - -# Source code -src - -# Dependency directories -node_modules -yarn.lock - -# Editor settings -.vscode - -# Logs -logs -*.log - -# Test files -**/*.spec.* -**/__tests__/* diff --git a/.travis.yml b/.travis.yml index 39198a6..c4a3864 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,15 +6,15 @@ node_js: - "6" # Run the the validate script -script: yarn run validate - -# We of course run a build first to generate the build targets -before_deploy: yarn run build +script: + - yarn run validate + - yarn run build # Using semantic-release, deploy a new version of the library # We're running multiple node jobs so running on latest Node # version deploy: + skip_cleanup: true provider: script script: npx semantic-release on: diff --git a/package.json b/package.json index 341d59f..81442d4 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,10 @@ "jsnext:main": "lib/esm/index.js", "browser": "dist/eventbrite.js", "types": "lib/index.d.ts", + "files": [ + "lib", + "dist" + ], "keywords": [ "rest", "api",