Skip to content

Commit

Permalink
1.7.1: Removed esprima, added browser main entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
Download committed Mar 29, 2018
1 parent 234d9d4 commit 43b4e37
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
10 changes: 0 additions & 10 deletions lib/i18nline.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var esprima = require('esprima')
var log = require('./log')('i18nline');
var Utils = require('./utils');

Expand Down Expand Up @@ -48,15 +47,6 @@ var I18nline = {
outputFile: 'i18n/en.json',
inferredKeyFormat: 'underscored_crc32',
underscoredKeyLength: 50,
// we need to enable jsx parsing and location info in recast 0.12+ because it
// is using new esprima 4 which defaults these to false apparently
recastOptions: {
parser: {
parse: function(source) {
return esprima.parse(source, {jsx:true, loc:true})
}
}
}
}
};

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "i18nline",
"description": "Keep your translations in line",
"version": "1.7.0",
"version": "1.7.1",
"scripts": {
"test": "mocha \"./test/**/*_test.js\" --recursive",
"i18nline": "node ./bin/i18nline.js"
},
"main": "./lib/main",
"browser": "./lib/i18n",
"bin": {
"i18nline": "./bin/i18nline.js"
},
Expand Down

0 comments on commit 43b4e37

Please sign in to comment.