chore(NA): assure puppeteer_skip_chromium_download is applied across every yarn install situation (#88346) (#88379)

This commit is contained in:
Tiago Costa 2021-01-14 20:32:48 +00:00 committed by GitHub
parent dfe1c0b040
commit 049b45f8a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 4 deletions

1
.npmrc Normal file
View file

@ -0,0 +1 @@
puppeteer_skip_chromium_download=true

View file

@ -19,9 +19,6 @@
"number": 8467,
"sha": "6cb7fec4e154faa0a4a3fee4b33dfef91b9870d9"
},
"config": {
"puppeteer_skip_chromium_download": true
},
"homepage": "https://www.elastic.co/products/kibana",
"bugs": {
"url": "http://github.com/elastic/kibana/issues"

View file

@ -41,7 +41,10 @@ export const CleanPackages: Task = {
description: 'Cleaning source for packages that are now installed in node_modules',
async run(config, log, build) {
await deleteAll([build.resolvePath('packages'), build.resolvePath('yarn.lock')], log);
await deleteAll(
[build.resolvePath('packages'), build.resolvePath('yarn.lock'), build.resolvePath('.npmrc')],
log
);
},
};

View file

@ -27,6 +27,7 @@ export const CopySource: Task = {
dot: false,
select: [
'yarn.lock',
'.npmrc',
'src/**',
'!src/**/*.{test,test.mocks,mock}.{js,ts,tsx}',
'!src/**/mocks.ts', // special file who imports .mock files