Skip to content

Commit

Permalink
Fix pipeline errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sw-joelmut committed May 3, 2024
1 parent 28de1ee commit 1df7ab1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
10 changes: 5 additions & 5 deletions libraries/botbuilder-repo-utils/src/workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
// Licensed under the MIT License.

import compact from 'lodash/compact';
import globby from 'globby';
import globby, { GlobbyOptions } from 'globby';
import minimatch from 'minimatch';
import path from 'path';
import { Package } from './package';
import { readJsonFile } from './file';

export const glob = (paths: string[], options: GlobbyOptions = {}): Promise<string[]> =>
globby(paths, { gitignore: true, cwd: process.env['INIT_CWD'], ...options });

// Represents a workspace
export interface Workspace {
absPath: string;
Expand Down Expand Up @@ -39,10 +42,7 @@ export async function collectWorkspacePackages(
filters: Partial<Filters> = {}
): Promise<Array<Workspace>> {
// Note: posix is required, this emits absolute paths that are platform specific
const paths = await globby(
workspaces.map((workspace) => path.posix.join(repoRoot, workspace, 'package.json')),
{ gitignore: true, cwd: process.env['INIT_CWD'] }
);
const paths = await glob(workspaces.map((workspace) => path.posix.join(repoRoot, workspace, 'package.json')));

const maybeWorkspaces = await Promise.all(
paths.map(
Expand Down
9 changes: 8 additions & 1 deletion libraries/botbuilder-stdlib/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"extends": "../../.eslintrc.json"
"extends": "../../.eslintrc.json",
"ignorePatterns": [
"_ts3.4/",
"dist/",
"lib/",
"node_modules/",
"vendors/"
]
}
2 changes: 1 addition & 1 deletion libraries/botbuilder-stdlib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"scripts": {
"build": "tsc -b",
"clean": "rimraf _ts3.4 lib tsconfig.tsbuildinfo",
"depcheck": "depcheck --config ../../.depcheckrc",
"depcheck": "depcheck --config ../../.depcheckrc --ignores sinon,bignumber.js,grapheme-splitter,lodash.escaperegexp,lodash.isequal,lodash.last,lodash.max,lodash.tonumber,lodash,chai,chai-as-promised",
"lint": "eslint . --ext .js,.ts",
"postbuild": "downlevel-dts lib _ts3.4/lib",
"test": "yarn build && nyc mocha --check-leaks tests"
Expand Down

0 comments on commit 1df7ab1

Please sign in to comment.