mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
update jsdoc
This commit is contained in:
parent
77740ed044
commit
3f53cff0c9
@ -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}`);
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user