-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* clean slate * npm i and ci * bigger ephemeral - handleJobs * bigger ephemeral - all stg lambdas * expanding brain * esbuild * individual: true * move aws-sdk to devdeps * add serverless plugins * install oops * Use esbuild for lambdas * legacy-peer-deps, our old friend * more peers * upgrade memory-server to get rid of @types/mongodb * deploy lambdas, peer-deps * log * correct token * pass bot creds through env vars * fix links * look for builder-bot comments, fix links * log payload * remove mmeigs * remove org * cleaned, tested * remove gh-comment as github workflow trigger * PR feedback, clean, resolve dependencies * remove legacy-peer-deps * add branch to staging ecs workflow * updated deps * remove branch from staging ecs trigger * clean up * removed config input * remove config mentions --------- Co-authored-by: branberry <[email protected]>
- Loading branch information
Showing
10 changed files
with
29,069 additions
and
4,485 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
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,38 @@ | ||
// source: https://github.com/evanw/esbuild/issues/1051 | ||
const plugin = { | ||
name: 'fix', | ||
setup(build) { | ||
// If a ".node" file is imported within a module in the "file" namespace, resolve | ||
// it to an absolute path and put it into the "node-file" virtual namespace. | ||
build.onResolve({ filter: /\.node$/, namespace: 'file' }, (args) => ({ | ||
path: require.resolve(args.path, { paths: [args.resolveDir] }), | ||
namespace: 'node-file', | ||
})); | ||
|
||
// Files in the "node-file" virtual namespace call "require()" on the | ||
// path from esbuild of the ".node" file in the output directory. | ||
build.onLoad({ filter: /.*/, namespace: 'node-file' }, (args) => ({ | ||
contents: ` | ||
import path from ${JSON.stringify(args.path)} | ||
try { module.exports = require(path) } | ||
catch {} | ||
`, | ||
})); | ||
|
||
// If a ".node" file is imported within a module in the "node-file" namespace, put | ||
// it in the "file" namespace where esbuild's default loading behavior will handle | ||
// it. It is already an absolute path since we resolved it to one above. | ||
build.onResolve({ filter: /\.node$/, namespace: 'node-file' }, (args) => ({ | ||
path: args.path, | ||
namespace: 'file', | ||
})); | ||
|
||
// Tell esbuild's default loading behavior to use the "file" loader for | ||
// these ".node" files. | ||
let opts = build.initialOptions; | ||
opts.loader = opts.loader || {}; | ||
opts.loader['.node'] = 'file'; | ||
}, | ||
}; | ||
|
||
module.exports = [plugin]; |
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.