Skip to content

Neutral JavaScript runtime support (Deno, Bun, etc) #54

Closed
@sgammon

Description

@sgammon

Hey there @isaacs,

For context, I am using glob upstream, but I want to use it with Deno, and I can't because these imports need to be prefixed. PR is incoming shortly.

Related issues:

Distribution diff:

diff --git a/node_modules/minipass/dist/commonjs/index.js b/node_modules/minipass/dist/commonjs/index.js
index b6cdae8..b6487d9 100644
--- a/node_modules/minipass/dist/commonjs/index.js
+++ b/node_modules/minipass/dist/commonjs/index.js
@@ -10,9 +10,9 @@ const proc = typeof process === 'object' && process
         stdout: null,
         stderr: null,
     };
-const events_1 = require("events");
-const stream_1 = __importDefault(require("stream"));
-const string_decoder_1 = require("string_decoder");
+const events_1 = require("node:events");
+const stream_1 = __importDefault(require("node:stream"));
+const string_decoder_1 = require("node:string_decoder");
 /**
  * Return true if the argument is a Minipass stream, Node stream, or something
  * else that Minipass can interact with.
diff --git a/node_modules/minipass/dist/esm/index.js b/node_modules/minipass/dist/esm/index.js
index b65fafb..b5fa451 100644
--- a/node_modules/minipass/dist/esm/index.js
+++ b/node_modules/minipass/dist/esm/index.js
@@ -4,9 +4,9 @@ const proc = typeof process === 'object' && process
         stdout: null,
         stderr: null,
     };
-import { EventEmitter } from 'events';
-import Stream from 'stream';
-import { StringDecoder } from 'string_decoder';
+import { EventEmitter } from 'node:events';
+import Stream from 'node:stream';
+import { StringDecoder } from 'node:string_decoder';
 /**
  * Return true if the argument is a Minipass stream, Node stream, or something
  * else that Minipass can interact with.

This issue body was partially generated by patch-package.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions