diff --git a/scripts/setupTypeScript.js b/scripts/setupTypeScript.js index 133658af..18d426d1 100644 --- a/scripts/setupTypeScript.js +++ b/scripts/setupTypeScript.js @@ -71,7 +71,7 @@ rollupConfig = rollupConfig.replace( // Add TypeScript rollupConfig = rollupConfig.replace( 'commonjs(),', - 'commonjs(),\n\t\ttypescript({\n\t\t\tsourceMap: !production,\n\t\t\tinlineSources: !production\n\t\t}),' + 'commonjs(),\n\t\ttypescript({\n\t\t\tsourceMap: !production,\n\t\t\tinlineSources: !production,\n\t\t\trootDir: "./src"\n\t\t}),' ); fs.writeFileSync(rollupConfigPath, rollupConfig)