Skip to content

Commit 7587c23

Browse files
build: configure package to build and publish from dist directory (watson-developer-cloud#990)
build: configure package to build and publish from dist directory
2 parents 6bb1052 + 6398ec6 commit 7587c23

36 files changed

+837
-423
lines changed

.releaserc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
"verifyConditions": ["@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git"],
44
"prepare": ["@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git"],
55
"publish": [
6-
"@semantic-release/npm",
6+
["@semantic-release/npm", {
7+
"pkgRoot": "dist"
8+
}],
79
{
810
"path": "@semantic-release/github",
911
"assets": [
10-
{"path": "dist/watson.js"},
11-
{"path": "dist/watson.min.js"}
12+
{"path": "dist/dist/watson.js"},
13+
{"path": "dist/dist/watson.min.js"}
1214
]
1315
}
1416
]
15-
}
17+
}

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ before_install:
1313
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ ! -z ${encrypted_ac3aacad7ba8_key} ]
1414
&& cd test/resources/ && tar xvf secrets.tar
1515
&& cd ../.. || true'
16-
- npm install -g typescript
1716
script:
18-
- tsc
17+
- npm run build
1918
- npm run test-unit-travis || travis_terminate 1
2019
- npm run test-integration-travis || node scripts/report_integration_test.js || travis_terminate 1
2120
- npm run check-packages

dist/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)