Skip to content
This repository was archived by the owner on Dec 6, 2017. It is now read-only.

Commit 79be3d6

Browse files
cbrackenAnting Shen
authored and
Anting Shen
committed
chore(transformer): Use dartSdkDirectory from code_transformers for SDK location
1 parent c8b9a55 commit 79be3d6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/transformer.dart

+1-4
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ TransformOptions _parseSettings(Map args) {
7777
var injectedTypes = _readStringListValue(args, 'injected_types');
7878

7979
var sdkDir = _readStringValue(args, 'dart_sdk', required: false);
80-
if (sdkDir == null) {
81-
// Assume the Pub executable is always coming from the SDK.
82-
sdkDir = path.dirname(path.dirname(Platform.executable));
83-
}
80+
if (sdkDir == null) sdkDir = dartSdkDirectory;
8481

8582
return new TransformOptions(
8683
injectableAnnotations: annotations,

0 commit comments

Comments
 (0)