@ngneat/transloco-scoped-libs
Advanced tools
Comparing version 5.0.1 to 5.0.2
@@ -5,2 +5,4 @@ # Changelog | ||
## [5.0.2](https://github.com/ngneat/transloco/compare/transloco-scoped-libs-5.0.1...transloco-scoped-libs-5.0.2) (2023-08-04) | ||
## [5.0.1](https://github.com/ngneat/transloco/compare/transloco-scoped-libs-5.0.0...transloco-scoped-libs-5.0.1) (2023-08-01) | ||
@@ -7,0 +9,0 @@ |
{ | ||
"name": "@ngneat/transloco-scoped-libs", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "Transloco support tool for libraries with translations", | ||
@@ -52,6 +52,6 @@ "main": "src/lib/transloco-scoped-libs.js", | ||
"command-line-args": "^5.1.1", | ||
"glob": "^7.1.7", | ||
"fs-extra": "^9.1.0" | ||
"glob": "^10.3.3", | ||
"fs-extra": "^11.1.1" | ||
}, | ||
"types": "./src/index.d.ts" | ||
} |
@@ -7,3 +7,3 @@ "use strict"; | ||
const fs_1 = tslib_1.__importDefault(require("fs")); | ||
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra")); | ||
const fs_extra_1 = require("fs-extra"); | ||
const chalk_1 = tslib_1.__importDefault(require("chalk")); | ||
@@ -41,3 +41,3 @@ function toLinuxFormat(p) { | ||
try { | ||
return fs_extra_1.default.readJSONSync(path, { encoding: 'utf8' }); | ||
return (0, fs_extra_1.readJSONSync)(path, { encoding: 'utf8' }); | ||
} | ||
@@ -51,3 +51,3 @@ catch (e) { | ||
function writeJson(path, content) { | ||
fs_extra_1.default.writeJSONSync(path, content, { spaces: 2, encoding: 'utf8' }); | ||
(0, fs_extra_1.writeJSONSync)(path, content, { spaces: 2, encoding: 'utf8' }); | ||
} | ||
@@ -54,0 +54,0 @@ exports.writeJson = writeJson; |
@@ -6,5 +6,5 @@ "use strict"; | ||
const chalk_1 = tslib_1.__importDefault(require("chalk")); | ||
const glob_1 = tslib_1.__importDefault(require("glob")); | ||
const glob_1 = require("glob"); | ||
const chokidar_1 = tslib_1.__importDefault(require("chokidar")); | ||
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra")); | ||
const fs_extra_1 = require("fs-extra"); | ||
const scoped_libs_utils_1 = require("./scoped-libs.utils"); | ||
@@ -61,5 +61,4 @@ const libSrcExample = ` | ||
const { scope, strategy } = scopeConfig; | ||
(0, glob_1.default)(`${node_path_1.default.join(input, scopeConfig.path)}/**/*.json`, {}, function (err, files) { | ||
if (err) | ||
console.log(chalk_1.default.red(err)); | ||
(0, glob_1.glob)(`${node_path_1.default.join(input, scopeConfig.path)}/**/*.json`) | ||
.then((files) => { | ||
for (const output of outputs) { | ||
@@ -88,3 +87,4 @@ copyScopes({ | ||
} | ||
}); | ||
}) | ||
.catch((err) => console.log(chalk_1.default.red(err))); | ||
} | ||
@@ -115,3 +115,3 @@ } | ||
resolvedOptions.outputDir = node_path_1.default.join(resolvedOptions.outputDir, options.scope); | ||
fs_extra_1.default.mkdirsSync(resolvedOptions.outputDir); | ||
(0, fs_extra_1.mkdirsSync)(resolvedOptions.outputDir); | ||
} | ||
@@ -118,0 +118,0 @@ copyScopeTranslationFiles(resolvedOptions); |
14228
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.0.1(transitive)
+ Addedansi-styles@6.2.1(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcross-spawn@7.0.3(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.1.1(transitive)
+ Addedfs-extra@11.2.0(transitive)
+ Addedglob@10.4.1(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.1.2(transitive)
+ Addedlru-cache@10.2.2(transitive)
+ Addedminimatch@9.0.4(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removedat-least-node@1.0.0(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs-extra@9.1.0(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedfs-extra@^11.1.1
Updatedglob@^10.3.3