From b760d0119b8e837d0e8219a8754db72494e1d371 Mon Sep 17 00:00:00 2001 From: Kawika Avilla Date: Wed, 3 Mar 2021 23:05:52 +0000 Subject: [PATCH] Renamed items in kbn-babel-preset Signed-off-by: Kawika Avilla --- .../README.md | 14 +++++++------- .../common_babel_parser_options.js | 0 .../common_preset.js | 0 .../node_preset.js | 4 ++-- .../package.json | 4 ++-- .../webpack_preset.js | 0 .../yarn.lock | 0 7 files changed, 11 insertions(+), 11 deletions(-) rename packages/{kbn-babel-preset => osd-babel-preset}/README.md (64%) rename packages/{kbn-babel-preset => osd-babel-preset}/common_babel_parser_options.js (100%) rename packages/{kbn-babel-preset => osd-babel-preset}/common_preset.js (100%) rename packages/{kbn-babel-preset => osd-babel-preset}/node_preset.js (92%) rename packages/{kbn-babel-preset => osd-babel-preset}/package.json (92%) rename packages/{kbn-babel-preset => osd-babel-preset}/webpack_preset.js (100%) rename packages/{kbn-babel-preset => osd-babel-preset}/yarn.lock (100%) diff --git a/packages/kbn-babel-preset/README.md b/packages/osd-babel-preset/README.md similarity index 64% rename from packages/kbn-babel-preset/README.md rename to packages/osd-babel-preset/README.md index 56ad7de60014..b4ba0375cb52 100644 --- a/packages/kbn-babel-preset/README.md +++ b/packages/osd-babel-preset/README.md @@ -1,4 +1,4 @@ -# @kbn/babel-preset +# @osd/babel-preset This package contains the shared bits of babel config that we use for transpiling our source code to code compatible with Node.JS and the various [browsers we support](https://www.elastic.co/support/matrix#matrix_browsers). @@ -7,15 +7,15 @@ This package contains the shared bits of babel config that we use for transpilin To use our presets add the following to the devDependencies section of your package.json: ``` -"@kbn/babel-preset": "1.0.0", +"@osd/babel-preset": "1.0.0", ``` -Then run `yarn kbn bootstrap` to properly link the package into your plugin/package. +Then run `yarn osd bootstrap` to properly link the package into your plugin/package. -Finally, add either `@kbn/babel-preset/node_preset` or `@kbn/babel-preset/webpack_preset` to your babel config. +Finally, add either `@osd/babel-preset/node_preset` or `@osd/babel-preset/webpack_preset` to your babel config. -`@kbn/babel-preset/node_preset` is usually placed in a [`babel.config.js` file](https://babeljs.io/docs/en/configuration#babelconfigjs). +`@osd/babel-preset/node_preset` is usually placed in a [`babel.config.js` file](https://babeljs.io/docs/en/configuration#babelconfigjs). -`@kbn/babel-preset/webpack_preset` is usually placed directly in your `webpack` configuration. +`@osd/babel-preset/webpack_preset` is usually placed directly in your `webpack` configuration. -***NOTE:*** If you're transpiling code that will be run in both the browser and node you must transpile your code twice, once for each target. Take a look at the build tasks for `@kbn/i18n` to see how that can look. \ No newline at end of file +***NOTE:*** If you're transpiling code that will be run in both the browser and node you must transpile your code twice, once for each target. Take a look at the build tasks for `@osd/i18n` to see how that can look. \ No newline at end of file diff --git a/packages/kbn-babel-preset/common_babel_parser_options.js b/packages/osd-babel-preset/common_babel_parser_options.js similarity index 100% rename from packages/kbn-babel-preset/common_babel_parser_options.js rename to packages/osd-babel-preset/common_babel_parser_options.js diff --git a/packages/kbn-babel-preset/common_preset.js b/packages/osd-babel-preset/common_preset.js similarity index 100% rename from packages/kbn-babel-preset/common_preset.js rename to packages/osd-babel-preset/common_preset.js diff --git a/packages/kbn-babel-preset/node_preset.js b/packages/osd-babel-preset/node_preset.js similarity index 92% rename from packages/kbn-babel-preset/node_preset.js rename to packages/osd-babel-preset/node_preset.js index 86817ed253e7..ce44b024474d 100644 --- a/packages/kbn-babel-preset/node_preset.js +++ b/packages/osd-babel-preset/node_preset.js @@ -26,8 +26,8 @@ module.exports = (_, options = {}) => { targets: { // only applies the necessary transformations based on the // current node.js processes version. For example: running - // `nvm install 8 && node ./src/cli` will run kibana in node - // version 8 and babel will stop transpiling async/await + // `nvm install 8 && node ./src/cli` will run OpenSearch Dashboards + // in node version 8 and babel will stop transpiling async/await // because they are supported in the "current" version of node node: 'current', }, diff --git a/packages/kbn-babel-preset/package.json b/packages/osd-babel-preset/package.json similarity index 92% rename from packages/kbn-babel-preset/package.json rename to packages/osd-babel-preset/package.json index 2fab970c5c71..10a1b1ac1bfd 100644 --- a/packages/kbn-babel-preset/package.json +++ b/packages/osd-babel-preset/package.json @@ -1,9 +1,9 @@ { - "name": "@kbn/babel-preset", + "name": "@osd/babel-preset", "version": "1.0.0", "private": true, "license": "Apache-2.0", - "kibana": { + "opensearchDashboards": { "devOnly": true }, "dependencies": { diff --git a/packages/kbn-babel-preset/webpack_preset.js b/packages/osd-babel-preset/webpack_preset.js similarity index 100% rename from packages/kbn-babel-preset/webpack_preset.js rename to packages/osd-babel-preset/webpack_preset.js diff --git a/packages/kbn-babel-preset/yarn.lock b/packages/osd-babel-preset/yarn.lock similarity index 100% rename from packages/kbn-babel-preset/yarn.lock rename to packages/osd-babel-preset/yarn.lock