@idomatic/create 1.0.6 → 1.0.8

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
@@ -19,19 +19,6 @@ const res = await prompts([
19
19
  },
20
20
  ]);
21
21
 
22
- // Create .idsrc.json
23
- const config = {
24
- prefix: "auto-id-",
25
- skipTags: [],
26
- extensions:
27
- res.framework === "js"
28
- ? ["js", "jsx", "ts", "tsx"]
29
- : ["html", "vue", "ng.html"],
30
- };
31
-
32
- writeFileSync(".idsrc.json", JSON.stringify(config, null, 2));
33
- console.log("✅ .idsrc.json created");
34
-
35
22
  // Detect package manager
36
23
  const agent = process.env.npm_config_user_agent || "";
37
24
  let pkg = "npm";
package/lib/initConfig.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
3
  import prompts from "prompts";
4
- import defaultConfigs from "./defaultConfigs.js";
4
+ import defaultConfigs from "../helpers/index.js";
5
5
 
6
6
  async function initConfig() {
7
7
  const { framework } = await prompts([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idomatic/create",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "@idomatic/create": "./index.js"