bunchee 3.3.3 → 3.3.4
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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -753,9 +753,9 @@ function _resolveTsConfig() {
|
|
|
753
753
|
_resolveTsConfig = _async_to_generator$1(function*(cwd) {
|
|
754
754
|
let tsCompilerOptions = {};
|
|
755
755
|
let tsConfigPath;
|
|
756
|
-
const ts = resolveTypescript(cwd);
|
|
757
756
|
tsConfigPath = path.resolve(cwd, 'tsconfig.json');
|
|
758
757
|
if (yield fileExists(tsConfigPath)) {
|
|
758
|
+
const ts = resolveTypescript(cwd);
|
|
759
759
|
const basePath = tsConfigPath ? path.dirname(tsConfigPath) : cwd;
|
|
760
760
|
const tsconfigJSON = ts.readConfigFile(tsConfigPath, ts.sys.readFile).config;
|
|
761
761
|
tsCompilerOptions = ts.parseJsonConfigFileContent(tsconfigJSON, ts.sys, basePath).options;
|