From 95d6e2a2379fcf6f8323adf5009eba2367bf7e8e Mon Sep 17 00:00:00 2001 From: Mihir Soni Date: Wed, 3 Mar 2021 18:40:18 +0000 Subject: [PATCH] [Rename] kbn-utility-types in packages directory to osd-utility-types Signed-off-by: Mihir Soni --- .../{kbn-utility-types => osd-utility-types}/README.md | 6 +++--- .../{kbn-utility-types => osd-utility-types}/index.ts | 0 .../{kbn-utility-types => osd-utility-types}/package.json | 8 ++++---- .../test-d/public_contract.ts | 0 .../test-d/public_keys.ts | 0 .../test-d/shallow_promise.ts | 0 .../test-d/union_to_intersection.ts | 0 .../test-d/unwrap_observable.ts | 0 .../test-d/unwrap_promise.ts | 0 .../test-d/values.ts | 0 .../tsconfig.json | 0 .../{kbn-utility-types => osd-utility-types}/yarn.lock | 0 12 files changed, 7 insertions(+), 7 deletions(-) rename packages/{kbn-utility-types => osd-utility-types}/README.md (89%) rename packages/{kbn-utility-types => osd-utility-types}/index.ts (100%) rename packages/{kbn-utility-types => osd-utility-types}/package.json (75%) rename packages/{kbn-utility-types => osd-utility-types}/test-d/public_contract.ts (100%) rename packages/{kbn-utility-types => osd-utility-types}/test-d/public_keys.ts (100%) rename packages/{kbn-utility-types => osd-utility-types}/test-d/shallow_promise.ts (100%) rename packages/{kbn-utility-types => osd-utility-types}/test-d/union_to_intersection.ts (100%) rename packages/{kbn-utility-types => osd-utility-types}/test-d/unwrap_observable.ts (100%) rename packages/{kbn-utility-types => osd-utility-types}/test-d/unwrap_promise.ts (100%) rename packages/{kbn-utility-types => osd-utility-types}/test-d/values.ts (100%) rename packages/{kbn-utility-types => osd-utility-types}/tsconfig.json (100%) rename packages/{kbn-utility-types => osd-utility-types}/yarn.lock (100%) diff --git a/packages/kbn-utility-types/README.md b/packages/osd-utility-types/README.md similarity index 89% rename from packages/kbn-utility-types/README.md rename to packages/osd-utility-types/README.md index b57e98e37970..7cf67311e089 100644 --- a/packages/kbn-utility-types/README.md +++ b/packages/osd-utility-types/README.md @@ -1,6 +1,6 @@ -# `@kbn/utility-types` +# `@osd/utility-types` -TypeScript utility types for usage in Kibana. +TypeScript utility types for usage in OpenSearch Dashboards. - This package re-exports a subset of the items in [`utility-types`](https://github.com/piotrwitek/utility-types) - You can also add more utility types here. @@ -9,7 +9,7 @@ TypeScript utility types for usage in Kibana. ## Usage ```ts -import { UnwrapPromise } from '@kbn/utility-types'; +import { UnwrapPromise } from '@osd/utility-types'; type A = Promise; type B = UnwrapPromise; // string diff --git a/packages/kbn-utility-types/index.ts b/packages/osd-utility-types/index.ts similarity index 100% rename from packages/kbn-utility-types/index.ts rename to packages/osd-utility-types/index.ts diff --git a/packages/kbn-utility-types/package.json b/packages/osd-utility-types/package.json similarity index 75% rename from packages/kbn-utility-types/package.json rename to packages/osd-utility-types/package.json index 6b531efcebac..2413ac5e13b5 100644 --- a/packages/kbn-utility-types/package.json +++ b/packages/osd-utility-types/package.json @@ -1,17 +1,17 @@ { - "name": "@kbn/utility-types", + "name": "@osd/utility-types", "version": "1.0.0", "private": true, "license": "Apache-2.0", "main": "target", "types": "target/index.d.ts", - "kibana": { + "opensearchDashboards": { "devOnly": true }, "scripts": { "build": "tsc", - "kbn:bootstrap": "tsc", - "kbn:watch": "tsc --watch", + "osd:bootstrap": "tsc", + "osd:watch": "tsc --watch", "test": "tsd", "clean": "del target" }, diff --git a/packages/kbn-utility-types/test-d/public_contract.ts b/packages/osd-utility-types/test-d/public_contract.ts similarity index 100% rename from packages/kbn-utility-types/test-d/public_contract.ts rename to packages/osd-utility-types/test-d/public_contract.ts diff --git a/packages/kbn-utility-types/test-d/public_keys.ts b/packages/osd-utility-types/test-d/public_keys.ts similarity index 100% rename from packages/kbn-utility-types/test-d/public_keys.ts rename to packages/osd-utility-types/test-d/public_keys.ts diff --git a/packages/kbn-utility-types/test-d/shallow_promise.ts b/packages/osd-utility-types/test-d/shallow_promise.ts similarity index 100% rename from packages/kbn-utility-types/test-d/shallow_promise.ts rename to packages/osd-utility-types/test-d/shallow_promise.ts diff --git a/packages/kbn-utility-types/test-d/union_to_intersection.ts b/packages/osd-utility-types/test-d/union_to_intersection.ts similarity index 100% rename from packages/kbn-utility-types/test-d/union_to_intersection.ts rename to packages/osd-utility-types/test-d/union_to_intersection.ts diff --git a/packages/kbn-utility-types/test-d/unwrap_observable.ts b/packages/osd-utility-types/test-d/unwrap_observable.ts similarity index 100% rename from packages/kbn-utility-types/test-d/unwrap_observable.ts rename to packages/osd-utility-types/test-d/unwrap_observable.ts diff --git a/packages/kbn-utility-types/test-d/unwrap_promise.ts b/packages/osd-utility-types/test-d/unwrap_promise.ts similarity index 100% rename from packages/kbn-utility-types/test-d/unwrap_promise.ts rename to packages/osd-utility-types/test-d/unwrap_promise.ts diff --git a/packages/kbn-utility-types/test-d/values.ts b/packages/osd-utility-types/test-d/values.ts similarity index 100% rename from packages/kbn-utility-types/test-d/values.ts rename to packages/osd-utility-types/test-d/values.ts diff --git a/packages/kbn-utility-types/tsconfig.json b/packages/osd-utility-types/tsconfig.json similarity index 100% rename from packages/kbn-utility-types/tsconfig.json rename to packages/osd-utility-types/tsconfig.json diff --git a/packages/kbn-utility-types/yarn.lock b/packages/osd-utility-types/yarn.lock similarity index 100% rename from packages/kbn-utility-types/yarn.lock rename to packages/osd-utility-types/yarn.lock