Skip to content
Snippets Groups Projects
Commit c7615334 authored by Alvaro Cabrera's avatar Alvaro Cabrera
Browse files

Lock deps; rebuild

parent 30814409
No related branches found
No related tags found
No related merge requests found
module.exports = require('../lib/')
module.exports = require('../lib')
.extend('faker', function() {
try {
return require('faker/locale/<%= lang %>');
......
......@@ -37,6 +37,9 @@ function bundle(options) {
}
switch (importee) {
case 'faker':
return require.resolve('faker/locale/en_US');
case 'json-schema-ref-parser':
return importee;
}
......@@ -97,6 +100,11 @@ Promise.resolve()
return bundle({ id: pkg.name, src: path.join(projectDir, 'index.js') });
})
.then(() => {
if (process.argv.slice(2).indexOf('--all') === -1) {
console.log('Skipping languages...');
return;
}
// proxied versions from faker's locales
var languages = glob.sync(path.join(require.resolve('faker'), '../locale/*.js'));
......
......@@ -8,7 +8,7 @@ module.exports = require('./lib')
})
.extend('faker', function() {
try {
return require('faker/lib');
return require('faker');
} catch (e) {
return null;
}
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -12,7 +12,7 @@
"dev": "jasmine-node spec/schema --coffee --verbose --autoTest --watchFolders lib",
"cover": "istanbul cover --root lib --x '**/spec/**' -- jasmine-node --coffee spec",
"cover:up": "codecov --file=coverage/lcov.info --disable=gcov -e TRAVIS_NODE_VERSION",
"dist": "npm run build && npm run build:dist",
"dist": "npm run build:dist",
"build": "tarima -qf VERSION=`./build/VERSION`",
"build:dist": "npm run build && node build/dist.js",
"typedoc": "typedoc --out docs/html ts/ --module commonjs",
......@@ -69,21 +69,21 @@
"eslint": "^4.14.0",
"fs-extra": "^5.0.0",
"glob": "^7.1.1",
"google-closure-compiler-js": "^20171203.0.0",
"google-closure-compiler-js": "^20180204.0.0",
"istanbul": "^0.4.5",
"jasmine-node": "2.0.0-beta4",
"jayschema": "^0.3.1",
"lodash.template": "^4.4.0",
"rollup": "^0.53.0",
"rollup": "^0.56.2",
"rollup-plugin-commonjs": "^8.2.1",
"rollup-plugin-node-resolve": "^3.0.0",
"seedrandom": "^2.4.3",
"semver": "^5.3.0",
"tarima": "^4.0.1",
"ts-node": "^4.1.0",
"ts-node": "^5.0.0",
"tslint": "^5.8.0",
"tv4": "^1.2.7",
"typedoc": "^0.9.0",
"typedoc": "^0.10.0",
"typescript": "^2.1.1",
"uglify-js": "^3.3.2",
"z-schema": "^3.18.1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment