cornhsu-polymigrate 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/bin/polymigrate.js +5 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -127,7 +127,7 @@ dotnet tool install -g Cornhsu.PolyMigrate # .NET
|
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
> The npm build ships a self-contained native binary and only downloads the one
|
|
130
|
-
> matching your platform (win32
|
|
130
|
+
> matching your platform (win32 / linux / darwin, each in x64 and arm64).
|
|
131
131
|
> Migrating a site is usually a one-off job — installing a whole SDK for a single
|
|
132
132
|
> run is friction most people won't accept, so the tool meets you where you are.
|
|
133
133
|
|
|
@@ -206,6 +206,14 @@ dotnet test
|
|
|
206
206
|
dotnet run --project src/PolyMigrate.Cli -- --help
|
|
207
207
|
```
|
|
208
208
|
|
|
209
|
+
## See also
|
|
210
|
+
|
|
211
|
+
[**多語言網站搬遷最容易搬丟的東西**](https://cornhsu.com/articles/multilingual-site-migration-pairing)
|
|
212
|
+
(in Traditional Chinese) — background on the category rather than this tool: the five pairing
|
|
213
|
+
signals in priority order, why "just read `hreflang`" often misses on real legacy sites
|
|
214
|
+
(measured on one: 528 pages, **0** declarations, sitemap 404), the five gates a declaration has to
|
|
215
|
+
pass before it is usable at all, and why URL string similarity is the wrong tool for this job.
|
|
216
|
+
|
|
209
217
|
License: [MIT](LICENSE). All dependencies are MIT/BSD/Apache-2.0
|
|
210
218
|
(imaging via **Magick.NET**; ImageSharp was dropped when its 4.x line began requiring a
|
|
211
219
|
license key at build time). See [THIRD-PARTY-NOTICES](THIRD-PARTY-NOTICES.md).
|
package/bin/polymigrate.js
CHANGED
|
@@ -19,9 +19,14 @@ const { spawnSync } = require("node:child_process");
|
|
|
19
19
|
const path = require("node:path");
|
|
20
20
|
|
|
21
21
|
// 平台 → 子套件名 / 執行檔名
|
|
22
|
+
// ⚠ 這份清單要與 npm/prepare.mjs 的 TARGETS 一致。
|
|
23
|
+
// 兩邊漂開的話症狀很隱蔽:平台包會被 npm 正確裝好,啟動時卻說「沒有預先建置版本」。
|
|
24
|
+
// (2.1.0 加了 win32-arm64 / linux-arm64,但漏改這裡,2.1.0~2.3.0 的 arm64 使用者都中。)
|
|
22
25
|
const TARGETS = {
|
|
23
26
|
"win32 x64": { pkg: "@cornhsu/polymigrate-win32-x64", bin: "polymigrate.exe" },
|
|
27
|
+
"win32 arm64": { pkg: "@cornhsu/polymigrate-win32-arm64", bin: "polymigrate.exe" },
|
|
24
28
|
"linux x64": { pkg: "@cornhsu/polymigrate-linux-x64", bin: "polymigrate" },
|
|
29
|
+
"linux arm64": { pkg: "@cornhsu/polymigrate-linux-arm64", bin: "polymigrate" },
|
|
25
30
|
"darwin x64": { pkg: "@cornhsu/polymigrate-darwin-x64", bin: "polymigrate" },
|
|
26
31
|
"darwin arm64": { pkg: "@cornhsu/polymigrate-darwin-arm64", bin: "polymigrate" },
|
|
27
32
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cornhsu-polymigrate",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "The i18n-first static-site migrator — the only one that pairs your multilingual pages automatically. Mirrors a legacy site into frontmatter Markdown, auto-matches language versions, and honestly lists what it could not pair.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"node": ">=18"
|
|
37
37
|
},
|
|
38
38
|
"optionalDependencies": {
|
|
39
|
-
"@cornhsu/polymigrate-win32-x64": "2.3.
|
|
40
|
-
"@cornhsu/polymigrate-win32-arm64": "2.3.
|
|
41
|
-
"@cornhsu/polymigrate-linux-x64": "2.3.
|
|
42
|
-
"@cornhsu/polymigrate-linux-arm64": "2.3.
|
|
43
|
-
"@cornhsu/polymigrate-darwin-x64": "2.3.
|
|
44
|
-
"@cornhsu/polymigrate-darwin-arm64": "2.3.
|
|
39
|
+
"@cornhsu/polymigrate-win32-x64": "2.3.1",
|
|
40
|
+
"@cornhsu/polymigrate-win32-arm64": "2.3.1",
|
|
41
|
+
"@cornhsu/polymigrate-linux-x64": "2.3.1",
|
|
42
|
+
"@cornhsu/polymigrate-linux-arm64": "2.3.1",
|
|
43
|
+
"@cornhsu/polymigrate-darwin-x64": "2.3.1",
|
|
44
|
+
"@cornhsu/polymigrate-darwin-arm64": "2.3.1"
|
|
45
45
|
}
|
|
46
46
|
}
|