Use the dart cli in tasks (#27)

This commit is contained in:
Christophe Coevoet 2021-01-13 22:44:41 +01:00 committed by GitHub
parent 89682335d9
commit 8128431b18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 6 deletions

View File

@ -5,9 +5,7 @@ branches:
# Semantic version tags and legacy branches of the form "1.2.x".
- "/^\\d+\\.\\d+\\.(\\d+([+-].*)?|x)$/"
# TODO(nweiz): Make this stable when Dart 2.10.0 launches with a fix for
# dart-lang/pub#2545.
dart: 2.8.1
dart: stable
cache:
directories:

View File

@ -5,7 +5,7 @@ author: Sass Team
homepage: https://github.com/sass/dart-sass-embedded
environment:
sdk: '>=2.4.0 <3.0.0'
sdk: '>=2.10.0 <3.0.0'
executables:
dart-sass-embedded: dart_sass_embedded

View File

@ -24,11 +24,11 @@ protobuf() async {
if (Platform.isWindows) {
File('build/protoc-gen-dart.bat').writeAsStringSync('''
@echo off
pub run protoc_plugin %*
dart pub run protoc_plugin %*
''');
} else {
File('build/protoc-gen-dart')
.writeAsStringSync('pub run protoc_plugin "\$@"');
.writeAsStringSync('dart pub run protoc_plugin "\$@"');
run('chmod', arguments: ['a+x', 'build/protoc-gen-dart']);
}