Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
add support for NodeJS module require (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Jan 19, 2015
1 parent 0021e25 commit 6e9fdad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions npm.js
Expand Up @@ -26,6 +26,7 @@ var nodeBuiltins = {
'fs': 'github:jspm/nodelibs-fs@^0.1.0',
'http': 'github:jspm/nodelibs-http@^1.7.0',
'https': 'github:jspm/nodelibs-https@^0.1.0',
'module': 'github:jspm/nodelibs-module@^0.1.0',
'net': 'github:jspm/nodelibs-net@^0.1.0',
'os': 'github:jspm/nodelibs-os@^0.1.0',
'path': 'github:jspm/nodelibs-path@^0.1.0',
Expand Down
1 change: 1 addition & 0 deletions test/config.js
Expand Up @@ -22,6 +22,7 @@ System.config({
"events": "github:jspm/nodelibs-events@0.1.0",
"http": "github:jspm/nodelibs-http@1.7.0",
"https": "github:jspm/nodelibs-https@0.1.0",
"module": "github:jspm/nodelibs-module@0.1.0",
"net": "github:jspm/nodelibs-net@0.1.0",
"os": "github:jspm/nodelibs-os@0.1.0",
"path": "github:jspm/nodelibs-path@0.1.0",
Expand Down
1 change: 1 addition & 0 deletions test/package.json
Expand Up @@ -19,6 +19,7 @@
"events": "^0.1.0",
"http": "^1.7.0",
"https": "^0.1.0",
"module": "^0.1.0",
"net": "^0.1.0",
"os": "^0.1.0",
"path": "^0.1.0",
Expand Down
2 changes: 2 additions & 0 deletions test/test-node.js
Expand Up @@ -3,6 +3,7 @@ var child_process = require('child_process');
var cluster = require('cluster');
var dgram = require('dgram');
var dns = require('dns');
var module = require('module');
var net = require('net');
var readline = require('readline');
var repl = require('repl');
Expand All @@ -12,6 +13,7 @@ assert(child_process.exec);
assert(cluster.fork);
assert(dgram.Socket);
assert(dns.lookup);
assert(module.Module);
assert(net.createServer);
assert(readline.cursorTo);
assert(repl.start);
Expand Down

0 comments on commit 6e9fdad

Please sign in to comment.