smartbundle 0.4.0-alpha.1 → 0.4.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.
@@ -47,7 +47,8 @@ async function buildTypes({
47
47
  files,
48
48
  outDir
49
49
  }) {
50
- const ts = await import("typescript");
50
+ const importedTs = await import("typescript");
51
+ const ts = importedTs.default ?? importedTs;
51
52
  const configPath = path__namespace.join(sourceDir, "tsconfig.json");
52
53
  const configFile = ts.readConfigFile(
53
54
  configPath,
@@ -5,7 +5,8 @@ async function buildTypes({
5
5
  files,
6
6
  outDir
7
7
  }) {
8
- const ts = await import("typescript");
8
+ const importedTs = await import("typescript");
9
+ const ts = importedTs.default ?? importedTs;
9
10
  const configPath = path.join(sourceDir, "tsconfig.json");
10
11
  const configFile = ts.readConfigFile(
11
12
  configPath,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "smartbundle",
3
3
  "type": "module",
4
- "version": "0.4.0-alpha.1",
4
+ "version": "0.4.1",
5
5
  "bin": "./src/bin.js",
6
6
  "types": "./src/run.d.ts",
7
7
  "module": "./src/run.js",