Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Aug 10, 2023
1 parent b377216 commit 164d89e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions executors/dart_web/bin/make_runnable_by_node.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ void setVersionFile() {

var version = lockfile.packages['intl4x']?.version;
if (version != null) {
File('out/version.js').writeAsStringSync(
'''const dartVersion = "${version.canonicalizedVersion}";''');
File('out/version.js').writeAsStringSync('''
const dartVersion = "${version.canonicalizedVersion}";
module.exports = { dartVersion };
''');
}
}

Expand Down
1 change: 1 addition & 0 deletions executors/dart_web/out/executor.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@


let collator = require('./collator.js')
const { dartVersion } = require('./version.js')

/**
* TODOs:
Expand Down
3 changes: 2 additions & 1 deletion executors/dart_web/out/version.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
const dartVersion = "0.4.0";
const dartVersion = "0.4.0";
module.exports = { dartVersion };

0 comments on commit 164d89e

Please sign in to comment.