Skip to content

Commit

Permalink
build: configure package to build and publish from dist directory (wa…
Browse files Browse the repository at this point in the history
…tson-developer-cloud#990)

build: configure package to build and publish from dist directory
  • Loading branch information
germanattanasio authored Oct 28, 2019
2 parents 6bb1052 + 6398ec6 commit 7587c23
Show file tree
Hide file tree
Showing 36 changed files with 837 additions and 423 deletions.
10 changes: 6 additions & 4 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
"verifyConditions": ["@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git"],
"prepare": ["@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git"],
"publish": [
"@semantic-release/npm",
["@semantic-release/npm", {
"pkgRoot": "dist"
}],
{
"path": "@semantic-release/github",
"assets": [
{"path": "dist/watson.js"},
{"path": "dist/watson.min.js"}
{"path": "dist/dist/watson.js"},
{"path": "dist/dist/watson.min.js"}
]
}
]
}
}
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ before_install:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ ! -z ${encrypted_ac3aacad7ba8_key} ]
&& cd test/resources/ && tar xvf secrets.tar
&& cd ../.. || true'
- npm install -g typescript
script:
- tsc
- npm run build
- npm run test-unit-travis || travis_terminate 1
- npm run test-integration-travis || node scripts/report_integration_test.js || travis_terminate 1
- npm run check-packages
Expand Down
Empty file removed dist/.gitkeep
Empty file.
Loading

0 comments on commit 7587c23

Please sign in to comment.