@modern-js/server-utils 3.11.2 → 3.12.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.
@@ -45,7 +45,7 @@ const validateAbsolutePaths = (filenames, messageFunc)=>{
45
45
  filenames.forEach((filename)=>validateAbsolutePath(filename, messageFunc(filename)));
46
46
  };
47
47
  const compile = async (appDirectory, modernConfig, compileOptions)=>{
48
- const { sourceDirs, distDir, tsconfigPath } = compileOptions;
48
+ const { sourceDirs, distDir } = compileOptions;
49
49
  validateAbsolutePaths(sourceDirs, (dir)=>`source dir ${dir} is not an absolute path.`);
50
50
  validateAbsolutePath(distDir, `dist dir ${distDir} is not an absolute path.`);
51
51
  const { compileByTs } = await import("../compilers/typescript/index.js");
@@ -38,7 +38,7 @@ class TypescriptLoader {
38
38
  });
39
39
  const ts = require(tsPath);
40
40
  return ts;
41
- } catch (error) {
41
+ } catch {
42
42
  throw new Error('TypeScript could not be found! Please, install "typescript" package.');
43
43
  }
44
44
  }
@@ -12,7 +12,7 @@ const validateAbsolutePaths = (filenames, messageFunc)=>{
12
12
  filenames.forEach((filename)=>validateAbsolutePath(filename, messageFunc(filename)));
13
13
  };
14
14
  const compile = async (appDirectory, modernConfig, compileOptions)=>{
15
- const { sourceDirs, distDir, tsconfigPath } = compileOptions;
15
+ const { sourceDirs, distDir } = compileOptions;
16
16
  validateAbsolutePaths(sourceDirs, (dir)=>`source dir ${dir} is not an absolute path.`);
17
17
  validateAbsolutePath(distDir, `dist dir ${distDir} is not an absolute path.`);
18
18
  const { compileByTs } = await import("../compilers/typescript/index.mjs");
@@ -9,7 +9,7 @@ class TypescriptLoader {
9
9
  });
10
10
  const ts = require(tsPath);
11
11
  return ts;
12
- } catch (error) {
12
+ } catch {
13
13
  throw new Error('TypeScript could not be found! Please, install "typescript" package.');
14
14
  }
15
15
  }
@@ -13,7 +13,7 @@ const validateAbsolutePaths = (filenames, messageFunc)=>{
13
13
  filenames.forEach((filename)=>validateAbsolutePath(filename, messageFunc(filename)));
14
14
  };
15
15
  const compile = async (appDirectory, modernConfig, compileOptions)=>{
16
- const { sourceDirs, distDir, tsconfigPath } = compileOptions;
16
+ const { sourceDirs, distDir } = compileOptions;
17
17
  validateAbsolutePaths(sourceDirs, (dir)=>`source dir ${dir} is not an absolute path.`);
18
18
  validateAbsolutePath(distDir, `dist dir ${distDir} is not an absolute path.`);
19
19
  const { compileByTs } = await import("../compilers/typescript/index.mjs");
@@ -11,7 +11,7 @@ class TypescriptLoader {
11
11
  });
12
12
  const ts = require(tsPath);
13
13
  return ts;
14
- } catch (error) {
14
+ } catch {
15
15
  throw new Error('TypeScript could not be found! Please, install "typescript" package.');
16
16
  }
17
17
  }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.11.2",
18
+ "version": "3.12.0",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "exports": {
@@ -38,14 +38,14 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@swc/helpers": "^0.5.17",
41
- "@modern-js/utils": "3.11.2"
41
+ "@modern-js/utils": "3.12.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^20",
45
45
  "typescript": "^5",
46
- "@modern-js/server-core": "3.11.2",
47
- "@modern-js/rslib": "3.11.2",
48
- "@scripts/rstest-config": "2.66.6"
46
+ "@modern-js/server-core": "3.12.0",
47
+ "@modern-js/rslib": "3.12.0",
48
+ "@scripts/rstest-config": "2.66.8"
49
49
  },
50
50
  "sideEffects": false,
51
51
  "publishConfig": {