Skip to content

Commit 7f24888

Browse files
authored
Merge branch 'main' into security/add-sast-scanner
2 parents 891e97e + 51d1754 commit 7f24888

9 files changed

Lines changed: 132 additions & 263 deletions

File tree

.depcheckrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ignores:
1414
- 'eslint-interactive'
1515
- 'rimraf'
1616
- 'simple-git-hooks'
17+
- 'ts-jest'
1718
- 'ts-node'
1819
- 'typedoc'
1920
# Ignore plugins for tools

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# Note: Please keep this synchronized with the `teams.json` file in the repository root.
55
# That file is used for some automated workflows, and maps controller to owning team(s).
66

7-
* @MetaMask/core-platform @MetaMask/network
7+
* @MetaMask/core-platform @MetaMask/networks

LICENSE.APACHE2

Lines changed: 0 additions & 201 deletions
This file was deleted.

LICENSE.MIT0

Lines changed: 0 additions & 16 deletions
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ Each snap in this repository has its own README with installation and usage inst
1010

1111
<!-- start package list -->
1212

13-
_No published packages yet._
14-
1513
<!-- end package list -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"@metamask/eslint-config-nodejs": "^15.0.0",
5252
"@metamask/eslint-config-typescript": "^15.0.0",
5353
"@metamask/utils": "^11.9.0",
54-
"@ts-bridge/cli": "^0.6.4",
5554
"@types/jest": "^29.5.14",
5655
"@types/lodash": "^4.14.191",
5756
"@types/node": "^16.18.54",
@@ -82,6 +81,7 @@
8281
"rimraf": "^5.0.5",
8382
"semver": "^7.6.3",
8483
"simple-git-hooks": "^2.8.0",
84+
"ts-jest": "^29.2.5",
8585
"tsx": "^4.20.5",
8686
"typescript": "~5.3.3",
8787
"typescript-eslint": "^8.48.0",

scripts/lint-teams-json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ async function getPublicWorkspaces(): Promise<Workspace[]> {
6565
'--no-private',
6666
]);
6767

68-
return stdout.split('\n').map((line) => JSON.parse(line));
68+
return stdout ? stdout.split('\n').map((line) => JSON.parse(line)) : [];
6969
}

scripts/update-readme-content.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function retrieveWorkspaces(): Promise<Workspace[]> {
8787
'--verbose',
8888
]);
8989

90-
return stdout.split('\n').map((line) => JSON.parse(line));
90+
return stdout ? stdout.split('\n').map((line) => JSON.parse(line)) : [];
9191
}
9292

9393
/**
@@ -204,7 +204,7 @@ async function generateNewReadmeContent(
204204
'su',
205205
),
206206
(_match, startMarker, endMarker) =>
207-
[startMarker, '', newPackageList, '', endMarker].join('\n'),
207+
[startMarker, newPackageList, endMarker].join('\n'),
208208
);
209209

210210
newReadmeContent = newReadmeContent.replace(
@@ -213,7 +213,7 @@ async function generateNewReadmeContent(
213213
'su',
214214
),
215215
(_match, startMarker, endMarker) =>
216-
[startMarker, '', newDependencyGraph, '', endMarker].join('\n'),
216+
[startMarker, newDependencyGraph, endMarker].join('\n'),
217217
);
218218

219219
return newReadmeContent;

0 commit comments

Comments
 (0)