Skip to content

Commit b437351

Browse files
committed
chore(NA): enable yarn prefer offline and local mirror for development (#84124)
* chore(NA): enable --prefer-offline by default * chore(NA): use prefer offline in the yarnrc * chore(NA): update kbn pm * chore(NA): add yarn offline mirror integration * chore(NA): remove non wanted prune feature due to switching between branches * chore(NA): re-introduce babel require hook # Conflicts: # .ci/packer_cache_for_branch.sh # .gitignore # vars/kibanaCoverage.groovy # vars/kibanaTeamAssign.groovy
1 parent 9133ba8 commit b437351

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ report.asciidoc
7878

7979
# Ignore code owners to avoid pings on backports
8080
.github/CODEOWNERS
81+
82+
# Yarn local mirror content
83+
.yarn-local-mirror

.yarnrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Configure an offline yarn mirror in the data folder
2+
yarn-offline-mirror ".yarn-local-mirror"
3+
4+
# Always look into the cache first before fetching online
5+
--install.prefer-offline true

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
"moment": "^2.24.0",
241241
"moment-duration-format": "^2.3.2",
242242
"moment-timezone": "^0.5.27",
243-
"monaco-editor": "~0.17.0",
243+
"monaco-editor": "^0.17.0",
244244
"mustache": "^2.3.2",
245245
"ngreact": "^0.5.1",
246246
"nock": "12.0.3",
@@ -587,7 +587,7 @@
587587
"babel-loader": "^8.0.6",
588588
"babel-plugin-add-module-exports": "^1.0.2",
589589
"babel-plugin-istanbul": "^6.0.0",
590-
"babel-plugin-require-context-hook": "npm:babel-plugin-require-context-hook-babel7@1.0.0",
590+
"babel-plugin-require-context-hook": "^1.0.0",
591591
"babel-plugin-styled-components": "^1.10.7",
592592
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
593593
"backport": "5.6.0",
@@ -773,7 +773,7 @@
773773
"react-fast-compare": "^2.0.4",
774774
"react-grid-layout": "^0.16.2",
775775
"react-markdown": "^4.3.1",
776-
"react-monaco-editor": "~0.27.0",
776+
"react-monaco-editor": "^0.27.0",
777777
"react-popper-tooltip": "^2.10.1",
778778
"react-resize-detector": "^4.2.0",
779779
"react-reverse-portal": "^1.0.4",

src/dev/ci_setup/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ echo " -- TEST_ES_SNAPSHOT_VERSION='$TEST_ES_SNAPSHOT_VERSION'"
1414
### install dependencies
1515
###
1616
echo " -- installing node.js dependencies"
17-
yarn kbn bootstrap --prefer-offline
17+
yarn kbn bootstrap
1818

1919
###
2020
### Download es snapshots

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7936,7 +7936,7 @@ babel-plugin-react-docgen@^4.1.0:
79367936
react-docgen "^5.0.0"
79377937
recast "^0.14.7"
79387938

7939-
babel-plugin-require-context-hook@^1.0.0, "babel-plugin-require-context-hook@npm:[email protected]":
7939+
babel-plugin-require-context-hook@^1.0.0:
79407940
version "1.0.0"
79417941
resolved "https://registry.yarnpkg.com/babel-plugin-require-context-hook-babel7/-/babel-plugin-require-context-hook-babel7-1.0.0.tgz#1273d4cee7e343d0860966653759a45d727e815d"
79427942
integrity sha512-kez0BAN/cQoyO1Yu1nre1bQSYZEF93Fg7VQiBHFfMWuaZTy7vJSTT4FY68FwHTYG53Nyt0A7vpSObSVxwweQeQ==
@@ -20423,7 +20423,7 @@ moment-timezone@^0.5.27:
2042320423
resolved "https://registry.yarnpkg.com/moment/-/moment-2.28.0.tgz#cdfe73ce01327cee6537b0fafac2e0f21a237d75"
2042420424
integrity sha512-Z5KOjYmnHyd/ukynmFd/WwyXHd7L4J9vTI/nn5Ap9AVUgaAE15VvQ9MOGmJJygEUklupqIrFnor/tjTwRU+tQw==
2042520425

20426-
monaco-editor@~0.17.0:
20426+
monaco-editor@^0.17.0:
2042720427
version "0.17.1"
2042820428
resolved "https://registry.yarnpkg.com/monaco-editor/-/monaco-editor-0.17.1.tgz#8fbe96ca54bfa75262706e044f8f780e904aa45c"
2042920429
integrity sha512-JAc0mtW7NeO+0SwPRcdkfDbWLgkqL9WfP1NbpP9wNASsW6oWqgZqNIWt4teymGjZIXTElx3dnQmUYHmVrJ7HxA==
@@ -23495,7 +23495,7 @@ react-moment-proptypes@^1.7.0:
2349523495
dependencies:
2349623496
moment ">=1.6.0"
2349723497

23498-
react-monaco-editor@~0.27.0:
23498+
react-monaco-editor@^0.27.0:
2349923499
version "0.27.0"
2350023500
resolved "https://registry.yarnpkg.com/react-monaco-editor/-/react-monaco-editor-0.27.0.tgz#2dbf47b8fd4d8e4763934051f07291d9b128bb89"
2350123501
integrity sha512-Im40xO4DuFlQ6kVcSBHC+p70fD/5aErUy1uyLT9RZ4nlehn6BOPpwmcw/2IN/LfMvy8X4WmLuuvrNftBZLH+vA==

0 commit comments

Comments
 (0)