@seafile/sdoc-editor 0.3.3 → 0.3.4
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 +16 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "This is a sdoc editor",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -40,7 +40,16 @@
|
|
|
40
40
|
"pub:optimized": "rm dist/config.js",
|
|
41
41
|
"prepublishOnly": "npm run clean && npm run pub:dist",
|
|
42
42
|
"test": "node scripts/test.js",
|
|
43
|
-
"release": "release-it"
|
|
43
|
+
"release": "release-it",
|
|
44
|
+
"prepare": "husky install",
|
|
45
|
+
"lint": "lint-staged"
|
|
46
|
+
},
|
|
47
|
+
"lint-staged": {
|
|
48
|
+
"src/**/*.js": [
|
|
49
|
+
"eslint --ext .tsx,.ts --fix ./src",
|
|
50
|
+
"prettier --write",
|
|
51
|
+
"git add"
|
|
52
|
+
]
|
|
44
53
|
},
|
|
45
54
|
"files": [
|
|
46
55
|
"dist/",
|
|
@@ -73,7 +82,7 @@
|
|
|
73
82
|
"dotenv": "6.2.0",
|
|
74
83
|
"dotenv-expand": "5.1.0",
|
|
75
84
|
"ejs": "3.1.8",
|
|
76
|
-
"eslint": "
|
|
85
|
+
"eslint": "6.8.0",
|
|
77
86
|
"eslint-config-react-app": "^5.0.2",
|
|
78
87
|
"eslint-loader": "4.0.2",
|
|
79
88
|
"eslint-plugin-flowtype": "3.13.0",
|
|
@@ -85,6 +94,7 @@
|
|
|
85
94
|
"fs-extra": "7.0.1",
|
|
86
95
|
"glamor": "2.20.40",
|
|
87
96
|
"html-webpack-plugin": "^4.0.0-beta.5",
|
|
97
|
+
"husky": "8.0.3",
|
|
88
98
|
"i18next": "22.4.9",
|
|
89
99
|
"i18next-browser-languagedetector": "7.0.1",
|
|
90
100
|
"i18next-xhr-backend": "3.2.2",
|
|
@@ -95,6 +105,7 @@
|
|
|
95
105
|
"koa-router": "7.3.0",
|
|
96
106
|
"koa-send": "5.0.1",
|
|
97
107
|
"koa2-cors": "2.0.6",
|
|
108
|
+
"lint-staged": "14.0.0",
|
|
98
109
|
"mini-css-extract-plugin": "^1.3.5",
|
|
99
110
|
"object-assign": "4.1.1",
|
|
100
111
|
"pnp-webpack-plugin": "1.5.0",
|
|
@@ -104,6 +115,7 @@
|
|
|
104
115
|
"postcss-normalize": "7.0.1",
|
|
105
116
|
"postcss-preset-env": "6.7.0",
|
|
106
117
|
"postcss-safe-parser": "4.0.1",
|
|
118
|
+
"prettier": "3.1.0",
|
|
107
119
|
"prop-types": "15.8.1",
|
|
108
120
|
"raf": "3.4.0",
|
|
109
121
|
"react": "17.0.0",
|
|
@@ -113,7 +125,7 @@
|
|
|
113
125
|
"react-hot-loader": "4.13.1",
|
|
114
126
|
"react-i18next": "12.1.4",
|
|
115
127
|
"react-mentions": "4.4.7",
|
|
116
|
-
"release-it": "
|
|
128
|
+
"release-it": "16.0.0",
|
|
117
129
|
"resolve": "1.12.0",
|
|
118
130
|
"resolve-url-loader": "3.1.5",
|
|
119
131
|
"sass-loader": "13.3.2",
|