We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f35dbfb commit 35ddfdbCopy full SHA for 35ddfdb
templates/cli/lib/type-generation/languages/dart.js.twig
@@ -6,7 +6,7 @@ const path = require('path');
6
7
class Dart extends LanguageMeta {
8
getPackageName() {
9
- const pubspecPath = path.join(this.getCurrentDirectory(), 'pubspec.yaml');
+ const pubspecPath = path.join(process.cwd(), 'pubspec.yaml');
10
if (fs.existsSync(pubspecPath)) {
11
const pubspecContent = fs.readFileSync(pubspecPath, 'utf8');
12
const lines = pubspecContent.split('\n');
0 commit comments