@serwist/next 9.0.6 → 9.0.7

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/index.js CHANGED
@@ -45,8 +45,7 @@ const loadTSConfig = (baseDir, relativeTSConfigPath)=>{
45
45
  if (!tsConfigPath) {
46
46
  return undefined;
47
47
  }
48
- const tsConfigFile = JSON.parse(fs.readFileSync(tsConfigPath, "utf-8"));
49
- return tsConfigFile;
48
+ return JSON.parse(fs.readFileSync(tsConfigPath, "utf-8"));
50
49
  } catch {
51
50
  return undefined;
52
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"load-tsconfig.d.ts","sourceRoot":"","sources":["../../src/lib/load-tsconfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9D,eAAO,MAAM,YAAY,YAAa,MAAM,wBAAwB,MAAM,GAAG,SAAS,KAAG,YAAY,GAAG,SAmBvG,CAAC"}
1
+ {"version":3,"file":"load-tsconfig.d.ts","sourceRoot":"","sources":["../../src/lib/load-tsconfig.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,IAAI,YAAY,EAAE,MAAM,WAAW,CAAC;AAI9D,eAAO,MAAM,YAAY,YAAa,MAAM,wBAAwB,MAAM,GAAG,SAAS,KAAG,YAAY,GAAG,SAevG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serwist/next",
3
- "version": "9.0.6",
3
+ "version": "9.0.7",
4
4
  "type": "module",
5
5
  "description": "A module that integrates Serwist into your Next.js application.",
6
6
  "files": [
@@ -65,10 +65,10 @@
65
65
  "chalk": "5.3.0",
66
66
  "glob": "10.4.5",
67
67
  "zod": "3.23.8",
68
- "@serwist/build": "9.0.6",
69
- "@serwist/webpack-plugin": "9.0.6",
70
- "@serwist/window": "9.0.6",
71
- "serwist": "9.0.6"
68
+ "@serwist/build": "9.0.7",
69
+ "@serwist/webpack-plugin": "9.0.7",
70
+ "@serwist/window": "9.0.7",
71
+ "serwist": "9.0.7"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@types/node": "22.5.0",
@@ -79,8 +79,8 @@
79
79
  "type-fest": "4.25.0",
80
80
  "typescript": "5.5.4",
81
81
  "webpack": "5.93.0",
82
- "@serwist/configs": "9.0.6",
83
- "@serwist/utils": "9.0.6"
82
+ "@serwist/configs": "9.0.7",
83
+ "@serwist/utils": "9.0.7"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "next": ">=14.0.0",
@@ -12,15 +12,11 @@ export const loadTSConfig = (baseDir: string, relativeTSConfigPath: string | und
12
12
  const resolvedPath = path.join(baseDir, filePath);
13
13
  return fs.existsSync(resolvedPath) ? resolvedPath : undefined;
14
14
  });
15
-
16
15
  if (!tsConfigPath) {
17
16
  return undefined;
18
17
  }
19
-
20
18
  // Read tsconfig.json file
21
- const tsConfigFile = JSON.parse(fs.readFileSync(tsConfigPath, "utf-8"));
22
-
23
- return tsConfigFile;
19
+ return JSON.parse(fs.readFileSync(tsConfigPath, "utf-8"));
24
20
  } catch {
25
21
  return undefined;
26
22
  }