@digigov/cli-build 2.0.0-rc.32 → 2.0.2
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/.rush/temp/chunked-rush-logs/cli-build.lint.chunks.jsonl +3 -0
- package/.rush/temp/package-deps_publint.json +11 -12
- package/.rush/temp/shrinkwrap-deps.json +43 -29
- package/CHANGELOG.json +63 -0
- package/CHANGELOG.md +36 -1
- package/copy-files.js +4 -59
- package/generate-registry.js +3 -2
- package/index.js +129 -71
- package/package.json +8 -8
- package/rush-logs/cli-build.lint.log +3 -0
- package/transform-imports-plugin.js +263 -0
- package/tsconfig.base.json +21 -59
- package/build.js +0 -93
- package/tsconfig.common.json +0 -27
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
|
+
"tooling/cli-build/.prettierrc.cjs": "0fcfefe7e173b01f620c09ef31913d8ca6ba9a97",
|
|
4
|
+
"tooling/cli-build/.rush/temp/shrinkwrap-deps.json": "a672f69affa4699f5c2346596b15dc68eba6e4dc",
|
|
3
5
|
"tooling/cli-build/CHANGELOG.json": "5a1a7aa1f59cf4c0102b1b39eb0f4f90e1846511",
|
|
4
6
|
"tooling/cli-build/CHANGELOG.md": "58f50ec93f6f694d21ad38686b801955f71d4b7c",
|
|
5
|
-
"tooling/cli-build/
|
|
6
|
-
"tooling/cli-build/
|
|
7
|
-
"tooling/cli-build/
|
|
8
|
-
"tooling/cli-build/
|
|
9
|
-
"tooling/cli-build/
|
|
10
|
-
"tooling/cli-build/
|
|
11
|
-
"tooling/cli-build/
|
|
12
|
-
"tooling/cli-build/
|
|
13
|
-
"tooling/cli-build/tsconfig.
|
|
14
|
-
"tooling/cli-build/tsconfig.common.json": "812a69ea4a5064260b592b01ae829f219563e6ec",
|
|
15
|
-
"tooling/cli-build/tsconfig.json": "3af7f6215ba224cf8e29c32932f4330c3e1ca4b1",
|
|
16
|
-
"tooling/cli-build/.rush/temp/shrinkwrap-deps.json": "ba732128a46baa455e85d8298feb5148b98094e4"
|
|
7
|
+
"tooling/cli-build/common.js": "f375fdc948f50699dbfd1c3ffcc515fc8af0ab3e",
|
|
8
|
+
"tooling/cli-build/copy-files.js": "ab78ad33fc1b38be63981203f4cee563a7deca79",
|
|
9
|
+
"tooling/cli-build/eslint.config.js": "4d343947b7f4e5d17d38d245225a33985f643b83",
|
|
10
|
+
"tooling/cli-build/generate-registry.js": "315fb3138993ce0bf260f610ced990ba5f8c0d8c",
|
|
11
|
+
"tooling/cli-build/index.js": "7bb914a5435a7d0b11eb2449c5e234401707e516",
|
|
12
|
+
"tooling/cli-build/package.json": "2211215a10a33837e5ed84309f04dbff8dffccd3",
|
|
13
|
+
"tooling/cli-build/transform-imports-plugin.js": "d4765515054e83d1a08294676c2259f75734cd32",
|
|
14
|
+
"tooling/cli-build/tsconfig.base.json": "e849f026e6fb10feb9d0b71a7c7ca184eb6870f0",
|
|
15
|
+
"tooling/cli-build/tsconfig.json": "9db7635cf540d714b02a1de7b69a48fc2a56dfe4"
|
|
17
16
|
},
|
|
18
17
|
"arguments": "publint "
|
|
19
18
|
}
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"../../tooling/cli-build": "../../tooling/cli-build:
|
|
2
|
+
"../../tooling/cli-build": "../../tooling/cli-build:Y7F9s/rLT5lFczlRirZYiQX57wclkRc5nvpD8hxpqvE=:",
|
|
3
3
|
"@ampproject/remapping@2.3.0": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",
|
|
4
4
|
"@asamuzakjp/css-color@3.1.1": "sha512-hpRD68SV2OMcZCsrbdkccTw5FXjNDLo5OuqSHyHZfwweGsDWZwDJ2+gONyNAbazZclobMirACLw0lk8WVxIqxA==",
|
|
5
|
+
"@ast-grep/napi-darwin-arm64@0.37.0": "sha512-QAiIiaAbLvMEg/yBbyKn+p1gX2/FuaC0SMf7D7capm/oG4xGMzdeaQIcSosF4TCxxV+hIH4Bz9e4/u7w6Bnk3Q==",
|
|
6
|
+
"@ast-grep/napi-darwin-x64@0.37.0": "sha512-zvcvdgekd4ySV3zUbUp8HF5nk5zqwiMXTuVzTUdl/w08O7JjM6XPOIVT+d2o/MqwM9rsXdzdergY5oY2RdhSPA==",
|
|
7
|
+
"@ast-grep/napi-linux-arm64-gnu@0.37.0": "sha512-L7Sj0lXy8X+BqSMgr1LB8cCoWk0rericdeu+dC8/c8zpsav5Oo2IQKY1PmiZ7H8IHoFBbURLf8iklY9wsD+cyA==",
|
|
8
|
+
"@ast-grep/napi-linux-arm64-musl@0.37.0": "sha512-LF9sAvYy6es/OdyJDO3RwkX3I82Vkfsng1sqUBcoWC1jVb1wX5YVzHtpQox9JrEhGl+bNp7FYxB4Qba9OdA5GA==",
|
|
9
|
+
"@ast-grep/napi-linux-x64-gnu@0.37.0": "sha512-TViz5/klqre6aSmJzswEIjApnGjJzstG/SE8VDWsrftMBMYt2PTu3MeluZVwzSqDao8doT/P+6U11dU05UOgxw==",
|
|
10
|
+
"@ast-grep/napi-linux-x64-musl@0.37.0": "sha512-/BcCH33S9E3ovOAEoxYngUNXgb+JLg991sdyiNP2bSoYd30a9RHrG7CYwW6fMgua3ijQ474eV6cq9yZO1bCpXg==",
|
|
11
|
+
"@ast-grep/napi-win32-arm64-msvc@0.37.0": "sha512-TjQA4cFoIEW2bgjLkaL9yqT4XWuuLa5MCNd0VCDhGRDMNQ9+rhwi9eLOWRaap3xzT7g+nlbcEHL3AkVCD2+b3A==",
|
|
12
|
+
"@ast-grep/napi-win32-ia32-msvc@0.37.0": "sha512-uNmVka8fJCdYsyOlF9aZqQMLTatEYBynjChVTzUfFMDfmZ0bihs/YTqJVbkSm8TZM7CUX82apvn50z/dX5iWRA==",
|
|
13
|
+
"@ast-grep/napi-win32-x64-msvc@0.37.0": "sha512-vCiFOT3hSCQuHHfZ933GAwnPzmL0G04JxQEsBRfqONywyT8bSdDc/ECpAfr3S9VcS4JZ9/F6tkePKW/Om2Dq2g==",
|
|
14
|
+
"@ast-grep/napi@0.37.0": "sha512-Hb4o6h1Pf6yRUAX07DR4JVY7dmQw+RVQMW5/m55GoiAT/VRoKCWBtIUPPOnqDVhbx1Cjfil9b6EDrgJsUAujEQ==",
|
|
5
15
|
"@babel/code-frame@7.26.2": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==",
|
|
6
16
|
"@babel/compat-data@7.26.8": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==",
|
|
7
17
|
"@babel/core@7.26.10": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==",
|
|
@@ -23,54 +33,33 @@
|
|
|
23
33
|
"@csstools/css-color-parser@3.0.8(@csstools/css-parser-algorithms@3.0.4(@csstools/css-tokenizer@3.0.3))(@csstools/css-tokenizer@3.0.3)": "sha512-pdwotQjCCnRPuNi06jFuP68cykU1f3ZWExLe/8MQ1LOs8Xq+fTkYgd+2V8mWUWMrOn9iS2HftPVaMZDaXzGbhQ==",
|
|
24
34
|
"@csstools/css-parser-algorithms@3.0.4(@csstools/css-tokenizer@3.0.3)": "sha512-Up7rBoV77rv29d3uKHUIVubz1BTcgyUK72IvCQAbfbMv584xHcGKCKbWh7i8hPrRJ7qU4Y8IO3IY9m+iTB7P3A==",
|
|
25
35
|
"@csstools/css-tokenizer@3.0.3": "sha512-UJnjoFsmxfKUdNYdWgOB0mWUypuLvAfQPH1+pyvRJs6euowbFkFC6P13w1l8mJyi3vxYMxc9kld5jZEGRQs6bw==",
|
|
36
|
+
"@emnapi/core@1.5.0": "sha512-sbP8GzB1WDzacS8fgNPpHlp6C9VZe+SJP3F90W9rLemaQj2PzIuTEl1qDOYQf58YIpyjViI24y9aPWCjEzY2cg==",
|
|
37
|
+
"@emnapi/runtime@1.5.0": "sha512-97/BJ3iXHww3djw6hYIfErCZFee7qCtrneuLa20UXFCOTCfBM2cvQHjWJ2EG0s0MtdNwInarqCTz35i4wWXHsQ==",
|
|
38
|
+
"@emnapi/wasi-threads@1.1.0": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==",
|
|
26
39
|
"@esbuild/aix-ppc64@0.21.5": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",
|
|
27
|
-
"@esbuild/aix-ppc64@0.23.0": "sha512-3sG8Zwa5fMcA9bgqB8AfWPQ+HFke6uD3h1s3RIwUNK8EG7a4buxvuFTs3j1IMs2NXAk9F30C/FF4vxRgQCcmoQ==",
|
|
28
40
|
"@esbuild/android-arm64@0.21.5": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",
|
|
29
|
-
"@esbuild/android-arm64@0.23.0": "sha512-EuHFUYkAVfU4qBdyivULuu03FhJO4IJN9PGuABGrFy4vUuzk91P2d+npxHcFdpUnfYKy0PuV+n6bKIpHOB3prQ==",
|
|
30
41
|
"@esbuild/android-arm@0.21.5": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",
|
|
31
|
-
"@esbuild/android-arm@0.23.0": "sha512-+KuOHTKKyIKgEEqKbGTK8W7mPp+hKinbMBeEnNzjJGyFcWsfrXjSTNluJHCY1RqhxFurdD8uNXQDei7qDlR6+g==",
|
|
32
42
|
"@esbuild/android-x64@0.21.5": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",
|
|
33
|
-
"@esbuild/android-x64@0.23.0": "sha512-WRrmKidLoKDl56LsbBMhzTTBxrsVwTKdNbKDalbEZr0tcsBgCLbEtoNthOW6PX942YiYq8HzEnb4yWQMLQuipQ==",
|
|
34
43
|
"@esbuild/darwin-arm64@0.21.5": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",
|
|
35
|
-
"@esbuild/darwin-arm64@0.23.0": "sha512-YLntie/IdS31H54Ogdn+v50NuoWF5BDkEUFpiOChVa9UnKpftgwzZRrI4J132ETIi+D8n6xh9IviFV3eXdxfow==",
|
|
36
44
|
"@esbuild/darwin-x64@0.21.5": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",
|
|
37
|
-
"@esbuild/darwin-x64@0.23.0": "sha512-IMQ6eme4AfznElesHUPDZ+teuGwoRmVuuixu7sv92ZkdQcPbsNHzutd+rAfaBKo8YK3IrBEi9SLLKWJdEvJniQ==",
|
|
38
45
|
"@esbuild/freebsd-arm64@0.21.5": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",
|
|
39
|
-
"@esbuild/freebsd-arm64@0.23.0": "sha512-0muYWCng5vqaxobq6LB3YNtevDFSAZGlgtLoAc81PjUfiFz36n4KMpwhtAd4he8ToSI3TGyuhyx5xmiWNYZFyw==",
|
|
40
46
|
"@esbuild/freebsd-x64@0.21.5": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",
|
|
41
|
-
"@esbuild/freebsd-x64@0.23.0": "sha512-XKDVu8IsD0/q3foBzsXGt/KjD/yTKBCIwOHE1XwiXmrRwrX6Hbnd5Eqn/WvDekddK21tfszBSrE/WMaZh+1buQ==",
|
|
42
47
|
"@esbuild/linux-arm64@0.21.5": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",
|
|
43
|
-
"@esbuild/linux-arm64@0.23.0": "sha512-j1t5iG8jE7BhonbsEg5d9qOYcVZv/Rv6tghaXM/Ug9xahM0nX/H2gfu6X6z11QRTMT6+aywOMA8TDkhPo8aCGw==",
|
|
44
48
|
"@esbuild/linux-arm@0.21.5": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",
|
|
45
|
-
"@esbuild/linux-arm@0.23.0": "sha512-SEELSTEtOFu5LPykzA395Mc+54RMg1EUgXP+iw2SJ72+ooMwVsgfuwXo5Fn0wXNgWZsTVHwY2cg4Vi/bOD88qw==",
|
|
46
49
|
"@esbuild/linux-ia32@0.21.5": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",
|
|
47
|
-
"@esbuild/linux-ia32@0.23.0": "sha512-P7O5Tkh2NbgIm2R6x1zGJJsnacDzTFcRWZyTTMgFdVit6E98LTxO+v8LCCLWRvPrjdzXHx9FEOA8oAZPyApWUA==",
|
|
48
50
|
"@esbuild/linux-loong64@0.21.5": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",
|
|
49
|
-
"@esbuild/linux-loong64@0.23.0": "sha512-InQwepswq6urikQiIC/kkx412fqUZudBO4SYKu0N+tGhXRWUqAx+Q+341tFV6QdBifpjYgUndV1hhMq3WeJi7A==",
|
|
50
51
|
"@esbuild/linux-mips64el@0.21.5": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",
|
|
51
|
-
"@esbuild/linux-mips64el@0.23.0": "sha512-J9rflLtqdYrxHv2FqXE2i1ELgNjT+JFURt/uDMoPQLcjWQA5wDKgQA4t/dTqGa88ZVECKaD0TctwsUfHbVoi4w==",
|
|
52
52
|
"@esbuild/linux-ppc64@0.21.5": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",
|
|
53
|
-
"@esbuild/linux-ppc64@0.23.0": "sha512-cShCXtEOVc5GxU0fM+dsFD10qZ5UpcQ8AM22bYj0u/yaAykWnqXJDpd77ublcX6vdDsWLuweeuSNZk4yUxZwtw==",
|
|
54
53
|
"@esbuild/linux-riscv64@0.21.5": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",
|
|
55
|
-
"@esbuild/linux-riscv64@0.23.0": "sha512-HEtaN7Y5UB4tZPeQmgz/UhzoEyYftbMXrBCUjINGjh3uil+rB/QzzpMshz3cNUxqXN7Vr93zzVtpIDL99t9aRw==",
|
|
56
54
|
"@esbuild/linux-s390x@0.21.5": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",
|
|
57
|
-
"@esbuild/linux-s390x@0.23.0": "sha512-WDi3+NVAuyjg/Wxi+o5KPqRbZY0QhI9TjrEEm+8dmpY9Xir8+HE/HNx2JoLckhKbFopW0RdO2D72w8trZOV+Wg==",
|
|
58
55
|
"@esbuild/linux-x64@0.21.5": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",
|
|
59
|
-
"@esbuild/linux-x64@0.23.0": "sha512-a3pMQhUEJkITgAw6e0bWA+F+vFtCciMjW/LPtoj99MhVt+Mfb6bbL9hu2wmTZgNd994qTAEw+U/r6k3qHWWaOQ==",
|
|
60
56
|
"@esbuild/netbsd-x64@0.21.5": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",
|
|
61
|
-
"@esbuild/netbsd-x64@0.23.0": "sha512-cRK+YDem7lFTs2Q5nEv/HHc4LnrfBCbH5+JHu6wm2eP+d8OZNoSMYgPZJq78vqQ9g+9+nMuIsAO7skzphRXHyw==",
|
|
62
|
-
"@esbuild/openbsd-arm64@0.23.0": "sha512-suXjq53gERueVWu0OKxzWqk7NxiUWSUlrxoZK7usiF50C6ipColGR5qie2496iKGYNLhDZkPxBI3erbnYkU0rQ==",
|
|
63
57
|
"@esbuild/openbsd-x64@0.21.5": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",
|
|
64
|
-
"@esbuild/openbsd-x64@0.23.0": "sha512-6p3nHpby0DM/v15IFKMjAaayFhqnXV52aEmv1whZHX56pdkK+MEaLoQWj+H42ssFarP1PcomVhbsR4pkz09qBg==",
|
|
65
58
|
"@esbuild/sunos-x64@0.21.5": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",
|
|
66
|
-
"@esbuild/sunos-x64@0.23.0": "sha512-BFelBGfrBwk6LVrmFzCq1u1dZbG4zy/Kp93w2+y83Q5UGYF1d8sCzeLI9NXjKyujjBBniQa8R8PzLFAUrSM9OA==",
|
|
67
59
|
"@esbuild/win32-arm64@0.21.5": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",
|
|
68
|
-
"@esbuild/win32-arm64@0.23.0": "sha512-lY6AC8p4Cnb7xYHuIxQ6iYPe6MfO2CC43XXKo9nBXDb35krYt7KGhQnOkRGar5psxYkircpCqfbNDB4uJbS2jQ==",
|
|
69
60
|
"@esbuild/win32-ia32@0.21.5": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",
|
|
70
|
-
"@esbuild/win32-ia32@0.23.0": "sha512-7L1bHlOTcO4ByvI7OXVI5pNN6HSu6pUQq9yodga8izeuB1KcT2UkHaH6118QJwopExPn0rMHIseCTx1CRo/uNA==",
|
|
71
61
|
"@esbuild/win32-x64@0.21.5": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",
|
|
72
|
-
"@
|
|
73
|
-
"@eslint-community/eslint-utils@4.5.1(eslint@9.16.0(jiti@2.4.2))": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==",
|
|
62
|
+
"@eslint-community/eslint-utils@4.5.1(eslint@9.16.0(jiti@2.6.1))": "sha512-soEIOALTfTK6EjmKMMoLugwaP0rzkad90iIWd1hMO9ARkSAyjfMfkRRhLvD5qH7vvM0Cg72pieUfR6yh6XxC4w==",
|
|
74
63
|
"@eslint-community/regexpp@4.12.1": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",
|
|
75
64
|
"@eslint/config-array@0.19.2": "sha512-GNKqxfHG2ySmJOBSHg7LxeUx4xpuCoFjacmlCoYWEbaPXLwvfIjixRI12xCQZeULksQb23uiA8F40w5TojpV7w==",
|
|
76
65
|
"@eslint/core@0.12.0": "sha512-cmrR6pytBuSMTaBweKoGMwu3EiHiEC+DoyupPmlZ0HxBJBtIxwe+j/E4XPIKNx+Q74c8lXKPwYawBf5glsTkHg==",
|
|
@@ -90,6 +79,13 @@
|
|
|
90
79
|
"@jridgewell/source-map@0.3.6": "sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==",
|
|
91
80
|
"@jridgewell/sourcemap-codec@1.5.0": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
|
|
92
81
|
"@jridgewell/trace-mapping@0.3.25": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
|
|
82
|
+
"@module-federation/error-codes@0.18.0": "sha512-Woonm8ehyVIUPXChmbu80Zj6uJkC0dD9SJUZ/wOPtO8iiz/m+dkrOugAuKgoiR6qH4F+yorWila954tBz4uKsQ==",
|
|
83
|
+
"@module-federation/runtime-core@0.18.0": "sha512-ZyYhrDyVAhUzriOsVfgL6vwd+5ebYm595Y13KeMf6TKDRoUHBMTLGQ8WM4TDj8JNsy7LigncK8C03fn97of0QQ==",
|
|
84
|
+
"@module-federation/runtime-tools@0.18.0": "sha512-fSga9o4t1UfXNV/Kh6qFvRyZpPp3EHSPRISNeyT8ZoTpzDNiYzhtw0BPUSSD8m6C6XQh2s/11rI4g80UY+d+hA==",
|
|
85
|
+
"@module-federation/runtime@0.18.0": "sha512-+C4YtoSztM7nHwNyZl6dQKGUVJdsPrUdaf3HIKReg/GQbrt9uvOlUWo2NXMZ8vDAnf/QRrpSYAwXHmWDn9Obaw==",
|
|
86
|
+
"@module-federation/sdk@0.18.0": "sha512-Lo/Feq73tO2unjmpRfyyoUkTVoejhItXOk/h5C+4cistnHbTV8XHrW/13fD5e1Iu60heVdAhhelJd6F898Ve9A==",
|
|
87
|
+
"@module-federation/webpack-bundler-runtime@0.18.0": "sha512-TEvErbF+YQ+6IFimhUYKK3a5wapD90d90sLsNpcu2kB3QGT7t4nIluE25duXuZDVUKLz86tEPrza/oaaCWTpvQ==",
|
|
88
|
+
"@napi-rs/wasm-runtime@1.0.7": "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==",
|
|
93
89
|
"@next/env@13.1.1": "sha512-vFMyXtPjSAiOXOywMojxfKIqE3VWN5RCAx+tT3AS3pcKjMLFTCJFUWsKv8hC+87Z1F4W3r68qTwDFZIFmd5Xkw==",
|
|
94
90
|
"@next/swc-android-arm-eabi@13.1.1": "sha512-qnFCx1kT3JTWhWve4VkeWuZiyjG0b5T6J2iWuin74lORCupdrNukxkq9Pm+Z7PsatxuwVJMhjUoYz7H4cWzx2A==",
|
|
95
91
|
"@next/swc-android-arm64@13.1.1": "sha512-eCiZhTzjySubNqUnNkQCjU3Fh+ep3C6b5DCM5FKzsTH/3Gr/4Y7EiaPZKILbvnXmhWtKPIdcY6Zjx51t4VeTfA==",
|
|
@@ -127,8 +123,25 @@
|
|
|
127
123
|
"@rollup/rollup-win32-arm64-msvc@4.37.0": "sha512-Jm7biMazjNzTU4PrQtr7VS8ibeys9Pn29/1bm4ph7CP2kf21950LgN+BaE2mJ1QujnvOc6p54eWWiVvn05SOBg==",
|
|
128
124
|
"@rollup/rollup-win32-ia32-msvc@4.37.0": "sha512-e3/1SFm1OjefWICB2Ucstg2dxYDkDTZGDYgwufcbsxTHyqQps1UQf33dFEChBNmeSsTOyrjw2JJq0zbG5GF6RA==",
|
|
129
125
|
"@rollup/rollup-win32-x64-msvc@4.37.0": "sha512-LWbXUBwn/bcLx2sSsqy7pK5o+Nr+VCoRoAohfJ5C/aBio9nfJmGQqHAhU6pwxV/RmyTk5AqdySma7uwWGlmeuA==",
|
|
126
|
+
"@rsbuild/core@1.5.17": "sha512-tHa4puv+pEooQvSewu/K5sm270nkVPcP07Ioz1c+fbFCrFpiZWV5XumgznilS80097glUrieN+9xTbIHGXjThQ==",
|
|
127
|
+
"@rslib/core@0.15.1(typescript@5.6.2)": "sha512-rNGGHJwxU1g6u2op5Jf2JMgbRCRmMZGCNPU099Ebp5ZgjmknyaU88YMJc8L6trfBU7M6yIYlqgepqg/0L8evew==",
|
|
128
|
+
"@rspack/binding-darwin-arm64@1.5.8": "sha512-spJfpOSN3f7V90ic45/ET2NKB2ujAViCNmqb0iGurMNQtFRq+7Kd+jvVKKGXKBHBbsQrFhidSWbbqy2PBPGK8g==",
|
|
129
|
+
"@rspack/binding-darwin-x64@1.5.8": "sha512-YFOzeL1IBknBcri8vjUp43dfUBylCeQnD+9O9p0wZmLAw7DtpN5JEOe2AkGo8kdTqJjYKI+cczJPKIw6lu1LWw==",
|
|
130
|
+
"@rspack/binding-linux-arm64-gnu@1.5.8": "sha512-UAWCsOnpkvy8eAVRo0uipbHXDhnoDq5zmqWTMhpga0/a3yzCp2e+fnjZb/qnFNYb5MeL0O1mwMOYgn1M3oHILQ==",
|
|
131
|
+
"@rspack/binding-linux-arm64-musl@1.5.8": "sha512-GnSvGT4GjokPSD45cTtE+g7LgghuxSP1MRmvd+Vp/I8pnxTVSTsebRod4TAqyiv+l11nuS8yqNveK9qiOkBLWw==",
|
|
132
|
+
"@rspack/binding-linux-x64-gnu@1.5.8": "sha512-XLxh5n/pzUfxsugz/8rVBv+Tx2nqEM+9rharK69kfooDsQNKyz7PANllBQ/v4svJ+W0BRHnDL4qXSGdteZeEjA==",
|
|
133
|
+
"@rspack/binding-linux-x64-musl@1.5.8": "sha512-gE0+MZmwF+01p9/svpEESkzkLpBkVUG2o03YMpwXYC/maeRRhWvF8BJ7R3i/Ls/jFGSE87dKX5NbRLVzqksq/w==",
|
|
134
|
+
"@rspack/binding-wasm32-wasi@1.5.8": "sha512-cfg3niNHeJuxuml1Vy9VvaJrI/5TakzoaZvKX2g5S24wfzR50Eyy4JAsZ+L2voWQQp1yMJbmPYPmnTCTxdJQBQ==",
|
|
135
|
+
"@rspack/binding-win32-arm64-msvc@1.5.8": "sha512-7i3ZTHFXKfU/9Jm9XhpMkrdkxO7lfeYMNVEGkuU5dyBfRMQj69dRgPL7zJwc2plXiqu9LUOl+TwDNTjap7Q36g==",
|
|
136
|
+
"@rspack/binding-win32-ia32-msvc@1.5.8": "sha512-7ZPPWO11J+soea1+mnfaPpQt7GIodBM7A86dx6PbXgVEoZmetcWPrCF2NBfXxQWOKJ9L3RYltC4z+ZyXRgMOrw==",
|
|
137
|
+
"@rspack/binding-win32-x64-msvc@1.5.8": "sha512-N/zXQgzIxME3YUzXT8qnyzxjqcnXudWOeDh8CAG9zqTCnCiy16SFfQ/cQgEoLlD9geQntV6jx2GbDDI5kpDGMQ==",
|
|
138
|
+
"@rspack/binding@1.5.8": "sha512-/91CzhRl9r5BIQCgGsS7jA6MDbw1I2BQpbfcUUdkdKl2P79K3Zo/Mw/TvKzS86catwLaUQEgkGRmYawOfPg7ow==",
|
|
139
|
+
"@rspack/core@1.5.8(@swc/helpers@0.5.17)": "sha512-sUd2LfiDhqYVfvknuoz0+/c+wSpn693xotnG5g1CSWKZArbtwiYzBIVnNlcHGmuoBRsnj/TkSq8dTQ7gwfBroQ==",
|
|
140
|
+
"@rspack/lite-tapable@1.0.1": "sha512-VynGOEsVw2s8TAlLf/uESfrgfrq2+rcXB1muPJYBWbsm1Oa6r5qVQhjA5ggM6z/coYPrsVMgovl3Ff7Q7OCp1w==",
|
|
130
141
|
"@swc/helpers@0.4.14": "sha512-4C7nX/dvpzB7za4Ql9K81xK3HPxCpHMgwTZVyf+9JQ6VUbn9jjZVN7/Nkdz/Ugzs2CSjqnL/UPXroiVBVHUWUw==",
|
|
142
|
+
"@swc/helpers@0.5.17": "sha512-5IKx/Y13RsYd+sauPb2x+U/xZikHjolzfuDgTAl/Tdf3Q8rslRvC19NKDLgAJQ6wsqADk10ntlv08nPFw/gO/A==",
|
|
131
143
|
"@ts-morph/common@0.26.1": "sha512-Sn28TGl/4cFpcM+jwsH1wLncYq3FtN/BIpem+HOygfBWPT5pAeS5dB4VFVzV8FbnOKHpDLZmvAl4AjPEev5idA==",
|
|
144
|
+
"@tybys/wasm-util@0.10.1": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",
|
|
132
145
|
"@types/estree@1.0.6": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
|
|
133
146
|
"@types/estree@1.0.7": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==",
|
|
134
147
|
"@types/fs-extra@11.0.4": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==",
|
|
@@ -176,6 +189,7 @@
|
|
|
176
189
|
"commander@2.20.3": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
|
|
177
190
|
"concat-map@0.0.1": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
|
|
178
191
|
"convert-source-map@2.0.0": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",
|
|
192
|
+
"core-js@3.46.0": "sha512-vDMm9B0xnqqZ8uSBpZ8sNtRtOdmfShrvT6h2TuQGLs0Is+cR0DYbj/KWP6ALVNbWPpqA/qPLoOuppJN07humpA==",
|
|
179
193
|
"cross-spawn@7.0.6": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
|
|
180
194
|
"cssstyle@4.3.0": "sha512-6r0NiY0xizYqfBvWp1G7WXJ06/bZyrk7Dc6PHql82C/pKGUTKu4yAX4Y8JPamb1ob9nBKuxWzCGTRuGwU3yxJQ==",
|
|
181
195
|
"data-urls@5.0.0": "sha512-ZYP5VBHshaDAiVZxjbRVcFJpc+4xGgT0bK3vzy1HLN8jTO975HEbuYzZJcHoQEY5K1a0z8YayJkyVETa08eNTg==",
|
|
@@ -194,13 +208,12 @@
|
|
|
194
208
|
"es-object-atoms@1.1.1": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
|
195
209
|
"es-set-tostringtag@2.1.0": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
|
|
196
210
|
"esbuild@0.21.5": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",
|
|
197
|
-
"esbuild@0.23.0": "sha512-1lvV17H2bMYda/WaFb2jLPeHU3zml2k4/yagNMG8Q/YtfMjCwEUZa2eXXMgZTVSL5q1n4H7sQ0X6CdJDqqeCFA==",
|
|
198
211
|
"escalade@3.2.0": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
|
|
199
212
|
"escape-string-regexp@4.0.0": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",
|
|
200
213
|
"eslint-scope@8.3.0": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==",
|
|
201
214
|
"eslint-visitor-keys@3.4.3": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",
|
|
202
215
|
"eslint-visitor-keys@4.2.0": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",
|
|
203
|
-
"eslint@9.16.0(jiti@2.
|
|
216
|
+
"eslint@9.16.0(jiti@2.6.1)": "sha512-whp8mSQI4C8VXd+fLgSM0lh3UlmcFtVwUQjyKCFfsp+2ItAIYhlq/hqGahGqHE6cv9unM41VlqKk2VtKYR2TaA==",
|
|
204
217
|
"espree@10.3.0": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==",
|
|
205
218
|
"esquery@1.6.0": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",
|
|
206
219
|
"esrecurse@4.3.0": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
|
|
@@ -254,7 +267,7 @@
|
|
|
254
267
|
"is-number@7.0.0": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
|
255
268
|
"is-potential-custom-element-name@1.0.1": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
|
|
256
269
|
"isexe@2.0.0": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
|
|
257
|
-
"jiti@2.
|
|
270
|
+
"jiti@2.6.1": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",
|
|
258
271
|
"js-tokens@4.0.0": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",
|
|
259
272
|
"js-yaml@4.1.0": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
|
260
273
|
"jsdom@25.0.1": "sha512-8i7LzZj7BF8uplX+ZyOlIz86V6TAsSs+np6m1kpW9u0JWi4z/1t+FzcK1aek+ybTnAC4KhBL4uXCNT0wcUIeCw==",
|
|
@@ -331,6 +344,7 @@
|
|
|
331
344
|
"rollup@4.37.0": "sha512-iAtQy/L4QFU+rTJ1YUjXqJOJzuwEghqWzCEYD2FEghT7Gsy1VdABntrO4CLopA5IkflTyqNiLNwPcOJ3S7UKLg==",
|
|
332
345
|
"rrweb-cssom@0.7.1": "sha512-TrEMa7JGdVm0UThDJSx7ddw5nVm3UJS9o9CCIZ72B1vSyEZoziDqBYP3XIoi/12lKrJR8rE3jeFHMok2F/Mnsg==",
|
|
333
346
|
"rrweb-cssom@0.8.0": "sha512-guoltQEx+9aMf2gDZ0s62EcV8lsXR+0w8915TC3ITdn2YueuNjdAYh/levpU9nFaoChh9RUS5ZdQMrKfVEN9tw==",
|
|
347
|
+
"rsbuild-plugin-dts@0.15.1(@rsbuild/core@1.5.17)(typescript@5.6.2)": "sha512-RPJK/ycEYECstXYmg1vfboB4oa/yC23J4HzLkhhF8iyNYwHNxC/fSPuHkfikhGbvYyxw4pq52xHO/Y4FqcW+yA==",
|
|
334
348
|
"run-parallel@1.2.0": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
|
|
335
349
|
"rxjs@7.8.2": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==",
|
|
336
350
|
"sade@1.8.1": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
|
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/cli-build",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "2.0.2",
|
|
6
|
+
"tag": "@digigov/cli-build_v2.0.2",
|
|
7
|
+
"date": "Wed, 21 Jan 2026 15:58:34 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "update react version"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Remove @digigov/babel-ts-to-proptypes"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Revert @digigov/babel-ts-to-proptypes module"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"comment": "Fix build output to not ignore some required files"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"comment": "Update babel-core"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"comment": "Update package.json"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"none": [
|
|
30
|
+
{
|
|
31
|
+
"comment": "Add stepwise path to tsconfig.base"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"comment": "Update @types/node"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"comment": "Upgrade babel-plugin-istanbul"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"minor": [
|
|
41
|
+
{
|
|
42
|
+
"comment": "Update @babel/core to 7.26.0"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"comment": "Add generating registry files option"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"comment": "Split stories registry generation from plain registry file"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"major": [
|
|
52
|
+
{
|
|
53
|
+
"comment": "Replace babel with esbuild"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"comment": "Add linting & remove unused babel config"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"comment": "Replace esbuild with rslib & output pure ESM libraries compatible with Node"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"comment": "Use typescript & commanderjs"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
4
67
|
{
|
|
5
68
|
"version": "1.1.1",
|
|
6
69
|
"tag": "@digigov/cli-build_v1.1.1",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
# Change Log - @digigov/cli-build
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 21 Jan 2026 15:58:34 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 2.0.2
|
|
6
|
+
Wed, 21 Jan 2026 15:58:34 GMT
|
|
7
|
+
|
|
8
|
+
### Breaking changes
|
|
9
|
+
|
|
10
|
+
- Replace babel with esbuild
|
|
11
|
+
- Add linting & remove unused babel config
|
|
12
|
+
- Replace esbuild with rslib & output pure ESM libraries compatible with Node
|
|
13
|
+
- Use typescript & commanderjs
|
|
14
|
+
|
|
15
|
+
### Minor changes
|
|
16
|
+
|
|
17
|
+
- Update @babel/core to 7.26.0
|
|
18
|
+
- Add generating registry files option
|
|
19
|
+
- Split stories registry generation from plain registry file
|
|
20
|
+
|
|
21
|
+
### Patches
|
|
22
|
+
|
|
23
|
+
- update react version
|
|
24
|
+
- Remove @digigov/babel-ts-to-proptypes
|
|
25
|
+
- Revert @digigov/babel-ts-to-proptypes module
|
|
26
|
+
- Fix build output to not ignore some required files
|
|
27
|
+
- Update babel-core
|
|
28
|
+
- Update package.json
|
|
29
|
+
|
|
30
|
+
### Updates
|
|
31
|
+
|
|
32
|
+
- Add stepwise path to tsconfig.base
|
|
33
|
+
- Update @types/node
|
|
34
|
+
- Upgrade babel-plugin-istanbul
|
|
4
35
|
|
|
5
36
|
## 1.1.1
|
|
6
37
|
Mon, 29 Jan 2024 17:45:11 GMT
|
|
@@ -132,6 +163,10 @@ Thu, 30 Dec 2021 12:54:03 GMT
|
|
|
132
163
|
|
|
133
164
|
- Add @digigov/react-core core paths
|
|
134
165
|
|
|
166
|
+
### Updates
|
|
167
|
+
|
|
168
|
+
- Fix: Use the correct path for CHANGELOG.md
|
|
169
|
+
|
|
135
170
|
## 0.5.24
|
|
136
171
|
Thu, 12 Aug 2021 08:56:35 GMT
|
|
137
172
|
|
package/copy-files.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { logger, resolveProject } from '@digigov/cli/lib';
|
|
2
2
|
import fs from 'fs-extra';
|
|
3
3
|
import path from 'path';
|
|
4
|
-
import glob from 'globby';
|
|
5
4
|
|
|
6
5
|
const packagePath = process.cwd();
|
|
7
6
|
const project = resolveProject();
|
|
@@ -19,17 +18,6 @@ function includeFileInBuild(file) {
|
|
|
19
18
|
logger.debug(`Copied ${sourcePath} to build directory`);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
function copyRegistryFilesToSrc() {
|
|
23
|
-
const registryPath = path.resolve(buildPath, 'registry/index.js');
|
|
24
|
-
const lazyPath = path.resolve(buildPath, 'lazy/index.js');
|
|
25
|
-
if (!fs.existsSync(registryPath) || !fs.existsSync(lazyPath)) return;
|
|
26
|
-
|
|
27
|
-
const srcPath = path.resolve(buildPath, 'src');
|
|
28
|
-
logger.debug(`Copying registry and lazy files to ${srcPath}`);
|
|
29
|
-
fs.copySync(registryPath, path.resolve(srcPath, 'registry.js'));
|
|
30
|
-
fs.copySync(lazyPath, path.resolve(srcPath, 'lazy.js'));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
21
|
/**
|
|
34
22
|
* Create a package.json file in the build directory
|
|
35
23
|
*/
|
|
@@ -45,9 +33,10 @@ function createRootPackageFile() {
|
|
|
45
33
|
const newPackageData = {
|
|
46
34
|
...packageDataOther,
|
|
47
35
|
private: false,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
36
|
+
exports: undefined,
|
|
37
|
+
main: 'index.js',
|
|
38
|
+
module: 'index.js',
|
|
39
|
+
type: 'module', // ESM only
|
|
51
40
|
};
|
|
52
41
|
const targetPath = path.resolve(buildPath, './package.json');
|
|
53
42
|
|
|
@@ -57,33 +46,6 @@ function createRootPackageFile() {
|
|
|
57
46
|
return newPackageData;
|
|
58
47
|
}
|
|
59
48
|
|
|
60
|
-
/**
|
|
61
|
-
* Create nested package.json files in the build directory
|
|
62
|
-
*
|
|
63
|
-
*/
|
|
64
|
-
function createNestedPackageFiles() {
|
|
65
|
-
const indexPaths = glob.sync(path.join(buildPath, '**/index.js'), {
|
|
66
|
-
ignore: [path.join(buildPath, 'cjs/**')],
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
indexPaths.forEach((indexPath) => {
|
|
70
|
-
if (indexPath === path.join(buildPath, 'index.js')) return;
|
|
71
|
-
const packageData = {
|
|
72
|
-
sideEffects: false,
|
|
73
|
-
module: './index.js',
|
|
74
|
-
types: './index.d.ts',
|
|
75
|
-
main: path.relative(
|
|
76
|
-
path.dirname(indexPath),
|
|
77
|
-
indexPath.replace(buildPath, path.join(buildPath, '/cjs'))
|
|
78
|
-
),
|
|
79
|
-
};
|
|
80
|
-
fs.writeFileSync(
|
|
81
|
-
path.join(path.dirname(indexPath), 'package.json'),
|
|
82
|
-
JSON.stringify(packageData, null, 2)
|
|
83
|
-
);
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
|
|
87
49
|
/**
|
|
88
50
|
* Prepend a string to a file
|
|
89
51
|
*
|
|
@@ -126,28 +88,11 @@ function addLicense(packageData) {
|
|
|
126
88
|
});
|
|
127
89
|
}
|
|
128
90
|
|
|
129
|
-
/**
|
|
130
|
-
* Create separate index modules for each directory
|
|
131
|
-
*/
|
|
132
|
-
function createSeparateIndexModules() {
|
|
133
|
-
const files = glob.sync(path.join(buildPath, '**/*.js'), {
|
|
134
|
-
ignore: [path.join(buildPath, '**/index.js')],
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
files.forEach((file) => {
|
|
138
|
-
fs.mkdirSync(file.replace(/\.js$/, ''));
|
|
139
|
-
fs.renameSync(file, file.replace(/\.js$/, '/index.js'));
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
|
|
143
91
|
/**
|
|
144
92
|
* Run the copy files script
|
|
145
93
|
*/
|
|
146
94
|
export default function run() {
|
|
147
95
|
const packageData = createRootPackageFile();
|
|
148
|
-
createSeparateIndexModules();
|
|
149
|
-
createNestedPackageFiles();
|
|
150
|
-
copyRegistryFilesToSrc();
|
|
151
96
|
|
|
152
97
|
[
|
|
153
98
|
// use enhanced readme from workspace root for `@digigov/ui`
|
package/generate-registry.js
CHANGED
|
@@ -9,6 +9,7 @@ import { getProjectTsconfig } from './common.js';
|
|
|
9
9
|
/** @typedef {Object} Project - Represents the project to be built
|
|
10
10
|
* @property {string} root - The project root directory
|
|
11
11
|
* @property {string} name - The project name as in package.json
|
|
12
|
+
* @property {string} src - The project src directory
|
|
12
13
|
* @property {string} distDir - The project build directory
|
|
13
14
|
*/
|
|
14
15
|
|
|
@@ -118,7 +119,7 @@ export async function generateLazyRegistry(
|
|
|
118
119
|
for (const exportedComponent of exports) {
|
|
119
120
|
if (
|
|
120
121
|
exportedComponent !== 'default' &&
|
|
121
|
-
exportedComponent.match(/^[A-Z]
|
|
122
|
+
exportedComponent.match(/^[A-Z][a-z]+/)
|
|
122
123
|
) {
|
|
123
124
|
if (
|
|
124
125
|
!allComponents[exportedComponent] ||
|
|
@@ -166,7 +167,7 @@ ${componentsToExport}
|
|
|
166
167
|
* @param {string} fileName - The name of the registry file
|
|
167
168
|
*/
|
|
168
169
|
function ensureRegistryPath(project, fileName) {
|
|
169
|
-
const registryPath = path.join(project.root, project.
|
|
170
|
+
const registryPath = path.join(project.root, project.src, fileName);
|
|
170
171
|
if (fs.existsSync(registryPath))
|
|
171
172
|
throw new Error(`A "${fileName}" file already exists at ${registryPath}.`);
|
|
172
173
|
return registryPath;
|
package/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DigigovCommand, resolveProject, logger } from '@digigov/cli/lib';
|
|
2
|
-
import {
|
|
3
|
-
import { generateLazyRegistry, generateRegistry } from './generate-registry.js';
|
|
2
|
+
import { build } from '@rslib/core';
|
|
4
3
|
import copyFiles from './copy-files.js';
|
|
5
4
|
|
|
6
5
|
import { Option } from 'commander';
|
|
@@ -8,6 +7,8 @@ import path from 'path';
|
|
|
8
7
|
import glob from 'globby';
|
|
9
8
|
import assert from 'assert';
|
|
10
9
|
import { getProjectTsconfig } from './common.js';
|
|
10
|
+
import { generateLazyRegistry, generateRegistry } from './generate-registry.js';
|
|
11
|
+
import transformImportsPlugin from './transform-imports-plugin.js';
|
|
11
12
|
|
|
12
13
|
const command = new DigigovCommand('build', import.meta.url)
|
|
13
14
|
.option(
|
|
@@ -30,7 +31,8 @@ const TEST_GLOBS = [
|
|
|
30
31
|
];
|
|
31
32
|
const STORIES_GLOBS = [
|
|
32
33
|
'**/*.stories.{js,jsx,ts,tsx}',
|
|
33
|
-
'**/__stories__/**/*.{js,
|
|
34
|
+
'**/__stories__/**/*.{js,jsx,ts,tsx}',
|
|
35
|
+
'**/__stories__/*.{js,jsx,ts,tsx}',
|
|
34
36
|
];
|
|
35
37
|
|
|
36
38
|
/**
|
|
@@ -40,79 +42,135 @@ const STORIES_GLOBS = [
|
|
|
40
42
|
* @param {DigigovCommand} ctx
|
|
41
43
|
*/
|
|
42
44
|
async function main(options, ctx) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The project tsconfig, or undefined if the project is not using TypeScript
|
|
49
|
-
* @type {string | undefined}
|
|
50
|
-
*/
|
|
51
|
-
let tsconfig;
|
|
52
|
-
if (project.isTs) {
|
|
53
|
-
tsconfig = getProjectTsconfig(project.root);
|
|
54
|
-
assert(tsconfig, 'Expected tsconfig to be in project');
|
|
55
|
-
await generateTypeDeclarationFiles(project, tsconfig, ctx);
|
|
56
|
-
}
|
|
45
|
+
/** @type {string[]} */
|
|
46
|
+
let filesToDelete = [];
|
|
47
|
+
let isCleaningUp = false;
|
|
48
|
+
let signalHandlersRegistered = false;
|
|
57
49
|
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
-
logger.debug('Bundling ESM and CJS...');
|
|
63
|
-
await Promise.all([
|
|
64
|
-
buildFormat({
|
|
65
|
-
files: filesToBuild,
|
|
66
|
-
tsconfig: tsconfig,
|
|
67
|
-
format: 'cjs',
|
|
68
|
-
outdir: project.distDir + '/cjs',
|
|
69
|
-
}),
|
|
70
|
-
buildFormat({
|
|
71
|
-
files: filesToBuild,
|
|
72
|
-
tsconfig,
|
|
73
|
-
format: 'esm',
|
|
74
|
-
outdir: project.distDir,
|
|
75
|
-
}),
|
|
76
|
-
]);
|
|
77
|
-
logger.debug('Bundling done.');
|
|
78
|
-
|
|
79
|
-
if (options.generateRegistry) {
|
|
80
|
-
logger.debug('Generating registry files...');
|
|
81
|
-
|
|
82
|
-
const filesToIncludeInRegistry = filesToBuild.filter(
|
|
83
|
-
(file) => !(file.includes('native') || file.endsWith('.d.ts'))
|
|
84
|
-
);
|
|
85
|
-
let storiesFiles = null;
|
|
86
|
-
if (options.includeStories) {
|
|
87
|
-
logger.debug('Including stories in the registry...');
|
|
50
|
+
const cleanup = async () => {
|
|
51
|
+
if (isCleaningUp) return;
|
|
52
|
+
isCleaningUp = true;
|
|
88
53
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
54
|
+
if (options.generateRegistry && filesToDelete.length > 0) {
|
|
55
|
+
logger.debug('Deleting temporary registry files...');
|
|
56
|
+
try {
|
|
57
|
+
await ctx.exec('rimraf', filesToDelete, {}, true);
|
|
58
|
+
} catch (error) {
|
|
59
|
+
logger.error('Error during cleanup:', error);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Remove signal handlers after cleanup
|
|
64
|
+
if (signalHandlersRegistered) {
|
|
65
|
+
process.off('SIGINT', handleSignal);
|
|
66
|
+
process.off('SIGTERM', handleSignal);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @param {string} signal */
|
|
71
|
+
const handleSignal = async (signal) => {
|
|
72
|
+
logger.log(`\nReceived ${signal}, cleaning up...`);
|
|
73
|
+
await cleanup();
|
|
74
|
+
process.exit(signal === 'SIGINT' ? 130 : 143);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
// Register signal handlers
|
|
78
|
+
process.on('SIGINT', handleSignal);
|
|
79
|
+
process.on('SIGTERM', handleSignal);
|
|
80
|
+
signalHandlersRegistered = true;
|
|
81
|
+
|
|
82
|
+
try {
|
|
83
|
+
const project = resolveProject();
|
|
84
|
+
|
|
85
|
+
await ctx.exec('rimraf', [project.distDir]);
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The project tsconfig, or undefined if the project is not using TypeScript
|
|
89
|
+
* @type {string | undefined}
|
|
90
|
+
*/
|
|
91
|
+
let tsconfig;
|
|
92
|
+
if (project.isTs) {
|
|
93
|
+
tsconfig = getProjectTsconfig(project.root);
|
|
94
|
+
assert(tsconfig, 'Expected tsconfig to be in project');
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
if (options.generateRegistry) {
|
|
98
|
+
logger.debug('Generating registry files...');
|
|
99
|
+
|
|
100
|
+
const initialFiles = await glob(path.join(project.root, SRC_GLOB), {
|
|
101
|
+
ignore: [...TEST_GLOBS, ...STORIES_GLOBS],
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
const filesToIncludeInRegistry = initialFiles.filter(
|
|
105
|
+
(file) => !(file.includes('native') || file.endsWith('.d.ts'))
|
|
94
106
|
);
|
|
107
|
+
let storiesFiles = null;
|
|
108
|
+
if (options.includeStories) {
|
|
109
|
+
logger.debug('Including stories in the registry...');
|
|
110
|
+
|
|
111
|
+
storiesFiles = await glob(
|
|
112
|
+
STORIES_GLOBS.map((glob) =>
|
|
113
|
+
path.join(project.root, project.src, glob)
|
|
114
|
+
),
|
|
115
|
+
{
|
|
116
|
+
ignore: ['**/*.native.*, **/*.d.ts'],
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
filesToDelete = await Promise.all([
|
|
122
|
+
storiesFiles
|
|
123
|
+
? generateRegistry(project, storiesFiles, 'stories-registry.ts')
|
|
124
|
+
: null,
|
|
125
|
+
generateRegistry(project, filesToIncludeInRegistry, 'registry.ts'),
|
|
126
|
+
generateLazyRegistry(project, filesToIncludeInRegistry, 'lazy.ts'),
|
|
127
|
+
]).then((paths) => paths.filter((p) => p !== null));
|
|
128
|
+
|
|
129
|
+
logger.log('Generated registry files');
|
|
95
130
|
}
|
|
96
131
|
|
|
97
|
-
const [, ...
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
132
|
+
const IGNORE_BLOBS = [...TEST_GLOBS, ...STORIES_GLOBS].map(
|
|
133
|
+
(path) => `!${project.root}/${path}`
|
|
134
|
+
);
|
|
135
|
+
|
|
136
|
+
logger.debug('Building...');
|
|
137
|
+
await build({
|
|
138
|
+
source: {
|
|
139
|
+
tsconfigPath: tsconfig,
|
|
140
|
+
entry: {
|
|
141
|
+
index: [`${project.root}/${SRC_GLOB}`, ...IGNORE_BLOBS],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
output: {
|
|
145
|
+
distPath: {
|
|
146
|
+
root: project.distDir,
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
lib: [
|
|
150
|
+
{
|
|
151
|
+
redirect: {
|
|
152
|
+
dts: {
|
|
153
|
+
extension: true,
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
bundle: false,
|
|
157
|
+
dts: {
|
|
158
|
+
bundle: false,
|
|
159
|
+
autoExtension: true,
|
|
160
|
+
},
|
|
161
|
+
format: 'esm',
|
|
162
|
+
plugins: [
|
|
163
|
+
transformImportsPlugin(project, ['@uides/react-qr-reader']),
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
],
|
|
111
167
|
});
|
|
112
|
-
logger.
|
|
113
|
-
}
|
|
168
|
+
logger.debug('Building done.');
|
|
114
169
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
170
|
+
logger.debug('Copying files to build directory...');
|
|
171
|
+
copyFiles();
|
|
172
|
+
logger.debug('Files copied.');
|
|
173
|
+
} finally {
|
|
174
|
+
await cleanup();
|
|
175
|
+
}
|
|
118
176
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/cli-build",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Build plugin for Digigov CLI",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -12,16 +12,16 @@
|
|
|
12
12
|
"globby": "11.0.0",
|
|
13
13
|
"publint": "0.1.8",
|
|
14
14
|
"rimraf": "3.0.2",
|
|
15
|
-
"esbuild": "0.23.0",
|
|
16
15
|
"commander": "12.1.0",
|
|
17
|
-
"ts-morph": "25.0.0"
|
|
16
|
+
"ts-morph": "25.0.0",
|
|
17
|
+
"@rslib/core": "0.15.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@digigov/cli": "2.0.
|
|
21
|
-
"@digigov/cli-lint": "2.0.
|
|
20
|
+
"@digigov/cli": "workspace:2.0.2",
|
|
21
|
+
"@digigov/cli-lint": "workspace:2.0.2",
|
|
22
22
|
"publint": "0.1.8",
|
|
23
23
|
"vitest": "2.1.3",
|
|
24
|
-
"@digigov/cli-test": "2.0.
|
|
24
|
+
"@digigov/cli-test": "workspace:2.0.2",
|
|
25
25
|
"@types/fs-extra": "11.0.4",
|
|
26
26
|
"@types/node": "20.17.24",
|
|
27
27
|
"typescript": "5.6.2",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"prettier": "3.4.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@digigov/cli": "2.0.
|
|
32
|
+
"@digigov/cli": "workspace:2.0.2",
|
|
33
33
|
"next": "13.1.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependenciesMeta": {
|
|
@@ -42,4 +42,4 @@
|
|
|
42
42
|
"lint": "digigov lint",
|
|
43
43
|
"typecheck": "tsc"
|
|
44
44
|
}
|
|
45
|
-
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { logger } from '@digigov/cli/lib';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import fs from 'fs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @param {Record<string, any>} project
|
|
7
|
+
* @param {string[]} [pathsToIgnore=[]]
|
|
8
|
+
* @returns {import('@rslib/core').rsbuild.RsbuildPlugin}
|
|
9
|
+
*/
|
|
10
|
+
export default function transformImportsPlugin(project, pathsToIgnore = []) {
|
|
11
|
+
const projectName = project['name'];
|
|
12
|
+
const projectRoot = project['root'];
|
|
13
|
+
const workspace = project['workspace'];
|
|
14
|
+
|
|
15
|
+
if (Object.keys(workspace).length === 0) {
|
|
16
|
+
throw new Error(
|
|
17
|
+
`transform-imports-plugin can only be used in workspace projects. ${projectName} is not a workspace project.`
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const projectScopes =
|
|
22
|
+
workspace.config.projects.map((p) => p.packageName) ?? [];
|
|
23
|
+
|
|
24
|
+
if (projectScopes.length === 0) {
|
|
25
|
+
logger.warn(
|
|
26
|
+
`No project scopes found for ${projectName}. Plugin may not transform any imports.`
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const importRegex =
|
|
31
|
+
/(?:^|[^'"\\])(?:from|import)\s*\(\s*['"]([^'"]+)['"]\s*\)|(?:from|import)\s+['"]([^'"]+)['"]/gm;
|
|
32
|
+
|
|
33
|
+
const packageJsonCache = new Map();
|
|
34
|
+
const fileExistsCache = new Map();
|
|
35
|
+
const resolvedImportsCache = new Map();
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Check if a package uses exports field
|
|
39
|
+
* @param {string} packageName
|
|
40
|
+
* @returns {boolean}
|
|
41
|
+
*/
|
|
42
|
+
function hasExportsField(packageName) {
|
|
43
|
+
if (packageJsonCache.has(packageName)) {
|
|
44
|
+
return packageJsonCache.get(packageName);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
try {
|
|
48
|
+
const pkgJsonPath = path.join(
|
|
49
|
+
projectRoot,
|
|
50
|
+
'node_modules',
|
|
51
|
+
packageName,
|
|
52
|
+
'package.json'
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
if (fs.existsSync(pkgJsonPath)) {
|
|
56
|
+
const pkgJson = JSON.parse(fs.readFileSync(pkgJsonPath, 'utf8'));
|
|
57
|
+
const hasExports = !!pkgJson.exports;
|
|
58
|
+
packageJsonCache.set(packageName, hasExports);
|
|
59
|
+
return hasExports;
|
|
60
|
+
}
|
|
61
|
+
} catch (error) {
|
|
62
|
+
logger.warn(`Failed to read package.json for ${packageName}:`, error);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
packageJsonCache.set(packageName, false);
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Check if a file exists with any of the given suffixes (with caching)
|
|
71
|
+
* @param {string} basePath
|
|
72
|
+
* @param {string[]} suffixes
|
|
73
|
+
* @returns {string | null} The matching suffix or null
|
|
74
|
+
*/
|
|
75
|
+
function findFileWithSuffix(basePath, suffixes) {
|
|
76
|
+
const cacheKey = `${basePath}:${suffixes.join(',')}`;
|
|
77
|
+
|
|
78
|
+
if (fileExistsCache.has(cacheKey)) {
|
|
79
|
+
return fileExistsCache.get(cacheKey);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
for (const suffix of suffixes) {
|
|
83
|
+
const fullPath = basePath + suffix;
|
|
84
|
+
if (fs.existsSync(fullPath)) {
|
|
85
|
+
fileExistsCache.set(cacheKey, suffix);
|
|
86
|
+
return suffix;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
fileExistsCache.set(cacheKey, null);
|
|
91
|
+
return null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Extract the package name from an import path
|
|
96
|
+
* @param {string} importPath
|
|
97
|
+
* @returns {string} The package name
|
|
98
|
+
*/
|
|
99
|
+
function getPackageName(importPath) {
|
|
100
|
+
if (importPath.startsWith('@')) {
|
|
101
|
+
const parts = importPath.split('/');
|
|
102
|
+
return parts.slice(0, 2).join('/');
|
|
103
|
+
}
|
|
104
|
+
// @ts-expect-error - assured string
|
|
105
|
+
return importPath.split('/')[0];
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Check if a package is internal based on project scopes
|
|
110
|
+
* @param {string} packageName
|
|
111
|
+
* @returns {boolean}
|
|
112
|
+
*/
|
|
113
|
+
function isInternalPackage(packageName) {
|
|
114
|
+
return projectScopes.some((scope) => packageName.startsWith(scope));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Determine if an import should be skipped
|
|
119
|
+
* @param {string} importPath
|
|
120
|
+
* @returns {boolean}
|
|
121
|
+
*/
|
|
122
|
+
function shouldSkipImport(importPath) {
|
|
123
|
+
return (
|
|
124
|
+
!importPath ||
|
|
125
|
+
importPath.includes(projectName) ||
|
|
126
|
+
pathsToIgnore.some((ignorePath) => importPath.startsWith(ignorePath)) ||
|
|
127
|
+
importPath.endsWith('.js') ||
|
|
128
|
+
importPath.endsWith('.mjs') ||
|
|
129
|
+
importPath.endsWith('.cjs') ||
|
|
130
|
+
importPath.startsWith('.') ||
|
|
131
|
+
importPath.startsWith('/') ||
|
|
132
|
+
importPath.startsWith('node:') ||
|
|
133
|
+
!importPath.includes('/')
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Transform an internal package import
|
|
139
|
+
* @param {string} importPath
|
|
140
|
+
* @returns {string | null}
|
|
141
|
+
*/
|
|
142
|
+
function transformInternalPackageImport(importPath) {
|
|
143
|
+
const parts = importPath.split('/');
|
|
144
|
+
const dependencyName = parts[1];
|
|
145
|
+
|
|
146
|
+
if (!dependencyName) return null;
|
|
147
|
+
|
|
148
|
+
// Replace the dependency name to point to /src
|
|
149
|
+
const srcPath = [...parts];
|
|
150
|
+
srcPath[1] = `${dependencyName}/src`;
|
|
151
|
+
const srcImportPath = srcPath.join('/');
|
|
152
|
+
|
|
153
|
+
const resolvedBase = path.join(projectRoot, 'node_modules', srcImportPath);
|
|
154
|
+
|
|
155
|
+
// Check for direct file match
|
|
156
|
+
const directMatch = findFileWithSuffix(resolvedBase, [
|
|
157
|
+
'.js',
|
|
158
|
+
'.jsx',
|
|
159
|
+
'.ts',
|
|
160
|
+
'.tsx',
|
|
161
|
+
]);
|
|
162
|
+
if (directMatch) {
|
|
163
|
+
return importPath + '.js';
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
// Check for index file
|
|
167
|
+
const indexMatch = findFileWithSuffix(resolvedBase, [
|
|
168
|
+
'/index.js',
|
|
169
|
+
'/index.jsx',
|
|
170
|
+
'/index.ts',
|
|
171
|
+
'/index.tsx',
|
|
172
|
+
]);
|
|
173
|
+
if (indexMatch) {
|
|
174
|
+
return importPath + '/index.js';
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
return null;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Transform a third-party package import
|
|
182
|
+
* @param {string} importPath
|
|
183
|
+
* @returns {string | null}
|
|
184
|
+
*/
|
|
185
|
+
function transformThirdPartyImport(importPath) {
|
|
186
|
+
const resolvedBase = path.join(projectRoot, 'node_modules', importPath);
|
|
187
|
+
|
|
188
|
+
// Check for direct .js file
|
|
189
|
+
if (findFileWithSuffix(resolvedBase, ['.js'])) {
|
|
190
|
+
return importPath + '.js';
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// Check for index.js
|
|
194
|
+
if (findFileWithSuffix(resolvedBase, ['/index.js'])) {
|
|
195
|
+
return importPath + '/index.js';
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return null;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return {
|
|
202
|
+
name: 'transform-imports-plugin',
|
|
203
|
+
setup(api) {
|
|
204
|
+
api.transform(
|
|
205
|
+
{ test: /\.[jt]sx?$/, order: 'post' },
|
|
206
|
+
({ code, resourcePath }) => {
|
|
207
|
+
const transformedCode = code.replace(
|
|
208
|
+
importRegex,
|
|
209
|
+
(fullMatch, dynamicImport, staticImport) => {
|
|
210
|
+
const importPath = dynamicImport || staticImport;
|
|
211
|
+
|
|
212
|
+
// Early return for skippable imports
|
|
213
|
+
if (shouldSkipImport(importPath)) {
|
|
214
|
+
return fullMatch;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// Check cache first
|
|
218
|
+
if (resolvedImportsCache.has(importPath)) {
|
|
219
|
+
const cached = resolvedImportsCache.get(importPath);
|
|
220
|
+
return cached
|
|
221
|
+
? fullMatch.replace(importPath, cached)
|
|
222
|
+
: fullMatch;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
const packageName = getPackageName(importPath);
|
|
226
|
+
|
|
227
|
+
// Skip third-party packages with exports field
|
|
228
|
+
if (
|
|
229
|
+
!isInternalPackage(packageName) &&
|
|
230
|
+
hasExportsField(packageName)
|
|
231
|
+
) {
|
|
232
|
+
logger.debug(`Skipping ${importPath} - uses exports field`);
|
|
233
|
+
resolvedImportsCache.set(importPath, null);
|
|
234
|
+
return fullMatch;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Transform based on package type
|
|
238
|
+
let newImportPath = null;
|
|
239
|
+
if (isInternalPackage(packageName)) {
|
|
240
|
+
newImportPath = transformInternalPackageImport(importPath);
|
|
241
|
+
} else {
|
|
242
|
+
newImportPath = transformThirdPartyImport(importPath);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// Cache the result
|
|
246
|
+
resolvedImportsCache.set(importPath, newImportPath);
|
|
247
|
+
|
|
248
|
+
if (newImportPath) {
|
|
249
|
+
logger.debug(`Transformed import in ${resourcePath}`);
|
|
250
|
+
logger.debug(` ${importPath} => ${newImportPath}\n`);
|
|
251
|
+
return fullMatch.replace(importPath, newImportPath);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return fullMatch;
|
|
255
|
+
}
|
|
256
|
+
);
|
|
257
|
+
|
|
258
|
+
return { code: transformedCode };
|
|
259
|
+
}
|
|
260
|
+
);
|
|
261
|
+
},
|
|
262
|
+
};
|
|
263
|
+
}
|
package/tsconfig.base.json
CHANGED
|
@@ -1,62 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "./tsconfig.common.json",
|
|
3
2
|
"compilerOptions": {
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"@digigov/nextjs/": ["./nextjs/src"],
|
|
26
|
-
"@digigov/nextjs": ["./nextjs/src"],
|
|
27
|
-
"@digigov/react-core/*": ["../libs-ui/react-core/src/*"],
|
|
28
|
-
"@digigov/react-core/": ["../libs-ui/react-core/src"],
|
|
29
|
-
"@digigov/react-core": ["../libs-ui/react-core/src"],
|
|
30
|
-
"@digigov/react-icons/*": ["../libs-ui/react-icons/src/*"],
|
|
31
|
-
"@digigov/react-icons/": ["../libs-ui/react-icons/src"],
|
|
32
|
-
"@digigov/react-icons": ["../libs-ui/react-icons/src"],
|
|
33
|
-
"@digigov/react-experimental/*": ["../libs-ui/react-experimental/src/*"],
|
|
34
|
-
"@digigov/react-experimental/": ["../libs-ui/react-experimental/src"],
|
|
35
|
-
"@digigov/react-experimental": ["../libs-ui/react-experimental/src"],
|
|
36
|
-
"@digigov/storybook/*": ["../examples/storybook/stories/*"],
|
|
37
|
-
"@uides/stepwise/*": ["./stepwise/src/*"],
|
|
38
|
-
"@uides/stepwise/": ["./stepwise/src"],
|
|
39
|
-
"@uides/stepwise": ["./stepwise/src"]
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"include": [
|
|
43
|
-
"../../libs/auth/src/**/*.tsx",
|
|
44
|
-
"../../libs/auth/src/*.tsx",
|
|
45
|
-
"../../libs/text-search/src/**/*.tsx",
|
|
46
|
-
"../../libs/text-search/src/*.tsx",
|
|
47
|
-
"../../libs/text-search/src/**/*.ts",
|
|
48
|
-
"../../libs/text-search/src/*.ts",
|
|
49
|
-
"../../libs/form/src/**/*.(tsx|ts)",
|
|
50
|
-
"../../libs/form/src/*.(tsx|ts)",
|
|
51
|
-
"../../libs/form-dilosi-integration/src/**/*.(tsx|ts)",
|
|
52
|
-
"../../libs/form-dilosi-integration/src/*.(tsx|ts)",
|
|
53
|
-
"../../libs/ui-dilosi-integration/src/**/*.(tsx|ts)",
|
|
54
|
-
"../../libs/ui-dilosi-integration/src/*.(tsx|ts)",
|
|
55
|
-
"../../libs/ui/src/**/*.(tsx|ts)",
|
|
56
|
-
"../../libs/ui/src/*.(tsx|ts)",
|
|
57
|
-
"../../libs/auth/src/**/*.tsx",
|
|
58
|
-
"../../libs/auth/src/*.tsx",
|
|
59
|
-
"../../libs/nextjs/**/*.tsx",
|
|
60
|
-
"../../libs/nextjs/*.tsx"
|
|
61
|
-
]
|
|
3
|
+
"module": "ESNext",
|
|
4
|
+
"target": "es5",
|
|
5
|
+
"lib": ["es6", "dom", "es2019"],
|
|
6
|
+
"sourceMap": true,
|
|
7
|
+
"allowJs": true,
|
|
8
|
+
"jsx": "react",
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"moduleResolution": "bundler",
|
|
11
|
+
"forceConsistentCasingInFileNames": true,
|
|
12
|
+
"noImplicitReturns": true,
|
|
13
|
+
"noImplicitThis": true,
|
|
14
|
+
"noImplicitAny": false,
|
|
15
|
+
"strictNullChecks": true,
|
|
16
|
+
"noUnusedLocals": true,
|
|
17
|
+
"noUnusedParameters": true,
|
|
18
|
+
"allowSyntheticDefaultImports": true,
|
|
19
|
+
"skipDefaultLibCheck": true,
|
|
20
|
+
"skipLibCheck": true,
|
|
21
|
+
"resolveJsonModule": true,
|
|
22
|
+
"isolatedModules": true
|
|
23
|
+
}
|
|
62
24
|
}
|
package/build.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { logger } from '@digigov/cli/lib';
|
|
2
|
-
|
|
3
|
-
import assert from 'assert';
|
|
4
|
-
import path from 'path';
|
|
5
|
-
import fs from 'fs-extra';
|
|
6
|
-
import baseEsbuild from 'esbuild';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Generate TypeScript declaration files
|
|
10
|
-
*
|
|
11
|
-
* @param {object} project - The project object
|
|
12
|
-
* @param {string} project.root - The project root directory
|
|
13
|
-
* @param {string} project.src - The project source directory
|
|
14
|
-
* @param {string} project.distDir - The project build directory
|
|
15
|
-
* @param {string} tsconfig - The tsconfig path
|
|
16
|
-
* @param {import("@digigov/cli/lib").DigigovCommand} ctx - The command context
|
|
17
|
-
*/
|
|
18
|
-
export async function generateTypeDeclarationFiles(project, tsconfig, ctx) {
|
|
19
|
-
logger.debug('Building types...');
|
|
20
|
-
|
|
21
|
-
const distDir = path.resolve(project.root, project.distDir);
|
|
22
|
-
const projectBasename = path.basename(project.root);
|
|
23
|
-
|
|
24
|
-
await ctx.exec('tsc', [
|
|
25
|
-
'--emitDeclarationOnly',
|
|
26
|
-
'--outDir',
|
|
27
|
-
'dist',
|
|
28
|
-
'--project',
|
|
29
|
-
tsconfig,
|
|
30
|
-
]);
|
|
31
|
-
|
|
32
|
-
const projectBasePath = path.join(distDir, projectBasename);
|
|
33
|
-
logger.debug('Project base path', projectBasePath);
|
|
34
|
-
if (await fs.exists(projectBasePath)) {
|
|
35
|
-
const typesIncluded = await fs.readdir(path.join(distDir));
|
|
36
|
-
const srcPath = path.join(distDir, projectBasename, project.src);
|
|
37
|
-
const paths = await fs.readdir(srcPath);
|
|
38
|
-
|
|
39
|
-
await Promise.all([
|
|
40
|
-
// Move src files to dist
|
|
41
|
-
...paths.map((p) => {
|
|
42
|
-
logger.debug('Moving types file', p);
|
|
43
|
-
fs.move(path.join(srcPath, p), path.join(distDir, p));
|
|
44
|
-
}),
|
|
45
|
-
// Remove dirs
|
|
46
|
-
...typesIncluded.map((typesDir) => {
|
|
47
|
-
logger.debug('Removing types directory', typesDir);
|
|
48
|
-
fs.rm(path.join(distDir, typesDir), { recursive: true });
|
|
49
|
-
}),
|
|
50
|
-
]).catch((err) => {
|
|
51
|
-
logger.error('Error while building types', err);
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
logger.debug('Types built.');
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Run esbuild for the given options
|
|
59
|
-
*
|
|
60
|
-
* @param {object} options - The build options
|
|
61
|
-
* @param {string[]} options.files - The files to build
|
|
62
|
-
* @param {string | undefined} options.tsconfig - The tsconfig path
|
|
63
|
-
* @param {"esm" | "cjs"} options.format - The module format
|
|
64
|
-
* @param {string} options.outdir - The output directory
|
|
65
|
-
* @param {boolean | undefined} [options.noLogs] - Whether to log debug information
|
|
66
|
-
*/
|
|
67
|
-
export function buildFormat({
|
|
68
|
-
files: entryPoints,
|
|
69
|
-
tsconfig,
|
|
70
|
-
format,
|
|
71
|
-
outdir,
|
|
72
|
-
noLogs,
|
|
73
|
-
}) {
|
|
74
|
-
assert(format === 'esm' || format === 'cjs', 'Invalid format');
|
|
75
|
-
|
|
76
|
-
if (!noLogs)
|
|
77
|
-
logger.log(`Running: esbuild for ${format.toUpperCase()} format`);
|
|
78
|
-
return baseEsbuild.build({
|
|
79
|
-
...BASE_OPTIONS,
|
|
80
|
-
entryPoints,
|
|
81
|
-
tsconfig,
|
|
82
|
-
format,
|
|
83
|
-
outdir,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/** @type {baseEsbuild.BuildOptions} */
|
|
88
|
-
export const BASE_OPTIONS = {
|
|
89
|
-
logLevel: 'error',
|
|
90
|
-
platform: 'node',
|
|
91
|
-
sourcemap: true,
|
|
92
|
-
target: ['esnext'],
|
|
93
|
-
};
|
package/tsconfig.common.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "ESNext",
|
|
4
|
-
"target": "es5",
|
|
5
|
-
"lib": [
|
|
6
|
-
"es6",
|
|
7
|
-
"dom",
|
|
8
|
-
"es2019"
|
|
9
|
-
],
|
|
10
|
-
"sourceMap": true,
|
|
11
|
-
"allowJs": true,
|
|
12
|
-
"jsx": "react",
|
|
13
|
-
"declaration": true,
|
|
14
|
-
"moduleResolution": "node",
|
|
15
|
-
"forceConsistentCasingInFileNames": true,
|
|
16
|
-
"noImplicitReturns": true,
|
|
17
|
-
"noImplicitThis": true,
|
|
18
|
-
"noImplicitAny": false,
|
|
19
|
-
"strictNullChecks": true,
|
|
20
|
-
"noUnusedLocals": true,
|
|
21
|
-
"noUnusedParameters": true,
|
|
22
|
-
"allowSyntheticDefaultImports": true,
|
|
23
|
-
"skipDefaultLibCheck": true,
|
|
24
|
-
"skipLibCheck": true,
|
|
25
|
-
"resolveJsonModule": true
|
|
26
|
-
}
|
|
27
|
-
}
|