@picgo/store 2.0.3 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picgo/store",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -45,20 +45,22 @@
45
45
  "devDependencies": {
46
46
  "@commitlint/cli": "^8.3.5",
47
47
  "@picgo/bump-version": "^1.0.3",
48
+ "@rollup/plugin-commonjs": "^22.0.2",
48
49
  "@types/jest": "^24.9.0",
49
50
  "@types/node": "^13.1.7",
50
51
  "@types/write-file-atomic": "^4.0.0",
51
- "@typescript-eslint/eslint-plugin": "2",
52
+ "@typescript-eslint/eslint-plugin": "5.33.1",
52
53
  "commitizen": "^4.2.4",
53
54
  "conventional-changelog": "^3.1.18",
54
55
  "coveralls": "^3.0.9",
55
56
  "cz-customizable": "^6.2.0",
56
- "eslint": "6",
57
- "eslint-config-standard-with-typescript": "^11.0.1",
58
- "eslint-plugin-import": "2",
59
- "eslint-plugin-node": "9",
60
- "eslint-plugin-promise": "4",
61
- "eslint-plugin-standard": "4",
57
+ "eslint": "8.22.0",
58
+ "eslint-config-standard-with-typescript": "^22.0.0",
59
+ "eslint-plugin-import": "2.26.0",
60
+ "eslint-plugin-n": "^15.2.4",
61
+ "eslint-plugin-node": "11.1.0",
62
+ "eslint-plugin-promise": "6.0.0",
63
+ "eslint-plugin-standard": "5.0.0",
62
64
  "husky": "^4.0.10",
63
65
  "jest": "^24.9.0",
64
66
  "rimraf": "^3.0.2",
@@ -75,7 +77,7 @@
75
77
  "@types/bson": "^4.0.1",
76
78
  "@types/graceful-fs": "^4.1.3",
77
79
  "@types/lodash": "^4.14.182",
78
- "comment-json": "^4.1.0",
80
+ "comment-json": "^4.2.3",
79
81
  "fflate": "^0.7.3",
80
82
  "lodash": "^4.17.21",
81
83
  "lodash-id": "^0.14.0",
package/rollup.config.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { terser } from 'rollup-plugin-terser'
2
2
  import typescript from 'rollup-plugin-typescript2'
3
+ import commonjs from '@rollup/plugin-commonjs'
3
4
  // import resolve from 'rollup-plugin-node-resolve'
4
5
  export default {
5
6
  input: './src/index.ts',
@@ -7,7 +8,8 @@ export default {
7
8
  typescript({
8
9
  tsconfigOverride: {
9
10
  compilerOptions: {
10
- module: 'ESNext'
11
+ target: 'ES2017',
12
+ module: 'ES2020'
11
13
  },
12
14
  exclude: [
13
15
  'node_modules',
@@ -16,12 +18,13 @@ export default {
16
18
  ]
17
19
  }
18
20
  }),
21
+ commonjs(),
19
22
  terser()
20
23
  ],
21
24
  output: [{
22
25
  format: 'cjs',
23
26
  file: 'dist/index.js',
24
- sourcemap: true
27
+ sourcemap: 'inline'
25
28
  }],
26
29
  external: [
27
30
  'write-file-atomic',
@@ -29,6 +32,8 @@ export default {
29
32
  '@commonify/lowdb',
30
33
  'fflate',
31
34
  'util',
32
- 'fs'
35
+ 'fs',
36
+ 'lodash',
37
+ 'comment-json'
33
38
  ]
34
39
  }
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}