Skip to content

Commit

Permalink
Fixed: typescript files don't show in {N} debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsvetan Raikov committed Nov 7, 2016
1 parent d416cce commit 061804b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/tools/node-modules/node-modules-dest-copy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface ILocalDependencyData extends IDependencyData {
export class TnsModulesCopy {
constructor(
private outputRoot: string,
private $options: IOptions,
private $fs: IFileSystem
) {
}
Expand All @@ -26,12 +27,18 @@ export class TnsModulesCopy {

// Remove .ts files
let allFiles = this.$fs.enumerateFilesInDirectorySync(tnsCoreModulesResourcePath);
let deleteFilesFutures = allFiles.filter(file => minimatch(file, "**/*.ts", { nocase: true })).map(file => this.$fs.deleteFile(file));
Future.wait(deleteFilesFutures);
if (this.$options.release) {
let deleteFilesFutures = allFiles.filter(file => minimatch(file, "**/*.ts", { nocase: true })).map(file => this.$fs.deleteFile(file));
Future.wait(deleteFilesFutures);
} else {
let deleteFilesFutures = allFiles.filter(file => minimatch(file, "**/*.d.ts", { nocase: true })).map(file => this.$fs.deleteFile(file));
Future.wait(deleteFilesFutures);
}


shelljs.rm("-rf", path.join(tnsCoreModulesResourcePath, "node_modules"));

// TODO: The following two lines are necessary to temporarily work around hardcoded
// TODO: The following two lines are necessary to temporarily work around hardcoded
// path dependencies in iOS livesync logic. Should be addressed ASAP
shelljs.cp("-Rf", path.join(tnsCoreModulesResourcePath, "*"), this.outputRoot);
shelljs.rm("-rf", tnsCoreModulesResourcePath);
Expand Down

0 comments on commit 061804b

Please sign in to comment.