Skip to content

Commit

Permalink
#354: dirname migration & endings
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Midgley committed May 8, 2023
1 parent f889c27 commit d712d95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ import File from './file.js';
import inquirer from 'inquirer';
import semver from 'semver';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));

/**
* Central class for loading and validating properties from config and auth
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/util/init.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import { Util } from './util.js';
import inquirer from 'inquirer';
import path from 'node:path';
import semver from 'semver';
import { fileURLToPath } from 'node:url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));

/**
* CLI helper class
Expand Down
2 changes: 2 additions & 0 deletions lib/util/init.npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import File from './file.js';
import path from 'node:path';
import { Util } from './util.js';
import semver from 'semver';
import { fileURLToPath } from 'node:url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));

/**
* CLI helper class
Expand Down

0 comments on commit d712d95

Please sign in to comment.