@robgietema/generator-nick 0.0.17 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import path from 'path';
2
2
  import Generator from 'yeoman-generator';
3
3
  import updateNotifier from 'update-notifier';
4
+ import packageJson from '../../package.json' assert { type: 'json' };
4
5
 
5
6
  const currentDir = path.basename(process.cwd());
6
7
 
@@ -21,9 +22,8 @@ export default class extends Generator {
21
22
  }
22
23
 
23
24
  async prompting() {
24
- const pkg = await import('../../package.json');
25
25
  const notifier = updateNotifier({
26
- pkg,
26
+ pkg: packageJson,
27
27
  shouldNotifyInNpmScript: true,
28
28
  updateCheckInterval: 0,
29
29
  });
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  }
10
10
  ],
11
11
  "license": "MIT",
12
- "version": "0.0.17",
12
+ "version": "0.0.18",
13
13
  "repository": {
14
14
  "type": "git",
15
15
  "url": "git@github.com:robgietema/nick.git"