Skip to content

Commit

Permalink
deps: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Nov 10, 2022
1 parent 0ec42b6 commit 76571ff
Show file tree
Hide file tree
Showing 3 changed files with 1,081 additions and 1,030 deletions.
85 changes: 43 additions & 42 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,31 +84,32 @@
},
"dependencies": {
"@bluelovers/fast-glob": "^3.0.4",
"@bluelovers/jest-config": "^1.0.15",
"@bluelovers/string-natural-compare": "^2.0.9",
"@git-lazy/branch": "^1.0.40",
"@git-lazy/spawn": "^1.0.35",
"@git-lazy/tag": "^1.0.16",
"@git-lazy/tag-list": "^1.0.6",
"@lazy-cjk/zh-convert": "^1.0.44",
"@lazy-node/semver-part": "^1.0.19",
"@lazy-node/semver-simple-parse": "^2.0.6",
"@novel-segment/assert": "^1.0.7",
"@novel-segment/loaders": "^1.0.35",
"@novel-segment/pretty-diff": "^1.0.10",
"@novel-segment/sort-dict-table": "^1.0.12",
"@novel-segment/sort-synonym": "^1.0.10",
"@novel-segment/stringify": "^1.0.7",
"@novel-segment/util-compare": "^1.0.11",
"@ts-type/is-array": "^1.0.5",
"@yarn-tool/find-root": "^2.0.10",
"@bluelovers/jest-config": "^1.1.5",
"@bluelovers/string-natural-compare": "^2.0.11",
"@git-lazy/branch": "^1.0.44",
"@git-lazy/spawn": "^1.0.38",
"@git-lazy/tag": "^1.0.19",
"@git-lazy/tag-list": "^1.0.9",
"@lazy-cjk/zh-convert": "^1.0.47",
"@lazy-node/semver-part": "^1.0.20",
"@lazy-node/semver-simple-parse": "^2.0.8",
"@novel-segment/assert": "^1.0.8",
"@novel-segment/loaders": "^1.0.39",
"@novel-segment/pretty-diff": "^1.0.14",
"@novel-segment/sort-dict-table": "^1.0.15",
"@novel-segment/sort-synonym": "^1.0.11",
"@novel-segment/stringify": "^1.0.12",
"@novel-segment/util-compare": "^1.0.14",
"@ts-type/is-array": "^1.0.6",
"@yarn-tool/find-root": "^2.0.12",
"ansi-colors": "^4.1.3",
"array-hyper-unique": "^2.1.2",
"array-chunk-split": "^2.0.13",
"array-hyper-unique": "^2.1.4",
"bluebird": "^3.7.2",
"cache-path": "^3.0.10",
"cjk-conv": "^1.2.139",
"cache-path": "^3.0.12",
"cjk-conv": "^1.2.142",
"cli-progress": "^3.11.2",
"crlf-normalize": "^1.0.15",
"crlf-normalize": "^1.0.18",
"cross-fetch": "^3.1.5",
"debug-color2": "^1.3.2",
"dot-properties-loader": "^1.0.5",
Expand All @@ -118,44 +119,44 @@
"fs-extra": "^10.1.0",
"is-interactive": "<2 >=1",
"jszip": "^3.10.1",
"jszip-fixed-date": "^1.0.5",
"jszip-fixed-date": "^1.0.6",
"lazy-url": "^2.0.4",
"lodash": "^4.17.21",
"markdown-it": "^13.0.1",
"micromatch": "^4.0.5",
"moment": "^2.29.4",
"novel-segment": "^2.7.98",
"novel-segment-cli": "^1.1.116",
"novel-segment": "^2.7.99",
"novel-segment-cli": "^1.1.117",
"progress-estimator": "^0.3.0",
"regexp-cjk": "^3.3.106",
"regexp-cjk-with-plugin-enabled": "^1.0.12",
"semver": "^7.3.7",
"sort-object-keys2": "^3.0.2",
"ts-type": "^2.1.10",
"tslib": "^2.4.0",
"upath2": "^3.1.18",
"regexp-cjk": "^3.3.109",
"regexp-cjk-with-plugin-enabled": "^1.0.15",
"semver": "^7.3.8",
"sort-object-keys2": "^3.0.5",
"ts-type": "^3.0.1",
"tslib": "^2.4.1",
"upath2": "^3.1.19",
"xmlbuilder2": "^3.0.2",
"yargs": "^17.5.1"
"yargs": "^17.6.2"
},
"devDependencies": {
"@bluelovers/tsconfig": "^1.0.30",
"@jest/types": "^29.1.0",
"@bluelovers/tsconfig": "^1.0.32",
"@jest/types": "^29.3.1",
"@types/bluebird": "^3.5.37",
"@types/cli-progress": "^3.11.0",
"@types/conventional-changelog": "^3.1.1",
"@types/fs-extra": "^9.0.13",
"@types/jest": "^29.1.0",
"@types/lodash": "^4.14.186",
"@types/jest": "^29.2.2",
"@types/lodash": "^4.14.188",
"@types/markdown-it": "^12.2.3",
"@types/micromatch": "^4.0.2",
"@types/node": "*",
"@types/node-fetch": "<3 >=2.5.12",
"@types/semver": "^7.3.12",
"@types/semver": "^7.3.13",
"@types/yargs": "^17.0.13",
"@yarn-tool/changelog": "^2.0.18",
"git-diff-from": "^1.1.33",
"gitlog2": "^5.0.29"
"@yarn-tool/changelog": "^2.0.21",
"git-diff-from": "^1.1.37",
"gitlog2": "^5.0.32"
},
"peerDependencies": {},
"packageManager": "[email protected]"
}
}
10 changes: 8 additions & 2 deletions scripts/xliff/xliff-to-zht.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { async as FastGlob } from "@bluelovers/fast-glob/bluebird";
import { join } from 'upath2';
import { __plugin_dev_output_dir, __plugin_downloaded_dir } from '../../lib/const';
import { handleXLIFF, handleXLIFFFile } from '../../lib/build/xliff/handle-xliff';
import { handleXLIFF, handleXLIFFFile, openXLIFFFile } from '../../lib/build/xliff/handle-xliff';
import { outputFile } from "fs-extra";
import Bluebird from 'bluebird';

Expand All @@ -20,12 +20,18 @@ export default FastGlob<string>([
const new_file = join(target_out, xliff_file.replace('.zh-cn.xliff', '.xliff'));
const new_dir = new_file.replace('.xliff', '');

const old_dir = join(cwd, xliff_file.replace('.zh-cn.xliff', ''));

return Promise.all([
outputFile(new_file, result.obj.toString()),
Bluebird.mapSeries(result.obj.splitFiles(), (row) =>
Bluebird.each(result.obj.splitFiles(), (row) =>
{
return outputFile(join(new_dir, `${row.name}.xliff`), row.xml)
}),
Bluebird.each(openXLIFFFile(xliff_file, cwd).splitFiles(), (row) =>
{
return outputFile(join(old_dir, `${row.name}.xliff`), row.xml)
}),
])
})
;
Expand Down
Loading

0 comments on commit 76571ff

Please sign in to comment.