@lingui/babel-plugin-extract-messages
Advanced tools
Comparing version 2.2.0 to 2.3.0
14
index.js
@@ -11,6 +11,2 @@ "use strict"; | ||
var _slicedToArray2 = require("babel-runtime/helpers/slicedToArray"); | ||
var _slicedToArray3 = _interopRequireDefault(_slicedToArray2); | ||
var _weakSet = require("babel-runtime/core-js/weak-set"); | ||
@@ -205,6 +201,2 @@ | ||
var _fsPath$basename$spli = _path2.default.basename(filename).split(".", 2), | ||
_fsPath$basename$spli2 = (0, _slicedToArray3.default)(_fsPath$basename$spli, 1), | ||
basename = _fsPath$basename$spli2[0]; | ||
var baseDir = _path2.default.dirname(_path2.default.relative(optsBaseDir, filename)); | ||
@@ -215,4 +207,7 @@ var targetDir = _path2.default.join(localeDir, "_build", baseDir); | ||
var catalog = {}; | ||
var catalogFilename = _path2.default.join(targetDir, basename + ".json"); | ||
var baseName = _path2.default.basename(filename); | ||
var catalogFilename = _path2.default.join(targetDir, baseName + ".json"); | ||
_mkdirp2.default.sync(targetDir); | ||
// no messages, skip file | ||
@@ -232,3 +227,2 @@ if (!messages.size) { | ||
_mkdirp2.default.sync(targetDir); | ||
_fs2.default.writeFileSync(catalogFilename, (0, _stringify2.default)(catalog, null, 2)); | ||
@@ -235,0 +229,0 @@ } |
{ | ||
"name": "@lingui/babel-plugin-extract-messages", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "Extract messages for translation", | ||
@@ -31,9 +31,9 @@ "main": "index.js", | ||
"dependencies": { | ||
"@lingui/conf": "2.2.0", | ||
"@lingui/conf": "2.3.0", | ||
"babel-generator": "^6.26.1" | ||
}, | ||
"devDependencies": { | ||
"@lingui/babel-plugin-transform-js": "2.2.0", | ||
"@lingui/babel-plugin-transform-react": "2.2.0" | ||
"@lingui/babel-plugin-transform-js": "2.3.0", | ||
"@lingui/babel-plugin-transform-react": "2.3.0" | ||
} | ||
} |
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
11904
206
+ Added@lingui/conf@2.3.0(transitive)
+ Addedcaller-callsite@2.0.0(transitive)
+ Addedcaller-path@2.0.0(transitive)
+ Addedcallsites@2.0.0(transitive)
+ Addedcosmiconfig@5.2.1(transitive)
+ Addedimport-fresh@2.0.0(transitive)
+ Addedresolve-from@3.0.0(transitive)
- Removed@lingui/conf@2.2.0(transitive)
- Removedcosmiconfig@4.0.0(transitive)
- Removedrequire-from-string@2.0.2(transitive)
Updated@lingui/conf@2.3.0