create-jwn-js 1.1.1 → 1.1.2
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/index.mjs +16 -10
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const fs = require('fs')
|
|
4
|
-
|
|
5
|
-
const
|
|
3
|
+
//const fs = require('fs');
|
|
4
|
+
import fs from 'node:fs';
|
|
5
|
+
//const path = require('path')
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
//const margv = require('margv')
|
|
8
|
+
import margv from "margv";
|
|
6
9
|
const argv = margv();
|
|
7
|
-
const prompts = require('prompts');
|
|
8
|
-
|
|
10
|
+
//const prompts = require('prompts');
|
|
11
|
+
import prompts from "prompts";
|
|
12
|
+
// const json5 = require('json5');
|
|
13
|
+
import json5 from "json5";
|
|
9
14
|
|
|
10
|
-
const {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} = require('kolorist')
|
|
15
|
+
// const {
|
|
16
|
+
// yellow,
|
|
17
|
+
// blue,
|
|
18
|
+
// red
|
|
19
|
+
// } = require('kolorist')
|
|
20
|
+
import {yellow, blue, red} from "kolorist";
|
|
15
21
|
const cwd = process.cwd()
|
|
16
22
|
const FRAMEWORKS = [
|
|
17
23
|
{
|