Skip to content

Commit 785f7c7

Browse files
committed
fix contentful-codegen
1 parent bb1fe9f commit 785f7c7

4 files changed

+16
-1
lines changed
File renamed without changes.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "JumboCode website for 2023",
55
"scripts": {
66
"prepare": "husky install",
7+
"postinstall": "patch-package",
78
"dev": "next",
89
"build": "next build",
910
"start": "next start",
@@ -51,6 +52,7 @@
5152
"eslint-plugin-react": "^7.32.2",
5253
"eslint-plugin-react-hooks": "^4.6.0",
5354
"husky": "^8.0.3",
55+
"patch-package": "^6.5.1",
5456
"sass": "^1.62.0",
5557
"typescript": "5.0.4",
5658
"webpack-bundle-analyzer": "^4.8.0"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/node_modules/contentful-typescript-codegen/dist/contentful-typescript-codegen.js b/node_modules/contentful-typescript-codegen/dist/contentful-typescript-codegen.js
2+
index aeb08f1..571334c 100755
3+
--- a/node_modules/contentful-typescript-codegen/dist/contentful-typescript-codegen.js
4+
+++ b/node_modules/contentful-typescript-codegen/dist/contentful-typescript-codegen.js
5+
@@ -444,7 +444,7 @@ function determineEnvironmentPath() {
6+
if (fs.existsSync(pathWithoutExtension + ".ts")) {
7+
return pathWithoutExtension + ".ts";
8+
}
9+
- return pathWithoutExtension + ".js";
10+
+ return pathWithoutExtension + ".cjs";
11+
}
12+
function getEnvironmentGetter() {
13+
var getEnvironmentPath = determineEnvironmentPath();

0 commit comments

Comments
 (0)