@idomatic/create 1.1.12 → 1.1.13

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
@@ -21,13 +21,7 @@ const res = await prompts([
21
21
  ]);
22
22
 
23
23
  // Detect package manager
24
- const agent = process.env.npm_config_user_agent || "";
25
- let pkg = "npm";
26
- if (agent?.includes("yarn")) pkg = "yarn";
27
- else if (agent?.includes("pnpm")) pkg = "pnpm";
28
- else if (agent?.includes("bun")) pkg = "bun";
29
- else if (agent?.includes("npm")) pkg = "npm";
30
- else pkg = detectPackageManagerFallback();
24
+ const pkg = detectPackageManagerFallback();
31
25
 
32
26
  // Install parser if opted-in
33
27
  if (res.installParsers) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idomatic/create",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "@idomatic/create": "./index.js"
package/utils/index.js CHANGED
@@ -9,5 +9,5 @@ export function detectPackageManagerFallback() {
9
9
  if (existsSync(join(root, "pnpm-lock.yaml"))) return "pnpm";
10
10
  if (existsSync(join(root, "package-lock.json"))) return "npm";
11
11
 
12
- return "npm"; // default fallback
12
+ return "npm";
13
13
  }