Skip to content

Commit 02bc0a8

Browse files
committed
update package
1 parent 0577e16 commit 02bc0a8

File tree

4 files changed

+32
-62
lines changed

4 files changed

+32
-62
lines changed

package-lock.json

Lines changed: 26 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
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/cjs/sdk.js",
7+
"main": "dist/esm/sdk.js",
88
"exports": {
99
".": {
1010
"import": "./dist/esm/sdk.js",
11-
"require": "./dist/cjs/sdk.js",
1211
"types": "./types/index.d.ts"
1312
},
1413
"./package.json": "./package.json"
@@ -33,13 +32,12 @@
3332
"typescript": "4.7.2"
3433
},
3534
"dependencies": {
36-
"cross-fetch": "3.1.5",
37-
"isomorphic-form-data": "2.0.0"
35+
"cross-fetch": "4.0.0",
36+
"expo-file-system": "16.0.8",
37+
"expo-device": "5.9.3"
3838
},
3939
"peerDependencies": {
40-
"expo": "*",
41-
"expo-file-system": "16.0.8",
42-
"expo-device": "5.9.3"
40+
"expo": "*"
4341
},
4442
"jsdelivr": "dist/iife/sdk.js",
4543
"unpkg": "dist/iife/sdk.js"

rollup.config.js

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,10 @@ 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-
},
159
{
1610
format: "es",
1711
file: pkg.module,
1812
sourcemap: true,
19-
},
20-
{
21-
format: "iife",
22-
file: pkg.jsdelivr,
23-
name: "Appwrite",
24-
extend: true,
25-
globals: {
26-
"cross-fetch": "window",
27-
"FormData": "FormData",
28-
},
29-
},
13+
}
3014
],
3115
};

src/client.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'isomorphic-form-data';
21
import { fetch } from 'cross-fetch';
32
import { Models } from './models';
43
import { Service } from './service';

0 commit comments

Comments
 (0)