Explorar o código

build命令还原eslint .

fogwind hai 1 semana
pai
achega
98fc6d3bbb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
   "private": true,
   "scripts": {
     "dev": "next dev -p 3001",
-    "build": "cross-env NODE_ENV=production next build",
+    "build": "cross-env NODE_ENV=production eslint . && next build",
     "start": "next start -p 3001",
     "lint": "eslint .",
     "lint:fix": "next lint --fix",