diff --git a/.eslintrc.js b/.eslintrc.js index 1b7f413..4b2744b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,9 +1,9 @@ module.exports = { - "extends": "standard", - "parser": "babel-eslint", - "rules": { - "indent": [2, 4], - "promise/param-names": 0, - "comma-dangle": [2, "always-multiline"], + extends: 'standard', + parser: 'babel-eslint', + rules: { + 'indent': [2, 4], + 'promise/param-names': 0, + 'comma-dangle': [2, 'always-multiline'], }, } diff --git a/package.json b/package.json index fcf2af0..8af7985 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tua-storage", - "version": "1.7.1", + "version": "1.7.2", "description": "🏗 A common storage for web(localStorage), for RN(AsyncStorage), for mini-program(wx) or just memory cache(Node.js)", "main": "dist/TuaStorage.cjs.js", "module": "dist/TuaStorage.esm.js", diff --git a/rollup.config.js b/rollup.config.js index 5ed1789..0990ed4 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,10 +1,12 @@ +// @ts-check + import json from 'rollup-plugin-json' import babel from 'rollup-plugin-babel' import replace from 'rollup-plugin-replace' import { eslint } from 'rollup-plugin-eslint' import { uglify } from 'rollup-plugin-uglify' -import pkg from './package.json' +import * as pkg from './package.json' const input = `src/index.js` const banner = `/* ${pkg.name} version ${pkg.version} */`