@idomatic/create 1.0.8 → 1.0.9
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.js +3 -2
- package/lib/initConfig.js +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -6,7 +6,8 @@ import initConfig from "./lib/initConfig.js";
|
|
|
6
6
|
|
|
7
7
|
console.log("✨ Welcome to idomatic setup!");
|
|
8
8
|
|
|
9
|
-
await initConfig();
|
|
9
|
+
const framework = await initConfig();
|
|
10
|
+
console.log(framework);
|
|
10
11
|
|
|
11
12
|
const res = await prompts([
|
|
12
13
|
{
|
|
@@ -28,7 +29,7 @@ else if (agent.includes("bun")) pkg = "bun";
|
|
|
28
29
|
// Install parser if opted-in
|
|
29
30
|
if (res.installParsers) {
|
|
30
31
|
const parser =
|
|
31
|
-
|
|
32
|
+
framework === "js" ? "@idomatic/parser-js" : "@idomatic/parser-html";
|
|
32
33
|
const installParserCmd = {
|
|
33
34
|
npm: `npm install ${parser}`,
|
|
34
35
|
yarn: `yarn add ${parser}`,
|
package/lib/initConfig.js
CHANGED