Skip to content

Commit 46f4265

Browse files
committedMar 26, 2024
remove cross fetch
1 parent 02bc0a8 commit 46f4265

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed
 

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
"description": "Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
55
"version": "0.1.1",
66
"license": "BSD-3-Clause",
7-
"main": "dist/esm/sdk.js",
7+
"main": "dist/cjs/sdk.js",
88
"exports": {
99
".": {
1010
"import": "./dist/esm/sdk.js",
11+
"require": "./dist/cjs/sdk.js",
1112
"types": "./types/index.d.ts"
1213
},
1314
"./package.json": "./package.json"
@@ -32,7 +33,6 @@
3233
"typescript": "4.7.2"
3334
},
3435
"dependencies": {
35-
"cross-fetch": "4.0.0",
3636
"expo-file-system": "16.0.8",
3737
"expo-device": "5.9.3"
3838
},

‎rollup.config.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ export default {
66
input: "src/index.ts",
77
plugins: [typescript()],
88
output: [
9+
{
10+
format: "cjs",
11+
file: pkg.main,
12+
esModule: false,
13+
sourcemap: true,
14+
},
915
{
1016
format: "es",
1117
file: pkg.module,
1218
sourcemap: true,
13-
}
19+
},
1420
],
1521
};

‎src/client.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { fetch } from 'cross-fetch';
21
import { Models } from './models';
32
import { Service } from './service';
43
import * as Device from 'expo-device';

0 commit comments

Comments
 (0)