generator-bitloops 0.3.17 → 0.3.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.
- package/cli.mjs +2 -2
- package/package.json +1 -1
package/cli.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { createEnv } from 'yeoman-environment';
|
|
4
|
-
import npm from './package.json'
|
|
4
|
+
import npm from './package.json' with { type: 'json' };
|
|
5
5
|
|
|
6
6
|
console.log(`generator-bitloops v${npm.version}`);
|
|
7
7
|
|
|
@@ -19,7 +19,7 @@ const env = createEnv();
|
|
|
19
19
|
(async () => {
|
|
20
20
|
// Dynamically import the subgenerator path
|
|
21
21
|
const generatorPath = await import(`./${subgenerator}/index.js`);
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
// Register your generator
|
|
24
24
|
env.register(generatorPath.default, `bitloops:${subgenerator}`);
|
|
25
25
|
|