[dartdev] tweak the pubspec file generation for 'dart create'

Change-Id: I769ef258b9875aeeb23bc9aeca396bc9594197d4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232980
Auto-Submit: Devon Carew <devoncarew@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Devon Carew 2022-02-14 21:23:59 +00:00 committed by Commit Bot
parent 1e799e1580
commit bd5da72538
6 changed files with 6 additions and 8 deletions

View file

@ -4,9 +4,7 @@
import '../sdk.dart';
String get sdkConstraint => '''
sdk: '>=${sdk.version} <3.0.0'
''';
String get sdkConstraint => "sdk: '>=${sdk.version} <3.0.0'";
const String gitignore = '''
# Files and directories created by pub.

View file

@ -38,7 +38,7 @@ version: 1.0.0
# homepage: https://www.example.com
environment:
${common.sdkConstraint}
${common.sdkConstraint}
# dependencies:
# path: ^1.8.0

View file

@ -36,7 +36,7 @@ version: 1.0.0
# homepage: https://www.example.com
environment:
${common.sdkConstraint}
${common.sdkConstraint}
# dependencies:
# path: ^1.8.0

View file

@ -55,7 +55,7 @@ version: 1.0.0
# homepage: https://www.example.com
environment:
${common.sdkConstraint}
${common.sdkConstraint}
# dependencies:
# path: ^1.8.0

View file

@ -42,7 +42,7 @@ version: 1.0.0
# homepage: https://www.example.com
environment:
${common.sdkConstraint}
${common.sdkConstraint}
dependencies:
args: ^2.0.0

View file

@ -42,7 +42,7 @@ version: 1.0.0
# homepage: https://www.example.com
environment:
${common.sdkConstraint}
${common.sdkConstraint}
# dependencies:
# path: ^1.7.0