Skip to content

Commit

Permalink
build(sync-ts-config): fix no such file or directory protos-js/tsconf…
Browse files Browse the repository at this point in the history
…ig.json

Primary Changes
---------------

1. Fix issue with the object key
2. Temporarily added ignore paths for the missing tsconfig.json so the script will run successfully

Fixes: #3069
Related to: #3366

Signed-off-by: ruzell22 <[email protected]>
  • Loading branch information
ruzell22 authored and petermetz committed Jul 5, 2024
1 parent 8c6d9b6 commit 29ec45c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tools/sync-npm-deps-to-tsc-projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ const main = async (argv: string[], env: NodeJS.ProcessEnv) => {
const globbyOptions: GlobbyOptions = {
cwd: PROJECT_DIR,
absolute: true,
ignore: [
"**/packages/cacti-plugin-weaver-driver-fabric/**",
"**/weaver/common/protos-js/**",
"**/weaver/samples/besu/simpleasset/**",
"**/weaver/samples/besu/simplestate/**",
], // Follow-up issue regarding these hardcoded paths (https://github.com/hyperledger/cacti/issues/3366)
};
const pkgJsonPaths = await globby(pkgJsonGlobPatterns, globbyOptions);
console.log(`Package paths (${pkgJsonPaths.length}): `, pkgJsonPaths);
Expand Down Expand Up @@ -70,7 +76,7 @@ const main = async (argv: string[], env: NodeJS.ProcessEnv) => {

const pkg = await fs.readJson(pkgJsonPath);

const deps = Object.keys(pkg.dependencies).filter((it) =>
const deps = Object.keys(pkg.dependencies || {}).filter((it) =>
it.startsWith("@hyperledger/cactus-"),
);

Expand Down

0 comments on commit 29ec45c

Please sign in to comment.