update jsdoc

This commit is contained in:
Bassel Kanso 2022-05-09 02:42:19 +03:00
parent 77740ed044
commit 3f53cff0c9
2 changed files with 5 additions and 5 deletions

View File

@ -3,10 +3,7 @@
const compilers = require('./compilers');
const getConfigPath = require('./utils/get-config-path');
module.exports = async (
srcDir,
{ watch = false, configOptions = { options: {}, fileNames: [] } }
) => {
module.exports = async (srcDir, { watch = false, configOptions = {} } = {}) => {
// TODO: Use the Strapi debug logger instead or don't log at all
console.log(`Starting the compilation for TypeScript files in ${srcDir}`);

View File

@ -10,8 +10,11 @@ module.exports = {
/**
* Default TS -> JS Compilation for Strapi
* @param {string} tsConfigPath
* @param {Object} configOptions
* @param {Array.<string>} configOptions.fileNames
* @param {Object} configOptions.options
*/
run(tsConfigPath, configOptions) {
run(tsConfigPath, configOptions = {}) {
// Parse the tsconfig.json file & resolve the configuration options
const { fileNames, options, projectReferences } = resolveConfigOptions(tsConfigPath);