aboutsummaryrefslogtreecommitdiffstats
path: root/packages/connect
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2017-11-28 04:10:26 +0800
committerBrandon Millman <brandon.millman@gmail.com>2017-11-28 04:12:19 +0800
commitb04d07815f47018655b70b4152090b566f568af1 (patch)
tree38255a942f5d7486ff751b9c18b4f7b87d493905 /packages/connect
parent48b3d8526560d389e74beb12bbd64b7be6e9268f (diff)
downloaddexon-0x-contracts-b04d07815f47018655b70b4152090b566f568af1.tar
dexon-0x-contracts-b04d07815f47018655b70b4152090b566f568af1.tar.gz
dexon-0x-contracts-b04d07815f47018655b70b4152090b566f568af1.tar.bz2
dexon-0x-contracts-b04d07815f47018655b70b4152090b566f568af1.tar.lz
dexon-0x-contracts-b04d07815f47018655b70b4152090b566f568af1.tar.xz
dexon-0x-contracts-b04d07815f47018655b70b4152090b566f568af1.tar.zst
dexon-0x-contracts-b04d07815f47018655b70b4152090b566f568af1.zip
Add md directory to website package and change generated docs directory
Diffstat (limited to 'packages/connect')
-rw-r--r--packages/connect/package.json2
-rw-r--r--packages/connect/scripts/postpublish.js3
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/connect/package.json b/packages/connect/package.json
index 9131eef14..00378397c 100644
--- a/packages/connect/package.json
+++ b/packages/connect/package.json
@@ -15,7 +15,7 @@
"build": "tsc",
"clean": "shx rm -rf _bundles lib test_temp",
"docs:json": "typedoc --excludePrivate --excludeExternals --target ES5 --json $JSON_FILE_PATH $PROJECT_DIR",
- "upload_docs_json": "aws s3 cp docs/index.json $S3_URL --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type aplication/json",
+ "upload_docs_json": "aws s3 cp generated_docs/index.json $S3_URL --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type application/json",
"copy_test_fixtures": "copyfiles -u 2 './test/fixtures/**/*.json' ./lib/test/fixtures",
"lint": "tslint src/**/*.ts test/**/*.ts",
"run_mocha": "mocha lib/test/**/*_test.js",
diff --git a/packages/connect/scripts/postpublish.js b/packages/connect/scripts/postpublish.js
index ba0f8507d..e6a2cc065 100644
--- a/packages/connect/scripts/postpublish.js
+++ b/packages/connect/scripts/postpublish.js
@@ -17,8 +17,9 @@ postpublish_utils.getLatestTagAndVersionAsync(subPackageName)
})
.then(function(release) {
console.log('POSTPUBLISH: Release successful, generating docs...');
+ const jsonFilePath = __dirname + '/../' + postpublish_utils.generatedDocsDirectoryName + '/index.json';
return execAsync(
- 'JSON_FILE_PATH=' + __dirname + '/../docs/index.json PROJECT_DIR=' + __dirname + '/.. yarn docs:json',
+ 'JSON_FILE_PATH=' + jsonFilePath + ' PROJECT_DIR=' + __dirname + '/.. yarn docs:json',
{
cwd,
}