Comparing version 0.6.6 to 1.0.0
18
index.js
const extensions = { | ||
'.babel.js': [ | ||
{ | ||
module: 'babel-core/register', | ||
module: 'babel-register', | ||
register: function (module) { | ||
@@ -14,2 +14,10 @@ module({ | ||
{ | ||
module: 'babel-core/register', | ||
register: function (module) { | ||
module({ | ||
extensions: '.js' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel/register', | ||
@@ -38,2 +46,10 @@ register: function (module) { | ||
{ | ||
module: 'babel-register', | ||
register: function (module) { | ||
module({ | ||
extensions: '.jsx' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel-core/register', | ||
@@ -40,0 +56,0 @@ register: function (module) { |
{ | ||
"name": "interpret", | ||
"description": "A dictionary of file extensions and associated module loaders.", | ||
"version": "0.6.6", | ||
"version": "1.0.0", | ||
"homepage": "https://github.com/tkellen/node-interpret", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -16,12 +16,30 @@ # interpret | ||
{ | ||
'.babel.js': { | ||
module: 'babel/register', | ||
register: function (module) { | ||
module({ | ||
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353 | ||
// which only captures the final extension (.babel.js -> .js) | ||
extensions: '.js' | ||
}) | ||
'.babel.js': [ | ||
{ | ||
module: 'babel-register', | ||
register: function (module) { | ||
module({ | ||
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353 | ||
// which only captures the final extension (.babel.js -> .js) | ||
extensions: '.js' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel-core/register', | ||
register: function (module) { | ||
module({ | ||
extensions: '.js' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel/register', | ||
register: function (module) { | ||
module({ | ||
extensions: '.js' | ||
}); | ||
} | ||
} | ||
}, | ||
], | ||
'.cirru': 'cirru-script/lib/register', | ||
@@ -42,2 +60,18 @@ '.cjsx': 'node-cjsx/register', | ||
{ | ||
module: 'babel-register', | ||
register: function (module) { | ||
module({ | ||
extensions: '.jsx' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel-core/register', | ||
register: function (module) { | ||
module({ | ||
extensions: '.jsx' | ||
}); | ||
} | ||
}, | ||
{ | ||
module: 'babel/register', | ||
@@ -70,4 +104,4 @@ register: function (module) { | ||
}, | ||
'.ts': ['typescript-node/register', 'typescript-register', 'typescript-require'], | ||
'.tsx': ['typescript-node/register'], | ||
'.ts': ['ts-node/register', 'typescript-node/register', 'typescript-register', 'typescript-require'], | ||
'.tsx': ['ts-node/register', 'typescript-node/register'], | ||
'.wisp': 'wisp/engine/node', | ||
@@ -74,0 +108,0 @@ '.xml': 'require-xml', |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10336
119
0
127