File tree 1 file changed +12
-5
lines changed
packages/@vue/cli-service/lib 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -175,11 +175,6 @@ class PluginAPI {
175
175
if ( ! Array . isArray ( configFiles ) ) {
176
176
configFiles = [ configFiles ]
177
177
}
178
- configFiles = configFiles . concat ( [
179
- 'package-lock.json' ,
180
- 'yarn.lock' ,
181
- 'pnpm-lock.yaml'
182
- ] )
183
178
184
179
const readConfig = file => {
185
180
const absolutePath = this . resolve ( file )
@@ -207,6 +202,18 @@ class PluginAPI {
207
202
}
208
203
}
209
204
205
+ const lockfiles = [
206
+ 'package-lock.json' ,
207
+ 'yarn.lock' ,
208
+ 'pnpm-lock.yaml' ,
209
+ // technically not a lockfile, but should also be taken into account
210
+ 'package.json'
211
+ ]
212
+ variables . dependencies = lockfiles . map ( f => {
213
+ const content = readConfig ( f )
214
+ return content && content . replace ( / \r \n ? / g, '\n' )
215
+ } )
216
+
210
217
const cacheIdentifier = hash ( variables )
211
218
return { cacheDirectory, cacheIdentifier }
212
219
}
You can’t perform that action at this time.
0 commit comments