socket-function 0.161.0 → 0.162.0
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/generateIndexDts.js +2 -2
- package/index.d.ts +0 -5598
- package/package.json +1 -1
package/generateIndexDts.js
CHANGED
|
@@ -26,11 +26,11 @@ function generateIndexDts() {
|
|
|
26
26
|
|
|
27
27
|
const modules = dtsFiles
|
|
28
28
|
.filter(filePath => {
|
|
29
|
-
// Exclude SocketFunction.d.ts from being wrapped in a module declaration
|
|
29
|
+
// Exclude SocketFunction.d.ts and index.d.ts from being wrapped in a module declaration
|
|
30
30
|
const relativePath = path.relative(renderUtilsPath, filePath);
|
|
31
31
|
const withoutExt = relativePath.replace(/\.d\.ts$/, "");
|
|
32
32
|
const modulePath = "socket-function/" + withoutExt.replace(/\\/g, "/");
|
|
33
|
-
return modulePath !== "socket-function/SocketFunction";
|
|
33
|
+
return modulePath !== "socket-function/SocketFunction" && modulePath !== "socket-function/index";
|
|
34
34
|
})
|
|
35
35
|
.map(filePath => {
|
|
36
36
|
const relativePath = path.relative(renderUtilsPath, filePath);
|