List the dart2js version in the --version string.

This commit is contained in:
Natalie Weizenbaum 2016-10-14 17:38:50 -07:00
parent 68bd26637a
commit d1554ee796

View File

@ -57,8 +57,10 @@ package() async {
js() {
_ensureBuild();
var destination = new File('build/sass.dart.js');
Dart2js.compile(new File('bin/sass.dart'),
outFile: destination, extraArgs: ['-Dnode=true', '-Dversion=$_version']);
Dart2js.compile(new File('bin/sass.dart'), outFile: destination, extraArgs: [
'-Dnode=true',
'-Dversion=$_version compiled with dart2js $_dartVersion'
]);
var text = destination.readAsStringSync();
destination.writeAsStringSync("""
${preamble.getPreamble()}