mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-26 20:24:42 +01:00
Fix an unmodifiable map modification in the sass_api deploy (#1418)
This commit is contained in:
parent
2a0b6d05ef
commit
667e9f40e6
@ -1,3 +1,7 @@
|
||||
## 1.37.3
|
||||
|
||||
* No user-visible changes.
|
||||
|
||||
## 1.37.2
|
||||
|
||||
* No user-visible changes.
|
||||
|
@ -10,7 +10,7 @@ environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
||||
dependencies:
|
||||
sass: 1.37.2
|
||||
sass: 1.37.3
|
||||
|
||||
dependency_overrides:
|
||||
sass: {path: ../..}
|
||||
|
@ -1,5 +1,5 @@
|
||||
name: sass
|
||||
version: 1.37.2
|
||||
version: 1.37.3
|
||||
description: A Sass implementation in Dart.
|
||||
homepage: https://github.com/sass/dart-sass
|
||||
|
||||
|
@ -51,13 +51,13 @@ Future<void> deploySubPackages() async {
|
||||
var client = http.Client();
|
||||
for (var package in Directory("pkg").listSync().map((dir) => dir.path)) {
|
||||
var pubspecPath = "$package/pubspec.yaml";
|
||||
var pubspec = Pubspec.parse(
|
||||
File(pubspecPath).readAsStringSync(),
|
||||
var pubspec = Pubspec.parse(File(pubspecPath).readAsStringSync(),
|
||||
sourceUrl: p.toUri(pubspecPath));
|
||||
|
||||
// Remove the dependency override on `sass`, because otherwise it will block
|
||||
// publishing.
|
||||
var pubspecYaml = loadYaml(File(pubspecPath).readAsStringSync());
|
||||
var pubspecYaml = Map<dynamic, dynamic>.of(
|
||||
loadYaml(File(pubspecPath).readAsStringSync()) as YamlMap);
|
||||
pubspecYaml.remove("dependency_overrides");
|
||||
File(pubspecPath).writeAsStringSync(json.encode(pubspecYaml));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user