Skip to content

Commit 8d974a0

Browse files
Update to take into account Dart SDK 1.20
Dart SDK 1.20 no longer creates `packages` directories. Added comments to `pub` files section to differentiate what is needed for >= SDK 1.20 and what is additionally needed for older SDK versions.
1 parent 0f88fa7 commit 8d974a0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dart.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# See https://www.dartlang.org/tools/private-files.html
22

33
# Files and directories created by pub
4-
.buildlog
4+
5+
# SDK 1.20 and later (no longer creates packages directories)
56
.packages
6-
.project
77
.pub/
88
build/
9+
10+
# Older SDK versions
11+
# (Include if the minimum SDK version specified in pubsepc.yaml is earlier than 1.20)
12+
.project
13+
.buildlog
914
**/packages/
1015

16+
1117
# Files created by dart2js
1218
# (Most Dart developers will use pub build to compile Dart, use/modify these
1319
# rules if you intend to use dart2js directly

0 commit comments

Comments
 (0)