Browse Source

chore(compiler-sfc): specify prettier version (#13053)

close: #13052
Grigorii K. Shartsev 2 years ago
parent
commit
45d6ad6645
2 changed files with 7 additions and 1 deletions
  1. 3 0
      packages/compiler-sfc/package.json
  2. 4 1
      pnpm-lock.yaml

+ 3 - 0
packages/compiler-sfc/package.json

@@ -30,5 +30,8 @@
     "pug": "^3.0.2",
     "sass": "^1.52.3",
     "stylus": "^0.58.1"
+  },
+  "optionalDependencies": {
+    "prettier": "^1.18.2 || ^2.0.0"
   }
 }

+ 4 - 1
pnpm-lock.yaml

@@ -150,6 +150,10 @@ importers:
       source-map:
         specifier: ^0.6.1
         version: 0.6.1
+    optionalDependencies:
+      prettier:
+        specifier: ^1.18.2 || ^2.0.0
+        version: 2.7.1
     devDependencies:
       '@babel/types':
         specifier: ^7.19.4
@@ -5254,7 +5258,6 @@ packages:
     resolution: {integrity: sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g==}
     engines: {node: '>=10.13.0'}
     hasBin: true
-    dev: true
 
   /pretty-format@29.7.0:
     resolution: {integrity: sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==}