Skip to content

Commit

Permalink
fix(schematics): fix create-nx-workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
vsavkin committed Feb 2, 2018
1 parent db44931 commit cc3f51f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/schematics/bin/create-nx-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ copyFile(
'__directory__',
'.angular_cli165.tgz'
),
'.'
tmpDir
);

function copyFile(file: string, target: string) {
const f = path.basename(file);
const source = createReadStream(file);
const dest = createWriteStream(path.resolve(target, f));
source.pipe(dest);
source.on('error', e => console.error(e));
const source = readFileSync(file);
writeFileSync(path.join(target, f), source);
}

if (useYarn) {
Expand Down

0 comments on commit cc3f51f

Please sign in to comment.