smartbundle 0.3.0 → 0.3.2

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.
@@ -49,7 +49,13 @@ async function buildTypes({
49
49
  }) {
50
50
  const ts = await import("typescript");
51
51
  const configPath = path__namespace.join(sourceDir, "tsconfig.json");
52
- const configFile = ts.readConfigFile(configPath, ts.sys.readFile);
52
+ const configFile = ts.readConfigFile(
53
+ configPath,
54
+ (path2) => (
55
+ // https://github.com/XaveScor/bobrik/issues/22
56
+ fs__namespace.readFileSync(path2, "utf-8")
57
+ )
58
+ );
53
59
  const parsedCommandLine = ts.parseJsonConfigFileContent(
54
60
  configFile.config,
55
61
  ts.sys,
@@ -62,7 +68,9 @@ async function buildTypes({
62
68
  strictFunctionTypes: false,
63
69
  strictPropertyInitialization: false,
64
70
  skipLibCheck: true,
65
- skipDefaultLibCheck: true
71
+ skipDefaultLibCheck: true,
72
+ // https://github.com/XaveScor/bobrik/issues/22#issuecomment-2308552352
73
+ noEmit: false
66
74
  },
67
75
  configPath
68
76
  );
@@ -7,7 +7,13 @@ async function buildTypes({
7
7
  }) {
8
8
  const ts = await import("typescript");
9
9
  const configPath = path.join(sourceDir, "tsconfig.json");
10
- const configFile = ts.readConfigFile(configPath, ts.sys.readFile);
10
+ const configFile = ts.readConfigFile(
11
+ configPath,
12
+ (path2) => (
13
+ // https://github.com/XaveScor/bobrik/issues/22
14
+ fs.readFileSync(path2, "utf-8")
15
+ )
16
+ );
11
17
  const parsedCommandLine = ts.parseJsonConfigFileContent(
12
18
  configFile.config,
13
19
  ts.sys,
@@ -20,7 +26,9 @@ async function buildTypes({
20
26
  strictFunctionTypes: false,
21
27
  strictPropertyInitialization: false,
22
28
  skipLibCheck: true,
23
- skipDefaultLibCheck: true
29
+ skipDefaultLibCheck: true,
30
+ // https://github.com/XaveScor/bobrik/issues/22#issuecomment-2308552352
31
+ noEmit: false
24
32
  },
25
33
  configPath
26
34
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "smartbundle",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "bin": "./src/bin.js",
6
6
  "types": "./src/run.d.ts",
7
7
  "module": "./src/run.js",