portosaurus 2.0.0 → 2.0.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.
@@ -191,6 +191,12 @@ program
191
191
  dependencies: {
192
192
  portosaurus: `^${packageJson.version}`,
193
193
  },
194
+ overrides: {
195
+ webpack: "5.105.4",
196
+ },
197
+ resolutions: {
198
+ webpack: "5.105.4",
199
+ },
194
200
  };
195
201
  fs.writeFileSync(
196
202
  path.join(projectPath, "package.json"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portosaurus",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "portosaurus": "bin/portosaurus.mjs"
@@ -18,6 +18,13 @@ export function detectPackageManager(projectRoot) {
18
18
  if (fs.existsSync(path.join(projectRoot, "yarn.lock"))) return "yarn";
19
19
  if (fs.existsSync(path.join(projectRoot, "package-lock.json"))) return "npm";
20
20
 
21
+ if (process.env.npm_config_user_agent) {
22
+ if (process.env.npm_config_user_agent.includes("bun")) return "bun";
23
+ if (process.env.npm_config_user_agent.includes("pnpm")) return "pnpm";
24
+ if (process.env.npm_config_user_agent.includes("yarn")) return "yarn";
25
+ }
26
+ if (typeof process !== "undefined" && process.versions && process.versions.bun) return "bun";
27
+
21
28
  return "npm";
22
29
  }
23
30