[kbn/generate] fix type deps and --web help (#127354)

This commit is contained in:
Spencer 2022-03-09 14:18:39 -08:00 committed by GitHub
parent cdeea9f0e0
commit 1b30d982a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

1
.github/CODEOWNERS vendored
View file

@ -225,6 +225,7 @@
/packages/kbn-es-archiver/ @elastic/kibana-operations
/packages/kbn-utils/ @elastic/kibana-operations
/packages/kbn-cli-dev-mode/ @elastic/kibana-operations
/packages/kbn-generate/ @elastic/kibana-operations
/src/cli/keystore/ @elastic/kibana-operations
/.ci/es-snapshots/ @elastic/kibana-operations
/.github/workflows/ @elastic/kibana-operations

View file

@ -58,7 +58,8 @@ export function runGenerateCli() {
string: ['dir'],
help: `
--dev Generate a package which is intended for dev-only use and can access things like devDependencies
--web Build webpack-compatible version of sources for this package
--web Build webpack-compatible version of sources for this package. If your package is intended to be
used in the browser and Node.js then you need to opt-into these sources being created.
--dir Directory where this package will live, defaults to [./packages]
--force If the packageDir already exists, delete it before generation
`,

View file

@ -48,8 +48,8 @@ RUNTIME_DEPS = [
#
# References to NPM packages work the same as RUNTIME_DEPS
TYPES_DEPS = [
"//@npm//@types/node",
"//@npm//@types/jest",
"@npm//@types/node",
"@npm//@types/jest",
]
jsts_transpiler(