@posthog/nextjs-config 1.2.1 → 1.3.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/dist/utils.js +3 -2
- package/dist/utils.mjs +3 -2
- package/package.json +3 -3
package/dist/utils.js
CHANGED
|
@@ -54,8 +54,8 @@ function resolveBinaryPath(envPath, cwd, binName) {
|
|
|
54
54
|
const localLocations = buildLocalBinaryPaths(cwd);
|
|
55
55
|
const directories = [
|
|
56
56
|
...new Set([
|
|
57
|
-
...
|
|
58
|
-
...
|
|
57
|
+
...localLocations,
|
|
58
|
+
...envLocations
|
|
59
59
|
])
|
|
60
60
|
];
|
|
61
61
|
for (const directory of directories){
|
|
@@ -113,6 +113,7 @@ async function callPosthogCli(args, env, verbose) {
|
|
|
113
113
|
const child = (0, external_child_process_namespaceObject.spawn)(binaryLocation, [
|
|
114
114
|
...args
|
|
115
115
|
], {
|
|
116
|
+
shell: true,
|
|
116
117
|
stdio: verbose ? 'inherit' : 'ignore',
|
|
117
118
|
env,
|
|
118
119
|
cwd: process.cwd()
|
package/dist/utils.mjs
CHANGED
|
@@ -13,8 +13,8 @@ function resolveBinaryPath(envPath, cwd, binName) {
|
|
|
13
13
|
const localLocations = buildLocalBinaryPaths(cwd);
|
|
14
14
|
const directories = [
|
|
15
15
|
...new Set([
|
|
16
|
-
...
|
|
17
|
-
...
|
|
16
|
+
...localLocations,
|
|
17
|
+
...envLocations
|
|
18
18
|
])
|
|
19
19
|
];
|
|
20
20
|
for (const directory of directories){
|
|
@@ -72,6 +72,7 @@ async function callPosthogCli(args, env, verbose) {
|
|
|
72
72
|
const child = spawn(binaryLocation, [
|
|
73
73
|
...args
|
|
74
74
|
], {
|
|
75
|
+
shell: true,
|
|
75
76
|
stdio: verbose ? 'inherit' : 'ignore',
|
|
76
77
|
env,
|
|
77
78
|
cwd: process.cwd()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posthog/nextjs-config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "NextJS configuration helper for Posthog 🦔",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": ">=
|
|
31
|
+
"node": ">=20"
|
|
32
32
|
},
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@posthog/cli": "^0.4.
|
|
35
|
+
"@posthog/cli": "^0.4.7",
|
|
36
36
|
"semver": "^7.7.2"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|