* chore(NA): add missing bazel files to exclude when building prod bazel packages * chore(NA): use globs to support all future run targets Co-authored-by: Tiago Costa <tiagoffcc@hotmail.com>
This commit is contained in:
parent
740ed96feb
commit
7d5e24b8dc
2 changed files with 10 additions and 2 deletions
2
packages/kbn-pm/dist/index.js
vendored
2
packages/kbn-pm/dist/index.js
vendored
|
@ -59868,7 +59868,7 @@ async function copyToBuild(project, kibanaRoot, buildRoot) {
|
|||
// We want the package to have the same relative location within the build
|
||||
const relativeProjectPath = Object(path__WEBPACK_IMPORTED_MODULE_2__["relative"])(kibanaRoot, project.path);
|
||||
const buildProjectPath = Object(path__WEBPACK_IMPORTED_MODULE_2__["resolve"])(buildRoot, relativeProjectPath);
|
||||
const bazelFilesToExclude = ['!*.params', '!*_mappings.json', '!*_options.optionsvalid.d.ts'];
|
||||
const bazelFilesToExclude = ['!*.sh.runfiles*', '!*.params', '!*_mappings.json', '!*_options.optionsvalid.d.ts', '!*_loader.js', '!*_require_patch.js', '!*.sh'];
|
||||
await cpy__WEBPACK_IMPORTED_MODULE_0___default()(['**/*', '!node_modules/**', ...bazelFilesToExclude], buildProjectPath, {
|
||||
cwd: Object(path__WEBPACK_IMPORTED_MODULE_2__["join"])(kibanaRoot, 'bazel', 'bin', 'packages', Object(path__WEBPACK_IMPORTED_MODULE_2__["basename"])(buildProjectPath)),
|
||||
dot: true,
|
||||
|
|
|
@ -60,8 +60,16 @@ async function copyToBuild(project: Project, kibanaRoot: string, buildRoot: stri
|
|||
// We want the package to have the same relative location within the build
|
||||
const relativeProjectPath = relative(kibanaRoot, project.path);
|
||||
const buildProjectPath = resolve(buildRoot, relativeProjectPath);
|
||||
const bazelFilesToExclude = [
|
||||
'!*.sh.runfiles*',
|
||||
'!*.params',
|
||||
'!*_mappings.json',
|
||||
'!*_options.optionsvalid.d.ts',
|
||||
'!*_loader.js',
|
||||
'!*_require_patch.js',
|
||||
'!*.sh',
|
||||
];
|
||||
|
||||
const bazelFilesToExclude = ['!*.params', '!*_mappings.json', '!*_options.optionsvalid.d.ts'];
|
||||
await copy(['**/*', '!node_modules/**', ...bazelFilesToExclude], buildProjectPath, {
|
||||
cwd: join(kibanaRoot, 'bazel', 'bin', 'packages', basename(buildProjectPath)),
|
||||
dot: true,
|
||||
|
|
Loading…
Reference in a new issue