diff --git a/tool/grind.dart b/tool/grind.dart index ea53f7699..545e5296d 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -28,9 +28,9 @@ void main(List args) { pkg.homebrewFormula.value = "sass.rb"; pkg.jsRequires.value = {"chokidar": "chokidar", "readline": "readline"}; pkg.jsModuleMainLibrary.value = "lib/src/node.dart"; - pkg.npmPackageJson.fn = () => - json.decode(File("package/package.json").readAsStringSync()) - as Map; + pkg.npmPackageJson.fn = () => json + .decode(File("package/package.json").readAsStringSync()) + .cast(); pkg.npmReadme.fn = () => _readAndResolveMarkdown("package/README.npm.md"); pkg.standaloneName.value = "dart-sass"; pkg.githubUser.fn = () => Platform.environment["GH_USER"]!;