storybooker 0.2.0 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # storybooker
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ef486ee: Add new Azure Cosmos DB adapter and CJS exports.
8
+
3
9
  ## 0.2.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import { tmpdir } from "node:os";
14
14
 
15
15
  //#region package.json
16
16
  var name = "storybooker";
17
- var version = "0.1.1";
17
+ var version = "0.2.0";
18
18
 
19
19
  //#endregion
20
20
  //#region src/utils/auth-utils.ts
@@ -38,10 +38,11 @@ function detectPackageManager(startDir = process.cwd(), maxDepth = 5) {
38
38
  let currentDir = startDir;
39
39
  let depth = 0;
40
40
  while (depth < maxDepth) {
41
+ if (fs$1.existsSync(path$1.join(currentDir, `package-lock.json`))) return "npm";
41
42
  if (fs$1.existsSync(path$1.join(currentDir, `yarn.lock`))) return "yarn";
42
43
  if (fs$1.existsSync(path$1.join(currentDir, `pnpm-lock.yaml`))) return "pnpm";
43
- if (fs$1.existsSync(path$1.join(currentDir, `package-lock.json`))) return "npm";
44
44
  if (fs$1.existsSync(path$1.join(currentDir, `bun.lock`))) return "bun";
45
+ if (fs$1.existsSync(path$1.join(currentDir, `deno.lock`))) return "deno";
45
46
  const parentDir = path$1.dirname(currentDir);
46
47
  if (parentDir === currentDir) break;
47
48
  currentDir = parentDir;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storybooker",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "bin": "./dist/index.js",
6
6
  "description": "Storybooker CLI for uploading builds and files.",
@@ -1,7 +1,7 @@
1
1
  import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
3
 
4
- export type PkgManager = "npm" | "yarn" | "pnpm" | "bun";
4
+ export type PkgManager = "npm" | "yarn" | "pnpm" | "bun" | "deno";
5
5
  export function detectPackageManager(
6
6
  startDir: string = process.cwd(),
7
7
  maxDepth = 5,
@@ -10,18 +10,21 @@ export function detectPackageManager(
10
10
  let depth = 0;
11
11
 
12
12
  while (depth < maxDepth) {
13
+ if (fs.existsSync(path.join(currentDir, `package-lock.json`))) {
14
+ return "npm";
15
+ }
13
16
  if (fs.existsSync(path.join(currentDir, `yarn.lock`))) {
14
17
  return "yarn";
15
18
  }
16
19
  if (fs.existsSync(path.join(currentDir, `pnpm-lock.yaml`))) {
17
20
  return "pnpm";
18
21
  }
19
- if (fs.existsSync(path.join(currentDir, `package-lock.json`))) {
20
- return "npm";
21
- }
22
22
  if (fs.existsSync(path.join(currentDir, `bun.lock`))) {
23
23
  return "bun";
24
24
  }
25
+ if (fs.existsSync(path.join(currentDir, `deno.lock`))) {
26
+ return "deno";
27
+ }
25
28
 
26
29
  const parentDir = path.dirname(currentDir);
27
30
  if (parentDir === currentDir) {