diff --git a/packages/client-common/index.d.ts b/packages/client-common/index.d.ts new file mode 100644 index 000000000..28986bfc5 --- /dev/null +++ b/packages/client-common/index.d.ts @@ -0,0 +1 @@ +export * from './dist/common'; diff --git a/packages/client-common/index.js b/packages/client-common/index.js new file mode 100644 index 000000000..4c570e1f7 --- /dev/null +++ b/packages/client-common/index.js @@ -0,0 +1 @@ +module.exports = require('./dist/common.cjs'); diff --git a/packages/client-common/package.json b/packages/client-common/package.json index 15829419e..37217d54c 100644 --- a/packages/client-common/package.json +++ b/packages/client-common/package.json @@ -11,8 +11,8 @@ "type": "module", "files": [ "dist", - "src", - "index.ts" + "index.js", + "index.d.ts" ], "exports": { ".": { diff --git a/packages/logger-console/index.d.ts b/packages/logger-console/index.d.ts new file mode 100644 index 000000000..066d2099a --- /dev/null +++ b/packages/logger-console/index.d.ts @@ -0,0 +1 @@ +export * from './dist/logger'; diff --git a/packages/logger-console/index.js b/packages/logger-console/index.js new file mode 100644 index 000000000..9b6252a52 --- /dev/null +++ b/packages/logger-console/index.js @@ -0,0 +1 @@ +module.exports = require('./dist/logger.cjs'); diff --git a/packages/logger-console/package.json b/packages/logger-console/package.json index 28de8069e..249c2dc1f 100644 --- a/packages/logger-console/package.json +++ b/packages/logger-console/package.json @@ -11,8 +11,8 @@ "type": "module", "files": [ "dist", - "src", - "index.ts" + "index.js", + "index.d.ts" ], "exports": { ".": { diff --git a/packages/requester-browser-xhr/index.d.ts b/packages/requester-browser-xhr/index.d.ts new file mode 100644 index 000000000..518b9831f --- /dev/null +++ b/packages/requester-browser-xhr/index.d.ts @@ -0,0 +1 @@ +export * from './dist/requester.xhr'; diff --git a/packages/requester-browser-xhr/index.js b/packages/requester-browser-xhr/index.js new file mode 100644 index 000000000..c92f673cb --- /dev/null +++ b/packages/requester-browser-xhr/index.js @@ -0,0 +1 @@ +module.exports = require('./dist/requester.xhr.js'); diff --git a/packages/requester-browser-xhr/package.json b/packages/requester-browser-xhr/package.json index 7ec0129c3..e24fc5e5f 100644 --- a/packages/requester-browser-xhr/package.json +++ b/packages/requester-browser-xhr/package.json @@ -21,8 +21,8 @@ "react-native": "./dist/requester.xhr.js", "files": [ "dist", - "src", - "index.ts" + "index.d.ts", + "index.js" ], "scripts": { "build": "yarn clean && yarn tsup", diff --git a/packages/requester-fetch/index.d.ts b/packages/requester-fetch/index.d.ts new file mode 100644 index 000000000..d4b08a1a7 --- /dev/null +++ b/packages/requester-fetch/index.d.ts @@ -0,0 +1 @@ +export * from './dist/requester.fetch.node'; diff --git a/packages/requester-fetch/index.js b/packages/requester-fetch/index.js new file mode 100644 index 000000000..97fd6d402 --- /dev/null +++ b/packages/requester-fetch/index.js @@ -0,0 +1 @@ +module.exports = require('./dist/requester.fetch.node.cjs'); diff --git a/packages/requester-fetch/package.json b/packages/requester-fetch/package.json index f28255d19..39cbb4908 100644 --- a/packages/requester-fetch/package.json +++ b/packages/requester-fetch/package.json @@ -37,8 +37,8 @@ "react-native": "./dist/requester.fetch.browser.js", "files": [ "dist", - "src", - "index.ts" + "index.d.ts", + "index.js" ], "scripts": { "build": "yarn clean && yarn tsup", diff --git a/packages/requester-node-http/index.d.ts b/packages/requester-node-http/index.d.ts new file mode 100644 index 000000000..90aa3b2c6 --- /dev/null +++ b/packages/requester-node-http/index.d.ts @@ -0,0 +1 @@ +export * from './dist/requester.http'; diff --git a/packages/requester-node-http/index.js b/packages/requester-node-http/index.js new file mode 100644 index 000000000..2f27540e5 --- /dev/null +++ b/packages/requester-node-http/index.js @@ -0,0 +1 @@ +module.exports = require('./dist/requester.http.cjs'); diff --git a/packages/requester-node-http/package.json b/packages/requester-node-http/package.json index 70e53195d..2857ca35d 100644 --- a/packages/requester-node-http/package.json +++ b/packages/requester-node-http/package.json @@ -11,8 +11,8 @@ "type": "module", "files": [ "dist", - "src", - "index.ts" + "index.d.ts", + "index.js" ], "exports": { ".": { diff --git a/packages/requester-testing/index.d.ts b/packages/requester-testing/index.d.ts new file mode 100644 index 000000000..e81a1cd3e --- /dev/null +++ b/packages/requester-testing/index.d.ts @@ -0,0 +1 @@ +export * from './dist/node'; diff --git a/packages/requester-testing/index.js b/packages/requester-testing/index.js new file mode 100644 index 000000000..4a9cdb9ef --- /dev/null +++ b/packages/requester-testing/index.js @@ -0,0 +1 @@ +module.exports = require('./dist/node.cjs'); diff --git a/packages/requester-testing/package.json b/packages/requester-testing/package.json index 705b95697..6c4c16b2d 100644 --- a/packages/requester-testing/package.json +++ b/packages/requester-testing/package.json @@ -12,8 +12,8 @@ "type": "module", "files": [ "dist", - "src", - "index.ts" + "index.d.ts", + "index.js" ], "exports": { ".": {