From 2ea69669f57b5c30a8b89285bea40a38ec0a15e6 Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 14 Nov 2024 05:07:02 -0800 Subject: [PATCH 1/2] chore: import node process to skip checking runtime Deno now supports node process. It requires it to be imported from `node:process` then it should work the same way. This change means it's no longer necessary to check whether the runtime is Deno --- bin/asc.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/asc.js b/bin/asc.js index 8924e92340..274723e106 100755 --- a/bin/asc.js +++ b/bin/asc.js @@ -1,15 +1,11 @@ #!/usr/bin/env node +import process from "node:process"; const [ nodePath, thisPath, ...args ] = process.argv; const nodeArgs = process.execArgv; const hasSourceMaps = nodeArgs.includes("--enable-source-maps"); const posCustomArgs = args.indexOf("--"); -const isDeno = typeof Deno !== "undefined"; - -if (isDeno) { - process.on = function() { /* suppress 'not implemented' message */ }; -} if ((!hasSourceMaps || ~posCustomArgs) && !isDeno) { if (!hasSourceMaps) { From 4aa338d8aed63b0c1c167aff0be1101384458a2c Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 14 Nov 2024 05:12:48 -0800 Subject: [PATCH 2/2] chore: add name to NOTICE --- NOTICE | 1 + 1 file changed, 1 insertion(+) diff --git a/NOTICE b/NOTICE index 30596e20bd..f2cc3162cc 100644 --- a/NOTICE +++ b/NOTICE @@ -59,6 +59,7 @@ under the licensing terms detailed in LICENSE: * Matt Johnson-Pint * Fabián Heredia Montiel * Jonas Minnberg +* Omar Aziz Portions of this software are derived from third-party works licensed under the following terms: