Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
we no longer compile node modules deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Champion committed Aug 15, 2017
1 parent e8217ca commit 8346f46
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
"eslint-plugin-promise": "^3.5.0",
"expect.js": "^0.3.1",
"is-es5-syntax": "^1.0.1",
"is-es6-syntax": "^1.0.1",
"is-es7-syntax": "^1.0.0",
"merge-deep": "^3.0.0",
"mocha": "^3.0.2",
"mockery": "^2.0.0",
Expand Down
8 changes: 6 additions & 2 deletions test/integration/build/build.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ const rimraf = require('../helpers/delete');
const vm = require('vm');
const fs = require('fs');
const isEs5 = require('is-es5-syntax');
const isEs6 = require('is-es6-syntax');
const isEs7 = require('is-es7-syntax');
const currentVersion = require('node-version');

describe('obt build', function () {
Expand Down Expand Up @@ -248,7 +250,7 @@ describe('obt build', function () {
.then(() => process.chdir(process.cwd()));
});

it('should compile the dependency js using babel', function () {
it('should not compile the dependency js using babel', function () {
let obt;
return obtBinPath()
.then(obtPath => {
Expand All @@ -267,7 +269,9 @@ describe('obt build', function () {
.then(() => {
const code = fs.readFileSync('build/main.js', 'utf-8');

proclaim.isTrue(isEs5(code));
proclaim.isFalse(isEs5(code));
proclaim.isFalse(isEs6(code));
proclaim.isTrue(isEs7(code));

if (currentVersion.major >= 7) {
const sandbox = {};
Expand Down

0 comments on commit 8346f46

Please sign in to comment.