Skip to content

Commit

Permalink
Fix tooling to use new structure.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Aug 31, 2024
1 parent 5d1b080 commit 496cafc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tooling/generate-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const indexFile = path.join(methodsDir, 'index.json');
process.stdout.write('Processing:');
fs.readdirSync(methodsDir).forEach(filename => {
// skip index file
if(filename === 'index.json') {
if(['index.html', 'index.json'].includes(filename)) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion tooling/validate-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getAllRegistryEntries = () =>{
const files = fs.readdirSync(didMethodRegistryDirectory);
const entries = files.filter((file)=>{
// ignore the index file.
return file !== 'index.json';
return !(['index.html', 'index.json'].includes(file));
}).map((file) => {
const fileContent = fs.readFileSync(path.join(didMethodRegistryDirectory, file)).toString();
let didMethod = {
Expand Down

0 comments on commit 496cafc

Please sign in to comment.