Skip to content

Commit

Permalink
fix(sync-ts-config): fix no such file or directory tsconfig.json
Browse files Browse the repository at this point in the history
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

Related to: hyperledger-cacti#3366

Signed-off-by: ruzell22 <ruzell.vince.aquino@accenture.com>
  • Loading branch information
ruzell22 committed Jun 28, 2024
1 parent 199c1f0 commit cdac4a8
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/**",
],
};
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 cdac4a8

Please sign in to comment.