@posthog/core 1.14.1 → 1.15.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/process/utils.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,qBAAqB,GAAI,KAAK,MAAM,KAAG,MAAM,EAKzD,CAAA;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;IACP,IAAI,EAAE,MAAM,CAAA;IAEZ,GAAG,EAAE,MAAM,CAAA;CACZ,GACA,MAAM,CAWR"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/process/utils.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,qBAAqB,GAAI,KAAK,MAAM,KAAG,MAAM,EAQzD,CAAA;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE;IACP,IAAI,EAAE,MAAM,CAAA;IAEZ,GAAG,EAAE,MAAM,CAAA;CACZ,GACA,MAAM,CAWR"}
@@ -52,7 +52,11 @@ const getLocalPaths = (startPath)=>{
52
52
  return paths;
53
53
  };
54
54
  const buildLocalBinaryPaths = (cwd)=>{
55
- const localPaths = getLocalPaths(external_node_path_default().resolve(cwd)).map((localPath)=>external_node_path_default().join(localPath, 'node_modules/.bin'));
55
+ const possibleLocations = [
56
+ 'node_modules/.bin',
57
+ 'node_modules/.pnpm/node_modules/.bin'
58
+ ];
59
+ const localPaths = getLocalPaths(external_node_path_default().resolve(cwd)).flatMap((localPath)=>possibleLocations.map((location)=>external_node_path_default().join(localPath, location)));
56
60
  return localPaths;
57
61
  };
58
62
  function resolveBinaryPath(binName, options) {
@@ -12,7 +12,11 @@ const getLocalPaths = (startPath)=>{
12
12
  return paths;
13
13
  };
14
14
  const buildLocalBinaryPaths = (cwd)=>{
15
- const localPaths = getLocalPaths(node_path.resolve(cwd)).map((localPath)=>node_path.join(localPath, 'node_modules/.bin'));
15
+ const possibleLocations = [
16
+ 'node_modules/.bin',
17
+ 'node_modules/.pnpm/node_modules/.bin'
18
+ ];
19
+ const localPaths = getLocalPaths(node_path.resolve(cwd)).flatMap((localPath)=>possibleLocations.map((location)=>node_path.join(localPath, location)));
16
20
  return localPaths;
17
21
  };
18
22
  function resolveBinaryPath(binName, options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posthog/core",
3
- "version": "1.14.1",
3
+ "version": "1.15.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,9 +21,12 @@ const getLocalPaths = (startPath: string): string[] => {
21
21
  }
22
22
 
23
23
  export const buildLocalBinaryPaths = (cwd: string): string[] => {
24
- const localPaths = getLocalPaths(path.resolve(cwd)).map((localPath: string) =>
25
- path.join(localPath, 'node_modules/.bin')
24
+ const possibleLocations = ['node_modules/.bin', 'node_modules/.pnpm/node_modules/.bin']
25
+
26
+ const localPaths = getLocalPaths(path.resolve(cwd)).flatMap((localPath: string) =>
27
+ possibleLocations.map((location) => path.join(localPath, location))
26
28
  )
29
+
27
30
  return localPaths
28
31
  }
29
32