diff --git a/packages/utils/typescript/lib/compile.js b/packages/utils/typescript/lib/compile.js index ef9a441ea3..883d86e262 100644 --- a/packages/utils/typescript/lib/compile.js +++ b/packages/utils/typescript/lib/compile.js @@ -2,7 +2,6 @@ const compilers = require('./compilers'); const getConfigPath = require('./utils/get-config-path'); -const copyResources = require('./utils/copy-resources'); module.exports = async (srcDir, { watch = false } = {}) => { // TODO: Use the Strapi debug logger instead or don't log at all @@ -12,6 +11,4 @@ module.exports = async (srcDir, { watch = false } = {}) => { const configPath = getConfigPath(srcDir); compiler.run(configPath); - - await copyResources(srcDir); }; diff --git a/packages/utils/typescript/lib/utils/copy-resources.js b/packages/utils/typescript/lib/utils/copy-resources.js deleted file mode 100644 index 175265e87a..0000000000 --- a/packages/utils/typescript/lib/utils/copy-resources.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -const path = require('path'); -const fse = require('fs-extra'); - -const DEFAULT_RESOURCES_PATHS = ['favicon.ico']; - -module.exports = async (dir, resources = DEFAULT_RESOURCES_PATHS) => { - await Promise.all( - resources.map(resourceName => fse.copy(resourceName, path.join(dir, 'dist', resourceName))) - ); -}; diff --git a/packages/utils/typescript/lib/utils/index.js b/packages/utils/typescript/lib/utils/index.js index e18175265b..034eaf8565 100644 --- a/packages/utils/typescript/lib/utils/index.js +++ b/packages/utils/typescript/lib/utils/index.js @@ -5,7 +5,6 @@ const isTypeScriptProjectSync = require('./is-typescript-project-sync'); const getConfigPath = require('./get-config-path'); const reportDiagnostics = require('./report-diagnostics'); const resolveConfigOptions = require('./resolve-config-options'); -const copyResources = require('./copy-resources'); const formatHost = require('./format-host'); module.exports = { @@ -14,6 +13,5 @@ module.exports = { getConfigPath, reportDiagnostics, resolveConfigOptions, - copyResources, formatHost, };