@idomatic/create 1.0.9 → 1.1.1

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 CHANGED
@@ -31,9 +31,9 @@ if (res.installParsers) {
31
31
  const parser =
32
32
  framework === "js" ? "@idomatic/parser-js" : "@idomatic/parser-html";
33
33
  const installParserCmd = {
34
- npm: `npm install ${parser}`,
35
- yarn: `yarn add ${parser}`,
36
- bun: `bun add ${parser}`,
34
+ npm: `npm install ${parser} --save-dev`,
35
+ yarn: `yarn add ${parser} --dev`,
36
+ bun: `bun add -d ${parser}`,
37
37
  }[pkg];
38
38
 
39
39
  console.log(`📦 Installing ${parser} with ${pkg}...`);
@@ -42,9 +42,9 @@ if (res.installParsers) {
42
42
 
43
43
  // Install core package (always install it)
44
44
  const installCoreCmd = {
45
- npm: `npm install @idomatic/core`,
46
- yarn: `yarn add @idomatic/core`,
47
- bun: `bun add @idomatic/core`,
45
+ npm: `npm install @idomatic/core --save-dev`,
46
+ yarn: `yarn add @idomatic/core --dev`,
47
+ bun: `bun add -d @idomatic/core`,
48
48
  }[pkg];
49
49
 
50
50
  console.log(`📦 Installing @idomatic/core with ${pkg}...`);
package/lib/initConfig.js CHANGED
@@ -19,7 +19,7 @@ async function initConfig() {
19
19
  const config = defaultConfigs[framework];
20
20
 
21
21
  // Write the config to .idomaticsrc.json in the current working directory
22
- const configFilePath = path.join(process.cwd(), ".idomaticsrc.json");
22
+ const configFilePath = path.join(process.cwd(), ".idomatic.config.json");
23
23
  fs.writeFileSync(configFilePath, JSON.stringify(config, null, 2));
24
24
 
25
25
  console.log(`Configuration file created at ${configFilePath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idomatic/create",
3
- "version": "1.0.9",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "@idomatic/create": "./index.js"