File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44// license that can be found in the LICENSE file or at
55// https://opensource.org/licenses/MIT.
66
7- // These libraries don't expose *exactly* the same API, but they overlap in all
8- // the cases we care about.
9- export 'dart:io' if (dart.library.js) 'package:node_io/node_io.dart' ;
10-
11- // For cases that aren't covered by `node_io`.
127export 'io/vm.dart' if (dart.library.js) 'io/node.dart' ;
Original file line number Diff line number Diff line change 77import 'package:file/file.dart' ;
88import 'package:js/js.dart' ;
99import 'package:node_interop/node.dart' ;
10- import 'package:node_io/node_io.dart' ;
10+ import 'package:node_io/src/file_system.dart' ;
11+
12+ export 'package:node_io/src/directory.dart' ;
13+ export 'package:node_io/src/file.dart' ;
1114
1215// Node seems to support ANSI escapes on all terminals.
1316//
@@ -18,4 +21,9 @@ external bool get supportsAnsiEscapes;
1821
1922void printStderr (Object message) => process.stderr.write ("$message \n " );
2023
21- FileSystem get fileSystem => nodeFileSystem;
24+ int get exitCode => process.exitCode;
25+ void set exitCode (int code) {
26+ process.exitCode = code;
27+ }
28+
29+ final FileSystem fileSystem = NodeFileSystem ();
Original file line number Diff line number Diff line change 44// license that can be found in the LICENSE file or at
55// https://opensource.org/licenses/MIT.
66
7+ export 'dart:io' show File, Directory, exitCode;
8+
79import 'dart:io' ;
810
911import 'package:file/file.dart' ;
You can’t perform that action at this time.
0 commit comments