Skip to content

Commit

Permalink
fix: 增加延遲間隔來防止一些奇怪的狀況
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Feb 5, 2022
1 parent 666e1d4 commit 41aba33
Show file tree
Hide file tree
Showing 3 changed files with 179 additions and 179 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"posttest": "yarn run build:sort",
"prebuild": "ts-node scripts/update-meta.ts",
"build": "ts-node scripts/plugin-build-install-file.ts",
"build:commit": "git add ./original-plugin ./original-plugin-raw ./plugin-dev-out ./plugin-dev-raw ./lib/static ./test/__snapshots__ ./lib/const/link-of-zh-cn.ts && git commit -m \"build(release): update build\" ./original-plugin ./original-plugin-raw ./plugin-dev-out ./plugin-dev-raw ./lib/static ./test/__snapshots__ ./lib/const/link-of-zh-cn.ts & echo build:commit",
"build:commit": "git add --all ./original-plugin ./original-plugin-raw ./plugin-dev-out ./plugin-dev-raw ./lib/static ./test/__snapshots__ ./lib/const/link-of-zh-cn.ts && git commit -m \"build(release): update build\" ./original-plugin ./original-plugin-raw ./plugin-dev-out ./plugin-dev-raw ./lib/static ./test/__snapshots__ ./lib/const/link-of-zh-cn.ts & echo build:commit",
"build:dts": "ynpx dts-bundle-generator -o ./dist/index.d.ts ./src/index.ts --no-banner & echo build:dts",
"build:dts:copy": "copy .\\src\\index.d.ts .\\dist\\index.d.ts & echo build:dts",
"build:dts:tsc": "tsc --emitDeclarationOnly --declaration --noEmit false",
Expand Down Expand Up @@ -66,20 +66,20 @@
},
"dependencies": {
"@bluelovers/fast-glob": "^3.0.4",
"@lazy-cjk/zh-convert": "^1.0.42",
"@lazy-cjk/zh-convert": "^1.0.44",
"@novel-segment/assert": "^1.0.2",
"@novel-segment/loaders": "^1.0.28",
"@novel-segment/pretty-diff": "^1.0.2",
"@novel-segment/sort-dict-table": "^1.0.2",
"@novel-segment/sort-synonym": "^1.0.2",
"@novel-segment/pretty-diff": "^1.0.3",
"@novel-segment/sort-dict-table": "^1.0.3",
"@novel-segment/sort-synonym": "^1.0.3",
"@novel-segment/stringify": "^1.0.1",
"@novel-segment/util-compare": "^1.0.2",
"@yarn-tool/find-root": "^1.0.61",
"ansi-colors": "^4.1.1",
"array-hyper-unique": "^2.0.6",
"bluebird": "^3.7.2",
"cache-path": "^2.0.30",
"cjk-conv": "^1.2.137",
"cjk-conv": "^1.2.139",
"cli-progress": "^3.10.0",
"crlf-normalize": "^1.0.7",
"cross-fetch": "^3.1.5",
Expand All @@ -90,8 +90,8 @@
"jszip": "^3.7.1",
"jszip-fixed-date": "^1.0.3",
"micromatch": "^4.0.4",
"novel-segment": "^2.7.86",
"novel-segment-cli": "^1.1.104",
"novel-segment": "^2.7.87",
"novel-segment-cli": "^1.1.105",
"progress-estimator": "^0.3.0",
"tslib": "^2.3.1",
"upath2": "^3.1.12"
Expand Down
2 changes: 1 addition & 1 deletion scripts/plugin-handle-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ export default Bluebird.mapSeries([

function lazyImport(target: string)
{
return import(resolve(__dirname, target)).then(m => m.default ?? m)
return Bluebird.resolve(import(resolve(__dirname, target))).then(m => m.default ?? m).delay(2000)
}
Loading

0 comments on commit 41aba33

Please sign in to comment.