diff --git a/gulpfile.js b/gulpfile.js index c1641bb..13cb462 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -10,6 +10,7 @@ const prefixer = require('gulp-autoprefixer') const sourcemaps = require('gulp-sourcemaps') const ts = require('gulp-typescript') const pack = require('./package.json') +const tsconfig = require('./tsconfig.json') const exportModuleName = 'VXETablePluginIView' @@ -32,13 +33,7 @@ gulp.task('build_style', function () { gulp.task('build_commonjs', function () { return gulp.src(['depend.ts', 'index.ts']) .pipe(sourcemaps.init()) - .pipe(ts({ - strict: true, - moduleResolution: 'node', - noImplicitAny: true, - target: 'es6', - lib: ['dom', 'es6'] - })) + .pipe(ts(tsconfig.compilerOptions)) .pipe(babel({ presets: ['@babel/env'] })) @@ -52,13 +47,7 @@ gulp.task('build_commonjs', function () { gulp.task('build_umd', function () { return gulp.src(['depend.ts', 'index.ts']) - .pipe(ts({ - strict: true, - moduleResolution: 'node', - noImplicitAny: true, - target: 'es6', - lib: ['dom', 'es6'] - })) + .pipe(ts(tsconfig.compilerOptions)) .pipe(replace(`import XEUtils from 'xe-utils/ctor';`, `import XEUtils from 'xe-utils';`)) .pipe(babel({ moduleId: pack.name, diff --git a/package.json b/package.json index b7e84f0..74a5735 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vxe-table-plugin-iview", - "version": "1.9.4", + "version": "1.10.0", "description": "基于 vxe-table 表格的适配插件,用于兼容 iview、view-design 组件库", "scripts": { "lib": "gulp build" @@ -17,22 +17,22 @@ "style": "dist/style.css", "typings": "index.ts", "devDependencies": { - "@babel/core": "^7.4.4", - "@babel/plugin-transform-runtime": "^7.4.4", - "@babel/preset-env": "^7.4.4", - "@babel/runtime": "^7.4.4", - "@typescript-eslint/eslint-plugin": "^2.3.1", - "@typescript-eslint/parser": "^2.3.1", - "del": "^5.1.0", - "eslint": "^5.15.1", - "eslint-config-standard": "^12.0.0", - "eslint-config-prettier": "^6.3.0", + "@babel/core": "^7.12.3", + "@babel/plugin-transform-runtime": "^7.12.1", + "@babel/preset-env": "^7.12.1", + "@babel/runtime": "^7.12.5", + "@typescript-eslint/eslint-plugin": "^4.6.1", + "@typescript-eslint/parser": "^4.6.1", + "del": "^6.0.0", + "eslint": "^7.13.0", + "eslint-config-prettier": "^6.15.0", + "eslint-config-standard": "^16.0.1", "eslint-friendly-formatter": "^4.0.1", - "eslint-plugin-import": "^2.16.0", - "eslint-plugin-node": "^8.0.1", - "eslint-plugin-promise": "^4.0.1", - "eslint-plugin-standard": "^4.0.0", - "eslint-plugin-prettier": "^3.1.1", + "eslint-plugin-import": "^2.22.1", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-prettier": "^3.1.4", + "eslint-plugin-promise": "^4.2.1", + "eslint-plugin-standard": "^4.0.2", "eslint-plugin-typescript": "^0.14.0", "gulp": "^4.0.2", "gulp-autoprefixer": "^7.0.1", @@ -45,16 +45,15 @@ "gulp-sourcemaps": "^2.6.5", "gulp-typescript": "^5.0.1", "gulp-uglify": "^3.0.2", - "markdown-doctest": "^0.9.1", - "prettier": "^1.18.2", - "typescript": "^3.9.3", + "markdown-doctest": "^1.1.0", + "prettier": "^2.1.2", + "typescript": "^4.0.5", "vue": "^2.6.12", "vxe-table": "^2.10.0", "xe-utils": "^3.0.1" }, "peerDependencies": { - "view-design": ">= 4.0.0", - "vxe-table": ">= 1.15.31" + "vxe-table": ">= 2.9" }, "repository": { "type": "git", diff --git a/tsconfig.json b/tsconfig.json index 10ee0f8..5a00f0d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,11 @@ "strict": true, "moduleResolution": "node", "noImplicitAny": true, - "target": "es6", - "lib": ["dom", "es6"] + "target": "esnext", + "lib": [ + "esnext", + "dom", + "dom.iterable" + ] } -} +} \ No newline at end of file