From a67731daf458ce8782a05ce49a008ec5e8f566fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jimmy=20W=C3=A4rting?= Date: Fri, 21 Sep 2018 14:56:20 +0200 Subject: [PATCH] update dev rep --- .babelrc | 19 ------------------- package.json | 14 +++++++------- 2 files changed, 7 insertions(+), 26 deletions(-) delete mode 100644 .babelrc diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 14c383d..0000000 --- a/.babelrc +++ /dev/null @@ -1,19 +0,0 @@ -{ - "presets": [ - ["env", { - "targets": { - "browsers": [ - "ie > 9" - ] - } - }] - ], - "plugins": [ - "transform-es2015-modules-umd" - ], - "env": { - "production": { - "presets": ["minify"] - } - } -} diff --git a/package.json b/package.json index bb6e857..f5c4550 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "file-saver", - "version": "1.3.8", + "version": "2.0.0", "description": "An HTML5 saveAs() FileSaver implementation", "main": "dist/FileSaver.js", "module": "src/FileSaver.js", @@ -11,8 +11,8 @@ ], "scripts": { "test": "echo \"Error: no test specified\" && exit 0", - "build:development": "mkdir -p dist && babel src/FileSaver.js --out-file=dist/FileSaver.js", - "build:production": "NODE_ENV=production npm run build:development -- --out-file=dist/FileSaver.min.js", + "build:development": "babel -o dist/FileSaver.js --plugins @babel/plugin-transform-modules-umd src/FileSaver.js", + "build:production": "babel -o dist/FileSaver.min.js -s --plugins @babel/plugin-transform-modules-umd --presets minify src/FileSaver.js", "build": "npm run build:development && npm run build:production", "prepublishOnly": "npm run build" }, @@ -32,9 +32,9 @@ }, "homepage": "https://github.com/eligrey/FileSaver.js#readme", "devDependencies": { - "babel-cli": "^6.26.0", - "babel-plugin-transform-es2015-modules-umd": "^6.24.1", - "babel-preset-env": "^1.6.1", - "babel-preset-minify": "^0.2.0" + "@babel/cli": "^7.1.0", + "@babel/core": "^7.1.0", + "@babel/plugin-transform-modules-umd": "^7.1.0", + "babel-preset-minify": "^0.4.3" } }