@chatbotkit/cli 1.27.2 → 1.27.3

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.
@@ -34,10 +34,20 @@ function resolvePackageExport(packagePath, subpath) {
34
34
  importPath = exportEntry;
35
35
  }
36
36
  else if (exportEntry.import) {
37
- importPath = exportEntry.import;
37
+ if (typeof exportEntry.import === 'string') {
38
+ importPath = exportEntry.import;
39
+ }
40
+ else if (exportEntry.import.default) {
41
+ importPath = exportEntry.import.default;
42
+ }
38
43
  }
39
44
  else if (exportEntry.default) {
40
- importPath = exportEntry.default;
45
+ if (typeof exportEntry.default === 'string') {
46
+ importPath = exportEntry.default;
47
+ }
48
+ else if (exportEntry.default.default) {
49
+ importPath = exportEntry.default.default;
50
+ }
41
51
  }
42
52
  if (importPath) {
43
53
  const resolved = (0, path_1.join)(packagePath, importPath);
@@ -31,10 +31,20 @@ function resolvePackageExport(packagePath, subpath) {
31
31
  importPath = exportEntry;
32
32
  }
33
33
  else if (exportEntry.import) {
34
- importPath = exportEntry.import;
34
+ if (typeof exportEntry.import === 'string') {
35
+ importPath = exportEntry.import;
36
+ }
37
+ else if (exportEntry.import.default) {
38
+ importPath = exportEntry.import.default;
39
+ }
35
40
  }
36
41
  else if (exportEntry.default) {
37
- importPath = exportEntry.default;
42
+ if (typeof exportEntry.default === 'string') {
43
+ importPath = exportEntry.default;
44
+ }
45
+ else if (exportEntry.default.default) {
46
+ importPath = exportEntry.default.default;
47
+ }
38
48
  }
39
49
  if (importPath) {
40
50
  const resolved = join(packagePath, importPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chatbotkit/cli",
3
- "version": "1.27.2",
3
+ "version": "1.27.3",
4
4
  "description": "ChatBotKit command line tools",
5
5
  "license": "ISC",
6
6
  "engines": {