Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(NA): splits types from code on @kbn/ace #118950

Merged
merged 42 commits into from
Nov 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
82961a1
chore(NA): auto creation of the package.json for the new types pkg rule
mistic Sep 30, 2021
2edbb63
chore(NA): first alpha api extractor working version
mistic Sep 30, 2021
4516010
chore(NA): support kbn-analytics
mistic Oct 1, 2021
28fa3d9
Merge remote-tracking branch 'upstream/master' into create-types-pkg-…
mistic Oct 5, 2021
2822a60
Merge remote-tracking branch 'upstream/master' into create-types-pkg-…
mistic Oct 5, 2021
d510f31
chore(NA): correctly read tsconfig files and deps from ts_config rule
mistic Oct 5, 2021
99c677c
Merge remote-tracking branch 'upstream/master' into create-types-pkg-…
mistic Oct 6, 2021
afee280
Merge remote-tracking branch 'upstream/master' into create-types-pkg-…
mistic Oct 6, 2021
78e9719
chore(NA): layed out pkg_npm_types tree artifact custom rule
mistic Oct 6, 2021
b1d9b7f
chore(NA): missing todos
mistic Oct 6, 2021
bdead3e
chore(NA): node modules link mapping
mistic Oct 6, 2021
ae054bb
chore(NA): fully working pkg_npm_types rule
mistic Oct 7, 2021
13f7801
Merge remote-tracking branch 'upstream/master' into create-types-pkg-…
mistic Oct 7, 2021
385454a
chore(NA): merge and solve conflicts with master
mistic Oct 7, 2021
1286d9b
chore(NA): merge and solve conflicts with master
mistic Oct 25, 2021
199300a
Merge remote-tracking branch 'upstream/master' into create-types-pkg-…
mistic Oct 26, 2021
5f5ed46
chore(NA): fix changes on new packages using elastic datemath pkgs
mistic Oct 26, 2021
e1b2ec0
docs(NA): remove todo
mistic Oct 26, 2021
2fa62c7
Merge remote-tracking branch 'upstream/master' into create-types-pkg-…
mistic Oct 26, 2021
ac72784
docs(NA): last todo text correction
mistic Oct 27, 2021
2df52f5
Merge branch 'master' into create-types-pkg-bazel-rule
kibanamachine Oct 27, 2021
89888b4
Merge branch 'master' into create-types-pkg-bazel-rule
kibanamachine Oct 27, 2021
15cc77a
Merge branch 'master' into create-types-pkg-bazel-rule
kibanamachine Oct 27, 2021
488407b
Merge branch 'master' into create-types-pkg-bazel-rule
kibanamachine Oct 28, 2021
8aa3705
Merge branch 'master' into create-types-pkg-bazel-rule
kibanamachine Oct 28, 2021
a036832
chore(NA): removed commented lines
mistic Oct 28, 2021
0a437b6
Merge remote-tracking branch 'upstream/master' into create-types-pkg-…
mistic Oct 28, 2021
c3d6e43
fix(NA): include missing package version
mistic Oct 28, 2021
8872d5a
Merge branch 'master' into create-types-pkg-bazel-rule
kibanamachine Oct 28, 2021
c9de76f
chore(NA): include license keys
mistic Oct 28, 2021
bdc396b
Merge branch 'create-types-pkg-bazel-rule' of github.com:mistic/kiban…
mistic Oct 28, 2021
051d25f
chore(NA): change mock types package into private
mistic Oct 29, 2021
b0ef9d1
Merge branch 'main' into create-types-pkg-bazel-rule
kibanamachine Oct 29, 2021
ffae6f4
Merge branch 'main' into create-types-pkg-bazel-rule
kibanamachine Oct 29, 2021
f94089c
Merge branch 'main' into create-types-pkg-bazel-rule
kibanamachine Nov 2, 2021
5bbdd13
Merge remote-tracking branch 'upstream/main' into create-types-pkg-ba…
mistic Nov 3, 2021
fe4e09f
chore(NA): merge and solve conflicts
mistic Nov 5, 2021
0bb1244
Merge remote-tracking branch 'upstream/main' into split-types-from-co…
mistic Nov 9, 2021
67e8500
chore(NA): splits types from code on @kbn/ace
mistic Nov 9, 2021
e0d2af9
chore(NA): merge and solve conflicts with main
mistic Nov 17, 2021
0ff19f3
Merge branch 'main' into split-types-from-code-on-kbn-ace
kibanamachine Nov 18, 2021
5a5bbb1
Merge branch 'main' into split-types-from-code-on-kbn-ace
kibanamachine Nov 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@
"@types/jsdom": "^16.2.3",
"@types/json-stable-stringify": "^1.0.32",
"@types/json5": "^0.0.30",
"@types/kbn__ace": "link:bazel-bin/packages/kbn-ace/npm_module_types",
"@types/license-checker": "15.0.0",
"@types/listr": "^0.14.0",
"@types/loader-utils": "^1.1.3",
Expand Down
1 change: 1 addition & 0 deletions packages/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ filegroup(
name = "build_pkg_types",
srcs = [
"//packages/elastic-datemath:build_types",
"//packages/kbn-ace:build_types",
],
)

Expand Down
26 changes: 22 additions & 4 deletions packages/kbn-ace/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
load("@npm//@bazel/typescript:index.bzl", "ts_config", "ts_project")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library", "pkg_npm")
load("//src/dev/bazel:index.bzl", "jsts_transpiler")
load("@npm//@bazel/typescript:index.bzl", "ts_config")
load("@build_bazel_rules_nodejs//:index.bzl", "js_library")
load("//src/dev/bazel:index.bzl", "jsts_transpiler", "pkg_npm", "pkg_npm_types", "ts_project")

PKG_BASE_NAME = "kbn-ace"
PKG_REQUIRE_NAME = "@kbn/ace"
TYPES_PKG_REQUIRE_NAME = "@types/kbn__ace"

SOURCE_FILES = glob(
[
Expand Down Expand Up @@ -78,7 +79,7 @@ ts_project(
js_library(
name = PKG_BASE_NAME,
srcs = NPM_MODULE_EXTRA_FILES,
deps = RUNTIME_DEPS + [":target_node", ":tsc_types"],
deps = RUNTIME_DEPS + [":target_node"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
Expand All @@ -97,3 +98,20 @@ filegroup(
],
visibility = ["//visibility:public"],
)

pkg_npm_types(
name = "npm_module_types",
srcs = SRCS,
deps = [":tsc_types"],
package_name = TYPES_PKG_REQUIRE_NAME,
tsconfig = ":tsconfig",
visibility = ["//visibility:public"],
)

filegroup(
name = "build_types",
srcs = [
":npm_module_types",
],
visibility = ["//visibility:public"],
)
1 change: 0 additions & 1 deletion packages/kbn-ace/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"version": "1.0.0",
"private": true,
"main": "./target_node/index.js",
"types": "./target_types/index.d.ts",
"license": "SSPL-1.0 OR Elastic License 2.0"
}
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5780,6 +5780,10 @@
resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.30.tgz#44cb52f32a809734ca562e685c6473b5754a7818"
integrity sha512-sqm9g7mHlPY/43fcSNrCYfOeX9zkTTK+euO5E6+CVijSMm5tTjkVdwdqRkY3ljjIAf8679vps5jKUoJBCLsMDA==

"@types/kbn__ace@link:bazel-bin/packages/kbn-ace/npm_module_types":
version "0.0.0"
uid ""

"@types/keyv@*":
version "3.1.1"
resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.1.tgz#e45a45324fca9dab716ab1230ee249c9fb52cfa7"
Expand Down