diff --git a/Dockerfile b/Dockerfile index 365df4c..c5cb126 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,8 @@ RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && if [ "$NEED pnpm build:proxy; \ fi; -FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.27.0-alpine +FROM --platform=linux/amd64 registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.27.0-alpine +#FROM --platform=linux/amd64 ,linux/arm64 nginx:1.27.0-alpine ARG APP_NAME ARG APP_VERSION diff --git a/package.json b/package.json index d843838..68ee8d3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "devDependencies": { "@142vip/eslint-config": "0.0.1-alpha.3", "@142vip/fairy-cli": "0.0.3-alpha.20", - "@142vip/utils": "0.0.1-alpha.20", + "@142vip/utils": "0.0.1-alpha.28", "@142vip/vuepress": "0.0.1-alpha.10", "@vuepress/bundler-vite": "2.0.0-rc.19", "markmap-cli": "0.18.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5719757..98a9e37 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: 0.0.3-alpha.20 version: 0.0.3-alpha.20 '@142vip/utils': - specifier: 0.0.1-alpha.20 - version: 0.0.1-alpha.20 + specifier: 0.0.1-alpha.28 + version: 0.0.1-alpha.28(@types/node@22.10.2) '@142vip/vuepress': specifier: 0.0.1-alpha.10 version: 0.0.1-alpha.10(n4mhbo4urporwvhp5tipyuoa7u) @@ -70,8 +70,8 @@ packages: '@142vip/utils@0.0.1-alpha.18': resolution: {integrity: sha512-Z5ysjUb9pKE2RsN+Lwgo3qPsljhd2Vfxs0VjnF/2VzpQrC9xwyME+E58kYPO4Y+Z3ljFv16E1Sdl+4Kd+bsuzA==} - '@142vip/utils@0.0.1-alpha.20': - resolution: {integrity: sha512-cQ4h+6N/jz7pGTVNWAPenIsySjAvBvWSCoJ6kx70c4X7nuxN1b7HGpCat6Laq4dZNGrySu2R2qp1Lbo8nt0dNQ==} + '@142vip/utils@0.0.1-alpha.28': + resolution: {integrity: sha512-ihPfTXFjZjXx6oSIuvNp7Smr97Kvewniy+KNPwGvmoo48na5MC9x23UVgDJVHByJZF4C/yNUBB8if33Ao4moHw==} '@142vip/vuepress@0.0.1-alpha.10': resolution: {integrity: sha512-wg2OVn2rIgo3DfzuA/+aGvZl3Xe0AO1SlFR0c+pi4GuqCogA35XGkU3ujvcJljut79NwrD4TmC/6QKMwthYWMQ==} @@ -602,6 +602,127 @@ packages: resolution: {integrity: sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==} engines: {node: '>=18.18'} + '@inquirer/checkbox@4.1.4': + resolution: {integrity: sha512-d30576EZdApjAMceijXA5jDzRQHT/MygbC+J8I7EqA6f/FRpYxlRtRJbHF8gHeWYeSdOuTEJqonn7QLB1ELezA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@5.1.8': + resolution: {integrity: sha512-dNLWCYZvXDjO3rnQfk2iuJNL4Ivwz/T2+C3+WnNfJKsNGSuOs3wAo2F6e0p946gtSAk31nZMfW+MRmYaplPKsg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@10.1.9': + resolution: {integrity: sha512-sXhVB8n20NYkUBfDYgizGHlpRVaCRjtuzNZA6xpALIUbkgfd2Hjz+DfEN6+h1BRnuxw0/P4jCIMjMsEOAMwAJw==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@4.2.9': + resolution: {integrity: sha512-8HjOppAxO7O4wV1ETUlJFg6NDjp/W2NP5FB9ZPAcinAlNT4ZIWOLe2pUVwmmPRSV0NMdI5r/+lflN55AwZOKSw==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@4.0.11': + resolution: {integrity: sha512-OZSUW4hFMW2TYvX/Sv+NnOZgO8CHT2TU1roUCUIF2T+wfw60XFRRp9MRUPCT06cRnKL+aemt2YmTWwt7rOrNEA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@1.0.11': + resolution: {integrity: sha512-eOg92lvrn/aRUqbxRyvpEWnrvRuTYRifixHkYVpJiygTgVSBIHDqLh0SrMQXkafvULg3ck11V7xvR+zcgvpHFw==} + engines: {node: '>=18'} + + '@inquirer/input@4.1.8': + resolution: {integrity: sha512-WXJI16oOZ3/LiENCAxe8joniNp8MQxF6Wi5V+EBbVA0ZIOpFcL4I9e7f7cXse0HJeIPCWO8Lcgnk98juItCi7Q==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@3.0.11': + resolution: {integrity: sha512-pQK68CsKOgwvU2eA53AG/4npRTH2pvs/pZ2bFvzpBhrznh8Mcwt19c+nMO7LHRr3Vreu1KPhNBF3vQAKrjIulw==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@4.0.11': + resolution: {integrity: sha512-dH6zLdv+HEv1nBs96Case6eppkRggMe8LoOTl30+Gq5Wf27AO/vHFgStTVz4aoevLdNXqwE23++IXGw4eiOXTg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@7.4.0': + resolution: {integrity: sha512-EZiJidQOT4O5PYtqnu1JbF0clv36oW2CviR66c7ma4LsupmmQlUwmdReGKRp456OWPWMz3PdrPiYg3aCk3op2w==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@4.0.11': + resolution: {integrity: sha512-uAYtTx0IF/PqUAvsRrF3xvnxJV516wmR6YVONOmCWJbbt87HcDHLfL9wmBQFbNJRv5kCjdYKrZcavDkH3sVJPg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@3.0.11': + resolution: {integrity: sha512-9CWQT0ikYcg6Ls3TOa7jljsD7PgjcsYEM0bYE+Gkz+uoW9u8eaJCRHJKkucpRE5+xKtaaDbrND+nPDoxzjYyew==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@4.1.0': + resolution: {integrity: sha512-z0a2fmgTSRN+YBuiK1ROfJ2Nvrpij5lVN3gPDkQGhavdvIVGHGW29LwYZfM/j42Ai2hUghTI/uoBuTbrJk42bA==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@3.0.5': + resolution: {integrity: sha512-ZJpeIYYueOz/i/ONzrfof8g89kNdO2hjGuvULROo3O8rlB2CRtSseE5KeirnyE4t/thAn/EwvS/vuQeJCn+NZg==} + engines: {node: '>=18'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + '@jridgewell/sourcemap-codec@1.5.0': resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} @@ -1616,6 +1737,14 @@ packages: magicast: optional: true + c12@3.0.2: + resolution: {integrity: sha512-6Tzk1/TNeI3WBPpK0j/Ss4+gPj3PUJYbWl/MWDJBThFvwNGNkXtd7Cz8BJtD4aRwoGHtzQD0SnxamgUiBH0/Nw==} + peerDependencies: + magicast: ^0.3.5 + peerDependenciesMeta: + magicast: + optional: true + cac@6.7.14: resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} engines: {node: '>=8'} @@ -1723,6 +1852,10 @@ packages: resolution: {integrity: sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==} engines: {node: '>= 10'} + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + cliui@6.0.0: resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} @@ -1767,6 +1900,9 @@ packages: confbox@0.1.8: resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} + confbox@0.2.1: + resolution: {integrity: sha512-hkT3yDPFbs95mNCy1+7qNKC6Pro+/ibzYxtM2iqEigpf0sVw+bg4Zh9/snjsBcf990vfIsg5+1U7VyiyBb3etg==} + config-chain@1.1.13: resolution: {integrity: sha512-qj+f8APARXHrM0hraqXYb2/bOVSV4PvJQlNZ/DVj0QrmNM2q2euizkeuVckQ57J+W0mRH6Hvi+k50M4Jul2VRQ==} @@ -2383,6 +2519,9 @@ packages: resolution: {integrity: sha512-EHlpxMCpHWSAh1dgS6bVeoLAXGnJNdR93aabr4QCGbzOM73o5XmRfM/e5FUqsw3aagP8S8XEWUWFAxnRBnAF0Q==} engines: {node: ^18.19.0 || >=20.5.0} + exsolve@1.0.4: + resolution: {integrity: sha512-xsZH6PXaER4XoV+NiT7JHp1bJodJVT+cxeSH1G0f0tlT0lJqYuHUP3bUx2HtfTDvOagMINYp8rsqusxud3RXhw==} + extend-shallow@2.0.1: resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==} engines: {node: '>=0.10.0'} @@ -2510,6 +2649,10 @@ packages: resolution: {integrity: sha512-Wv+daGyispVoA31TrWAVR+aAdP7roubTPEM/8JzRnqXhLbdJH0T9eQyXVFF8fjk3WKTsctII6QcyxILYgNp2DA==} hasBin: true + giget@2.0.0: + resolution: {integrity: sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==} + hasBin: true + giscus@1.5.0: resolution: {integrity: sha512-t3LL0qbSO3JXq3uyQeKpF5CegstGfKX/0gI6eDe1cmnI7D56R7j52yLdzw4pdKrg3VnufwCgCM3FDz7G1Qr6lg==} @@ -3287,6 +3430,10 @@ packages: mute-stream@0.0.8: resolution: {integrity: sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==} + mute-stream@2.0.0: + resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==} + engines: {node: ^18.17.0 || >=20.5.0} + nanoid@3.3.8: resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -3367,6 +3514,11 @@ packages: engines: {node: ^14.16.0 || >=16.10.0} hasBin: true + nypm@0.6.0: + resolution: {integrity: sha512-mn8wBFV9G9+UFHIrq+pZ2r2zL4aPau/by3kJb3cM7+5tQHMt6HGQB8FDIeKFYp8o0D2pnH6nVsO88N4AmUxIWg==} + engines: {node: ^14.16.0 || >=16.10.0} + hasBin: true + object-inspect@1.13.3: resolution: {integrity: sha512-kDCGIbxkDSXE3euJZZXzc6to7fCrKHNI/hSRQnRuQ+BWjFNzZwiFF8fj/6o2t2G9/jTj8PSIYTfCLelLZEeRpA==} engines: {node: '>= 0.4'} @@ -3377,6 +3529,9 @@ packages: ohash@1.1.4: resolution: {integrity: sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==} + ohash@2.0.11: + resolution: {integrity: sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ==} + onetime@5.1.2: resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==} engines: {node: '>=6'} @@ -3528,6 +3683,9 @@ packages: pkg-types@1.3.1: resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} + pkg-types@2.1.0: + resolution: {integrity: sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==} + pluralize@8.0.0: resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} engines: {node: '>=4'} @@ -3612,6 +3770,10 @@ packages: resolution: {integrity: sha512-EJPeIn0CYrGu+hli1xilKAPXODtJ12T0sP63Ijx2/khC2JtuaN3JyNIpvmnkmaEtha9ocbG4A4cMcr+TvqvwQg==} engines: {node: '>=0.6'} + qs@6.14.0: + resolution: {integrity: sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==} + engines: {node: '>=0.6'} + queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -4582,6 +4744,10 @@ packages: resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==} engines: {node: '>=10'} + yoctocolors-cjs@2.1.2: + resolution: {integrity: sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==} + engines: {node: '>=18'} + yoctocolors@2.1.1: resolution: {integrity: sha512-GQHQqAopRhwU8Kt1DDM8NjibDXHC8eoh1erhGAJPEyveY9qqVeXvVikNKrDz69sHowPMorbPUrH/mx8c50eiBQ==} engines: {node: '>=18'} @@ -4684,17 +4850,22 @@ snapshots: qs: 6.13.1 semver: 7.7.1 - '@142vip/utils@0.0.1-alpha.20': + '@142vip/utils@0.0.1-alpha.28(@types/node@22.10.2)': dependencies: + '@inquirer/prompts': 7.4.0(@types/node@22.10.2) ansi-colors: 4.1.3 + c12: 3.0.2 commander: 12.1.0 + convert-gitmoji: 0.1.5 dayjs: 1.11.13 - inquirer: 7.3.3 klona: 2.0.6 lodash: 4.17.21 nanoid: 3.3.8 - qs: 6.13.1 + qs: 6.14.0 semver: 7.7.1 + transitivePeerDependencies: + - '@types/node' + - magicast '@142vip/vuepress@0.0.1-alpha.10(n4mhbo4urporwvhp5tipyuoa7u)': dependencies: @@ -5091,6 +5262,122 @@ snapshots: '@humanwhocodes/retry@0.4.2': {} + '@inquirer/checkbox@4.1.4(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/figures': 1.0.11 + '@inquirer/type': 3.0.5(@types/node@22.10.2) + ansi-escapes: 4.3.2 + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/confirm@5.1.8(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/type': 3.0.5(@types/node@22.10.2) + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/core@10.1.9(@types/node@22.10.2)': + dependencies: + '@inquirer/figures': 1.0.11 + '@inquirer/type': 3.0.5(@types/node@22.10.2) + ansi-escapes: 4.3.2 + cli-width: 4.1.0 + mute-stream: 2.0.0 + signal-exit: 4.1.0 + wrap-ansi: 6.2.0 + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/editor@4.2.9(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/type': 3.0.5(@types/node@22.10.2) + external-editor: 3.1.0 + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/expand@4.0.11(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/type': 3.0.5(@types/node@22.10.2) + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/figures@1.0.11': {} + + '@inquirer/input@4.1.8(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/type': 3.0.5(@types/node@22.10.2) + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/number@3.0.11(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/type': 3.0.5(@types/node@22.10.2) + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/password@4.0.11(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/type': 3.0.5(@types/node@22.10.2) + ansi-escapes: 4.3.2 + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/prompts@7.4.0(@types/node@22.10.2)': + dependencies: + '@inquirer/checkbox': 4.1.4(@types/node@22.10.2) + '@inquirer/confirm': 5.1.8(@types/node@22.10.2) + '@inquirer/editor': 4.2.9(@types/node@22.10.2) + '@inquirer/expand': 4.0.11(@types/node@22.10.2) + '@inquirer/input': 4.1.8(@types/node@22.10.2) + '@inquirer/number': 3.0.11(@types/node@22.10.2) + '@inquirer/password': 4.0.11(@types/node@22.10.2) + '@inquirer/rawlist': 4.0.11(@types/node@22.10.2) + '@inquirer/search': 3.0.11(@types/node@22.10.2) + '@inquirer/select': 4.1.0(@types/node@22.10.2) + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/rawlist@4.0.11(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/type': 3.0.5(@types/node@22.10.2) + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/search@3.0.11(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/figures': 1.0.11 + '@inquirer/type': 3.0.5(@types/node@22.10.2) + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/select@4.1.0(@types/node@22.10.2)': + dependencies: + '@inquirer/core': 10.1.9(@types/node@22.10.2) + '@inquirer/figures': 1.0.11 + '@inquirer/type': 3.0.5(@types/node@22.10.2) + ansi-escapes: 4.3.2 + yoctocolors-cjs: 2.1.2 + optionalDependencies: + '@types/node': 22.10.2 + + '@inquirer/type@3.0.5(@types/node@22.10.2)': + optionalDependencies: + '@types/node': 22.10.2 + '@jridgewell/sourcemap-codec@1.5.0': {} '@lit-labs/ssr-dom-shim@1.2.1': {} @@ -6333,6 +6620,21 @@ snapshots: pkg-types: 1.3.1 rc9: 2.1.2 + c12@3.0.2: + dependencies: + chokidar: 4.0.3 + confbox: 0.1.8 + defu: 6.1.4 + dotenv: 16.4.7 + exsolve: 1.0.4 + giget: 2.0.0 + jiti: 2.4.2 + ohash: 2.0.11 + pathe: 2.0.3 + perfect-debounce: 1.0.0 + pkg-types: 2.1.0 + rc9: 2.1.2 + cac@6.7.14: {} call-bind-apply-helpers@1.0.1: @@ -6457,6 +6759,8 @@ snapshots: cli-width@3.0.0: {} + cli-width@4.1.0: {} + cliui@6.0.0: dependencies: string-width: 4.2.3 @@ -6489,6 +6793,8 @@ snapshots: confbox@0.1.8: {} + confbox@0.2.1: {} + config-chain@1.1.13: dependencies: ini: 1.3.8 @@ -7282,6 +7588,8 @@ snapshots: strip-final-newline: 4.0.0 yoctocolors: 2.1.1 + exsolve@1.0.4: {} + extend-shallow@2.0.1: dependencies: is-extendable: 0.1.1 @@ -7427,6 +7735,15 @@ snapshots: pathe: 2.0.3 tar: 6.2.1 + giget@2.0.0: + dependencies: + citty: 0.1.6 + consola: 3.4.0 + defu: 6.1.4 + node-fetch-native: 1.6.6 + nypm: 0.6.0 + pathe: 2.0.3 + giscus@1.5.0: dependencies: lit: 3.2.1 @@ -8450,6 +8767,8 @@ snapshots: mute-stream@0.0.8: {} + mute-stream@2.0.0: {} + nanoid@3.3.8: {} nanoid@5.0.9: {} @@ -8523,6 +8842,14 @@ snapshots: tinyexec: 0.3.2 ufo: 1.5.4 + nypm@0.6.0: + dependencies: + citty: 0.1.6 + consola: 3.4.0 + pathe: 2.0.3 + pkg-types: 2.1.0 + tinyexec: 0.3.2 + object-inspect@1.13.3: {} ofetch@1.4.1: @@ -8533,6 +8860,8 @@ snapshots: ohash@1.1.4: {} + ohash@2.0.11: {} + onetime@5.1.2: dependencies: mimic-fn: 2.1.0 @@ -8691,6 +9020,12 @@ snapshots: mlly: 1.7.4 pathe: 2.0.3 + pkg-types@2.1.0: + dependencies: + confbox: 0.2.1 + exsolve: 1.0.4 + pathe: 2.0.3 + pluralize@8.0.0: {} pngjs@5.0.0: {} @@ -8759,6 +9094,10 @@ snapshots: dependencies: side-channel: 1.1.0 + qs@6.14.0: + dependencies: + side-channel: 1.1.0 + queue-microtask@1.2.3: {} rc9@2.1.2: @@ -9661,6 +10000,8 @@ snapshots: yocto-queue@0.1.0: {} + yoctocolors-cjs@2.1.2: {} + yoctocolors@2.1.1: {} zwitch@2.0.4: {} diff --git a/scripts/bundle b/scripts/bundle index 96aaeb2..ee1db69 100755 --- a/scripts/bundle +++ b/scripts/bundle @@ -8,11 +8,11 @@ */ import { createRequire } from 'node:module' -import process from 'node:process' import { OPEN_SOURCE_ADDRESS, VipDocker, VipGit, + VipNodeJS, } from '@142vip/utils' (async () => { @@ -24,21 +24,21 @@ import { const imageName = `${OPEN_SOURCE_ADDRESS.DOCKER_ALIYUNCS_VIP}/docs:${pkg.name}-${pkg.version}` // 最近一次提交信息 - const { hash: gitHash } = await VipGit.getRecentGitCommit() + const shortGitHash = VipGit.getRecentCommitShortHash() // 构建镜像 await VipDocker.buildImage({ imageName, buildArgs: [ // 参数中是否包含 --proxy - ['NEED_PROXY', process.argv.includes('--proxy')], + ['NEED_PROXY', VipNodeJS.getProcessArgv().includes('--proxy')], ['APP_NAME', pkg.name], ['APP_VERSION', pkg.version], ['APP_DESCRIPTION', pkg.description], ['AUTHOR', pkg.authorInfo.name], ['EMAIL', pkg.authorInfo.email], ['HOME_PAGE', pkg.authorInfo.homePage], - ['GIT_HASH', gitHash], + ['GIT_HASH', shortGitHash], ], memory: 20000, push: true,