[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

@ -129,7 +129,6 @@ ts_project(
deps = TYPES_DEPS,
allow_js = True,
declaration = True,
declaration_map = True,
emit_declaration_only = True,
out_dir = "target_types",
tsconfig = ":tsconfig",
@ -161,6 +160,14 @@ js_library(
visibility = ["//visibility:public"],
)
js_library(
name = "npm_module_types",
srcs = NPM_MODULE_EXTRA_FILES,
deps = RUNTIME_DEPS + [":target_node", ":shared_built_assets", ":tsc_types"],
package_name = PKG_REQUIRE_NAME,
visibility = ["//visibility:public"],
)
pkg_npm(
name = "npm_module",
deps = [":" + PKG_DIRNAME],
@ -174,19 +181,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

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

View file

@ -3,7 +3,6 @@
"compilerOptions": {
"allowJs": true,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"outDir": "./target_types",
"types": [