ts-proto 1.166.2 → 1.166.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.
- package/build/utils.js +2 -2
- package/package.json +1 -1
package/build/utils.js
CHANGED
|
@@ -22,7 +22,7 @@ function generateIndexFiles(files, options) {
|
|
|
22
22
|
if (!(part in branch.leaves)) {
|
|
23
23
|
const prePkgParts = pkgParts.slice(0, i + 1);
|
|
24
24
|
const index = `index.${prePkgParts.join(".")}.ts`;
|
|
25
|
-
branch.chunks.push((0, ts_poet_1.code) `export * as ${part} from "./${path.basename(index, ".ts")}";`);
|
|
25
|
+
branch.chunks.push((0, ts_poet_1.code) `export * as ${part} from "./${path.basename(index, ".ts") + options.importSuffix}";`);
|
|
26
26
|
branch.leaves[part] = {
|
|
27
27
|
index,
|
|
28
28
|
leaves: {},
|
|
@@ -31,7 +31,7 @@ function generateIndexFiles(files, options) {
|
|
|
31
31
|
}
|
|
32
32
|
return branch.leaves[part];
|
|
33
33
|
}, packageTree);
|
|
34
|
-
branch.chunks.push((0, ts_poet_1.code) `export * from "./${moduleName}";`);
|
|
34
|
+
branch.chunks.push((0, ts_poet_1.code) `export * from "./${moduleName + options.importSuffix}";`);
|
|
35
35
|
}
|
|
36
36
|
const indexFiles = [];
|
|
37
37
|
let branches = [packageTree];
|