-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 231208-typescript-module-resolution
- Loading branch information
Showing
410 changed files
with
49,310 additions
and
15,941 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
ignores: | ||
# Ignore dependencies used by Yarn binaries in `.yarn` | ||
- '@yarnpkg/*' | ||
- 'clipanion' | ||
- 'typanion' | ||
# Ignore dependencies imported implicitly by TypeScript | ||
- '@types/*' | ||
# Ignore tools (packages which we use as executables and not libraries) | ||
- '@lavamoat/allow-scripts' | ||
- '@metamask/auto-changelog' | ||
- '@metamask/create-release-branch' | ||
- 'depcheck' | ||
- 'eslint-interactive' | ||
- 'simple-git-hooks' | ||
- 'ts-node' | ||
- 'typedoc' | ||
# Ignore plugins implicitly imported by tools | ||
- 'jest-silent-reporter' | ||
- 'prettier-plugin-packagejson' | ||
# Ignore plugins we explicitly use with tools | ||
- 'babel-jest' | ||
# Ignore dependencies which plug into the NPM lifecycle | ||
- '@lavamoat/preinstall-always-fail' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'Check for PR labels that block merging' | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
ensure-blocking-pr-labels-absent: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pull-requests: read | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
cache: yarn | ||
- name: Install dependencies | ||
run: yarn --immutable | ||
- name: Run command | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
if (context.payload.pull_request.labels.some((label) => label.name === 'DO-NOT-MERGE')) { | ||
core.setFailed( | ||
"PR cannot be merged because it contains the label 'DO-NOT-MERGE'." | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: 'MetaMask Security Code Scanner' | ||
|
||
on: | ||
push: | ||
branches: ['main'] | ||
pull_request: | ||
branches: ['main'] | ||
|
||
jobs: | ||
run-security-scan: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: read | ||
contents: read | ||
security-events: write | ||
steps: | ||
- name: MetaMask Security Code Scanner | ||
uses: MetaMask/Security-Code-Scanner@main | ||
with: | ||
repo: ${{ github.repository }} | ||
paths_ignored: | | ||
'**/test*/' | ||
docs/ | ||
'**/*.test.js' | ||
'**/*.test.ts' | ||
node_modules | ||
merged-packages/ | ||
'**/jest.environment.js' | ||
project_metrics_token: ${{secrets.SECURITY_SCAN_METRICS_TOKEN}} | ||
slack_webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/index.js b/dist/index.js | ||
index 4500c4e43c3bbd24aa60b7d4cf95aa3fee8eb185..9c442bc216f99b7cfadb5ac62cb98d3ae9ce2f56 100644 | ||
--- a/dist/index.js | ||
+++ b/dist/index.js | ||
@@ -1813,6 +1813,8 @@ var cjsSplitting = () => { | ||
} | ||
const { transform: transform3 } = await Promise.resolve().then(() => require("sucrase")); | ||
const result = transform3(code, { | ||
+ // https://github.com/egoist/tsup/issues/1087 | ||
+ disableESTransforms: true, | ||
filePath: info.path, | ||
transforms: ["imports"], | ||
sourceMapOptions: this.options.sourcemap ? { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// We use Babel for our tests in scripts/. | ||
module.exports = { | ||
env: { | ||
test: { | ||
presets: ['@babel/preset-typescript'], | ||
plugins: ['@babel/plugin-transform-modules-commonjs'], | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.