From 8062399b3545ad6fb2fa783c1b53779b987f092a Mon Sep 17 00:00:00 2001 From: thosakwe Date: Thu, 15 Jun 2017 22:51:47 -0400 Subject: [PATCH] Fix build to sink --- lib/src/virtual_directory.dart | 4 ++++ pubspec.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/virtual_directory.dart b/lib/src/virtual_directory.dart index be22b073..71ef4ab3 100644 --- a/lib/src/virtual_directory.dart +++ b/lib/src/virtual_directory.dart @@ -372,6 +372,10 @@ class VirtualDirectory implements AngelPlugin { message: '"${entity.absolute.path}" did not require compilation; skipping it.'); else { + var outFile = new File(compiled.filename); + if (!await outFile.exists()) await outFile.create(recursive: true); + var sink = outFile.openWrite(); + await compiled.content.pipe(sink); p.finish( message: 'Built "${entity.absolute.path}" to "${compiled.filename}".', diff --git a/pubspec.yaml b/pubspec.yaml index b951db6c..d7d300ff 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ environment: sdk: ">=1.19.0" homepage: https://github.com/angel-dart/static author: Tobe O -version: 1.2.1 +version: 1.2.2 dependencies: angel_framework: ^1.0.0-dev cli_util: ^0.1.1