Skip to content

Commit 94fd15a

Browse files
Gaurav0sivakumar-kailasam
authored andcommitted
Fix docs build for latest ember-data (3.6-canary)
1 parent 68f10fd commit 94fd15a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

generate-local.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ elif [ "$COMMAND" == 'yui' ] && [ "${2}" == 'ember-data' ]
2020
then
2121
cd ../data
2222
echo "🏃 💨 Running ember data docs build 🏃 💨"
23-
npm run production
23+
npm run build:production
2424
echo "🚚 💨 Copying data docs output to ember-jsonapi-docs for version $1... 🚚 💨 "
2525
rm -rf ../ember-jsonapi-docs/tmp/s3-docs/v$VERSION/$PROJECT-docs.json
2626
rm -rf ../ember-jsonapi-docs/tmp/json-docs/$PROJECT/$VERSION

lib/fetch-yui-docs.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ export default async function fetchYuiDocs(
6666
ignorePreviouslyIndexedDoc
6767
)
6868

69-
return [
70-
...(await fetchYuiDocsFromNpm(projects, 'ember', filterValidVersionsForRequestedDocs)),
71-
...(await fetchYuiDocsFromNpm(projects, 'ember-data', filterValidVersionsForRequestedDocs)),
72-
]
69+
let emberYuidocs = await fetchYuiDocsFromNpm(projects, 'ember', filterValidVersionsForRequestedDocs)
70+
let emberDataYuidocs = await fetchYuiDocsFromNpm(projects, 'ember-data', filterValidVersionsForRequestedDocs)
71+
72+
return [].concat(emberYuidocs || []).concat(emberDataYuidocs || [])
7373
}

0 commit comments

Comments
 (0)