[auto] migrate existing plugin/package configs

This commit is contained in:
spalger 2022-10-28 14:06:46 -05:00
parent e5d186a6f0
commit 52f2b33a07
No known key found for this signature in database
1208 changed files with 4104 additions and 5004 deletions

View file

@ -126,6 +126,14 @@ js_library(
visibility = ["//visibility:public"],
)
js_library(
name = "npm_module_types",
srcs = NPM_MODULE_EXTRA_FILES,
deps = RUNTIME_DEPS + [":target_node", ":target_web", ":tsc_types"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
pkg_npm(
name = "npm_module",
deps = [":" + PKG_DIRNAME],
@ -137,17 +145,8 @@ filegroup(
visibility = ["//visibility:public"],
)
pkg_npm_types(
name = "npm_module_types",
srcs = SRCS,
deps = [":tsc_types"],
package_name = PKG_REQUIRE_NAME,
tsconfig = ":tsconfig",
visibility = ["//visibility:public"],
)
filegroup(
pkg_npm(
name = "build_types",
srcs = [":npm_module_types"],
deps = [":npm_module_types"],
visibility = ["//visibility:public"],
)

View file

@ -4,5 +4,6 @@
"version": "1.0.0",
"main": "./target_node/index.js",
"browser": "./target_web/index.js",
"license": "SSPL-1.0 OR Elastic License 2.0"
"license": "SSPL-1.0 OR Elastic License 2.0",
"types": "./target_types/index.d.ts"
}