Skip to content

Commit f18b67f

Browse files
authored
Feature/add gts gjs support (#235)
* Also Pass .gts,.gjs to YUIDoc Config * Properly Remove Extensions from Generated Names
1 parent 034d0eb commit f18b67f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/preprocessors/generate-yuidoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function normalizePath(filePath, inputPath) {
122122
return filePath
123123
.replace(inputPath, '') // Remove root of path
124124
.replace(/\\/g, '/') // Convert windows-style slashes
125-
.replace(/(\/index)?\.[jt]s/, ''); // Remove index.js / .js
125+
.replace(/(\/index)?\.g?[jt]s/, ''); // Remove index.js / .js
126126
}
127127

128128
function isAcceptableWarning(warning) {
@@ -131,7 +131,7 @@ function isAcceptableWarning(warning) {
131131

132132
module.exports = function generateYUIDoc(inputPaths, project) {
133133
let json = new YUIDoc({
134-
extension: '.js,.ts',
134+
extension: '.js,.ts,.gjs,.gts',
135135
quiet: true,
136136
writeJSON: false,
137137
paths: inputPaths,

0 commit comments

Comments
 (0)