Skip to content

Commit 35ddfdb

Browse files
committed
fix: path join
1 parent f35dbfb commit 35ddfdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/type-generation/languages/dart.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path');
66

77
class Dart extends LanguageMeta {
88
getPackageName() {
9-
const pubspecPath = path.join(this.getCurrentDirectory(), 'pubspec.yaml');
9+
const pubspecPath = path.join(process.cwd(), 'pubspec.yaml');
1010
if (fs.existsSync(pubspecPath)) {
1111
const pubspecContent = fs.readFileSync(pubspecPath, 'utf8');
1212
const lines = pubspecContent.split('\n');

0 commit comments

Comments
 (0)