Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/broccoli/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const generateYuiDocJsonApi = require('../preprocessors/generate-yuidoc-jsonapi'
module.exports = class DocsGenerator extends CachingWriter {
constructor(inputNodes, options) {
let defaults = {
cacheInclude: [/\.js$/]
cacheInclude: [/\.(js|ts)$/],
};

super(inputNodes, Object.assign(defaults, options));
Expand Down
3 changes: 2 additions & 1 deletion lib/preprocessors/generate-yuidoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function normalizePath(filePath, inputPath) {
return filePath
.replace(inputPath, '') // Remove root of path
.replace(/\\/g, '/') // Convert windows-style slashes
.replace(/(\/index)?\.js/, ''); // Remove index.js / .js
.replace(/(\/index)?\.[jt]s/, ''); // Remove index.js / .js
}

function isAcceptableWarning(warning) {
Expand All @@ -102,6 +102,7 @@ function isAcceptableWarning(warning) {

module.exports = function generateYUIDoc(inputPaths, project) {
let json = new YUIDoc({
extension: '.js,.ts',
quiet: true,
writeJSON: false,
paths: inputPaths,
Expand Down