diff --git a/README.md b/README.md index 5963f61..d1d7655 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ To install the package run: npm i @dabapps/django-s3-file-upload -S ``` +### Compatibility + +You will also need polyfills for both `Promises` and `Symbols` if you wish to target older browsers. + ## Usage ### How it works diff --git a/package-lock.json b/package-lock.json index baa9b98..ccd6b24 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@dabapps/django-s3-file-upload", - "version": "0.1.1", + "version": "0.1.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 8cb63b2..25490aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@dabapps/django-s3-file-upload", - "version": "0.1.1", + "version": "0.1.2", "description": "Upload files from the browser to S3 - client side implementation", "main": "dist/index.js", "directories": {}, @@ -14,7 +14,7 @@ "prettier-check": "prettier --check '**/*.{ts,tsx,js,jsx}'", "prettier": "prettier --write '**/*.{ts,tsx,js,jsx}'", "tests": "jest", - "test": "npm run lint && npm run typecheck && npm run tests -- --runInBand --coverage", + "test": "npm run dist && npm run lint && npm run typecheck && npm run tests -- --runInBand --coverage", "prepublishOnly": "npm run dist" }, "repository": { diff --git a/tsconfig.dist.json b/tsconfig.dist.json index 0259696..c56f667 100644 --- a/tsconfig.dist.json +++ b/tsconfig.dist.json @@ -4,6 +4,13 @@ "declaration": true, "sourceMap": true, "listEmittedFiles": true, + "target": "es5", + "lib": [ + "es5", + "dom", + "es2015.promise", + "es2015.symbol" + ], "rootDir": "./src/", "outDir": "./dist/" },