Skip to content

Commit

Permalink
v 1.1.1+3 fix package config path for workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
alextekartik committed Dec 22, 2024
1 parent f250a4c commit 213e1e9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dev_build/lib/src/io/run_ci_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class PubIoPackage {
/// Ok when ready
late Map<String, Object?> pubspecYaml;

/// Handle work path
late String resolvedWorkPath;
/// True for workspace
bool get isWorkspace => pubspecYamlIsWorkspaceRoot(pubspecYaml);

/// True for flutter project
late final bool isFlutter;
Expand Down
2 changes: 1 addition & 1 deletion dev_build/lib/src/package/package_io_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Future<String?> pathGetResolvedPackagePath(String path, String package,
/// Pubspec overrides path
Future<String> pathGetPackageConfigJsonPath(String packageDir) async {
var workPath = await pathGetResolvedWorkPath(packageDir);
return join(workPath, pathGetDartToolDir(packageDir), 'package_config.json');
return join(pathGetDartToolDir(workPath), 'package_config.json');
}

/// Read package_config.json file (io only).
Expand Down
2 changes: 1 addition & 1 deletion dev_build/lib/src/version.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:pub_semver/pub_semver.dart';

/// Package version text
const packageVersionText = '1.1.1+2';
const packageVersionText = '1.1.1+3';

/// Package version
final packageVersion = Version.parse(packageVersionText);
2 changes: 1 addition & 1 deletion dev_build/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dev_build
version: 1.1.1+2
version: 1.1.1+3
description: Development utilities for dart and flutter packages. CI and build helpers.
repository: https://github.com/tekartik/dev_test.dart/tree/master/dev_build

Expand Down

0 comments on commit 213e1e9

Please sign in to comment.