diff --git a/package-lock.json b/package-lock.json index bdee386..9734a87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,7 +19,7 @@ "@rollup/plugin-typescript": "^11.1.5", "@types/fs-extra": "^11.0.2", "@typescript-eslint/eslint-plugin": "^6.7.4", - "code-genius": "^0.4.32", + "code-genius": "^0.4.36", "dotenv-cli": "^7.3.0", "eslint-plugin-simple-import-sort": "^10.0.0", "esno": "^0.17.0", @@ -221,27 +221,27 @@ } }, "node_modules/@codegenius/clear-plugin": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@codegenius/clear-plugin/-/clear-plugin-0.0.4.tgz", - "integrity": "sha512-Nh/QmEg26K6YcCMoMdgleP3+l/VYsuR5mXtKLdRCwoAe10YhLehcPCV2qO5GGndlCL/amqiueerYrFWuZzsPjw==", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@codegenius/clear-plugin/-/clear-plugin-0.0.7.tgz", + "integrity": "sha512-kyI6v3zhYzbxM+9AW7Ttk5MvMP6/K1F9qyuFqy2OxEGTbOEZDXijdxOz6xFLF7090cUnbJOYkrmpVzqTXpCM5Q==", "dev": true, "engines": { "node": ">=14.17" } }, "node_modules/@codegenius/create-plugin": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/create-plugin/-/create-plugin-0.0.2.tgz", - "integrity": "sha512-xX5DwMcRPcXNNbRZlgZ4bxioOSwMRwIyldY61B9QWYpuZVnOmix5Pdhbip2sHC6Q6m9DsWVd0TtrC/pmHrsTQw==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/create-plugin/-/create-plugin-0.0.3.tgz", + "integrity": "sha512-UKtn2comMJicJjewwk8LgqiJJfALLdDNnkcBrixhAwx7zxUU0g/SOx7cfRbm0XP6KVg6aS8jx8TTlQB/JzxvTA==", "dev": true, "engines": { "node": ">=14.17" } }, "node_modules/@codegenius/depcheck-plugin": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/depcheck-plugin/-/depcheck-plugin-0.0.2.tgz", - "integrity": "sha512-AQtbhIgZTSYbiqQCdxclP0uDYKPFZZUN6Pzbk7XBVSdzxjA2959cGZ/e4Ya+JtaWc81ek79Nx/R47N2aBVvmLA==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/depcheck-plugin/-/depcheck-plugin-0.0.3.tgz", + "integrity": "sha512-RuCwuuTmlhSaGDIZFvCbv2fCoH9wvEQJ1qfrB/ngsylSF8XrFN0lUBnOqIUWCfDI84l11eRn69i4eRj5itOPPw==", "dev": true, "engines": { "node": ">=14.17" @@ -266,9 +266,9 @@ } }, "node_modules/@codegenius/hooks-plugin": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@codegenius/hooks-plugin/-/hooks-plugin-0.1.0.tgz", - "integrity": "sha512-y0FOq4BaFNf/aiqTXZ1qXDj2S+EEwgEGibexaK+mYD5dGCajvh9XTE0mBXZ6PXmZraM+rUd0wcv9VdUGIv8wHQ==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@codegenius/hooks-plugin/-/hooks-plugin-0.1.1.tgz", + "integrity": "sha512-bHAdr28JH3faE24W734jm13aRitdv8b19DHzIdKNAqtwk57XKHZBDv1QKD8d8+exfdorBXjLuHcEcGst+qK5cQ==", "dev": true, "engines": { "node": ">=14.17" @@ -284,36 +284,36 @@ } }, "node_modules/@codegenius/lighthouse-plugin": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@codegenius/lighthouse-plugin/-/lighthouse-plugin-0.0.1.tgz", - "integrity": "sha512-tot0x3gMeQ14IbMnWeePV0pehWrXKYdCj6FvauybGYtEeadVT0Xt08bmxt43QwYuyqdpuu5uJmgnN/OXjjS6rg==", + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@codegenius/lighthouse-plugin/-/lighthouse-plugin-0.0.2.tgz", + "integrity": "sha512-OWui/G6uRauNCJpvHJhgvX7Du8CyuEu8TB1KnioQ+T7EoE8xjayfZFe08CRuiYZHSTxB8Rltq6LodcP9GNBxBg==", "dev": true, "engines": { "node": ">=14.17" } }, "node_modules/@codegenius/quantity-plugin": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@codegenius/quantity-plugin/-/quantity-plugin-0.0.1.tgz", - "integrity": "sha512-aUEgJ2m25HAEm7Dv7R612nkS6I4CJCNKJqgei5vgKjbdxMP8qm5tqGwjQE7rd0h2p0moCroSf63+rqVp6hZKXg==", + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@codegenius/quantity-plugin/-/quantity-plugin-0.0.2.tgz", + "integrity": "sha512-5rYhQh0zbYfP9W3QZeW8BVB20dPdEFcVmuFKYITVhZ2N9Cj09uSWHwqpsh7XpeRFEOVx/Ua460DiK/JGbYTA2A==", "dev": true, "engines": { "node": ">=14.17" } }, "node_modules/@codegenius/registry-plugin": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/registry-plugin/-/registry-plugin-0.0.2.tgz", - "integrity": "sha512-LPNBMvxp4pJ8sqV2CFr8VwtM5FwZh+yKx1/Pl5yeRbU11WJSMsMmwH8fB2PS25gJ3k5hXw8d00dHhdxev0LbbQ==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/registry-plugin/-/registry-plugin-0.0.3.tgz", + "integrity": "sha512-OMzevh/pbbA9Hr1jGBqaUiDOayCZt5dCBkfN6PgS7GB+qA35b/9MXNT7xLvHg0/PujAJCRXwh/zbwEAHJdr5iA==", "dev": true, "engines": { "node": ">=14.17" } }, "node_modules/@codegenius/template-plugin": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/template-plugin/-/template-plugin-0.0.2.tgz", - "integrity": "sha512-DpcRC6rOg6w1LlnhgEWp1ObgCJa/B0rxWU5AUaGhENJWf3m47Lsca5mPk5sfHXaKZdo2HG/RpBe5aaHdoP12zA==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/template-plugin/-/template-plugin-0.0.3.tgz", + "integrity": "sha512-Ic4mPgXX0nsGIHlRCPHB8G04889dTUI9ttM+1cFJZJsKLRxqCwf7OMP12nW2YEhCS6FSwfO7Nk0vn2HVK41EYw==", "dev": true, "engines": { "node": ">=14.17" @@ -2317,23 +2317,23 @@ } }, "node_modules/code-genius": { - "version": "0.4.32", - "resolved": "https://registry.npmjs.org/code-genius/-/code-genius-0.4.32.tgz", - "integrity": "sha512-afk28Joh8DheOmYjfCZJP1RVYZWbTdCHihTOPFOcS7QSmeU6EKFyry6f2e4HQcd8DjJfJ72zIuB8NKNVmp128w==", - "dev": true, - "dependencies": { - "@codegenius/clear-plugin": "^0.0.4", - "@codegenius/create-plugin": "^0.0.2", - "@codegenius/depcheck-plugin": "^0.0.2", - "@codegenius/format-plugin": "^0.0.2", - "@codegenius/git-user-plugin": "^0.0.2", - "@codegenius/hooks-plugin": "^0.1.0", - "@codegenius/impsort-plugin": "^0.0.2", - "@codegenius/lighthouse-plugin": "^0.0.1", - "@codegenius/quantity-plugin": "^0.0.1", - "@codegenius/registry-plugin": "^0.0.2", - "@codegenius/template-plugin": "^0.0.2", - "@codegenius/verify-plugin": "^0.0.1", + "version": "0.4.36", + "resolved": "https://registry.npmjs.org/code-genius/-/code-genius-0.4.36.tgz", + "integrity": "sha512-3Z4sMKxJBtdTdrLMjVN1GrYyieCPQPAde0V6zeu7DKTmI8Q4dFJVNRpgDWQMIUYuFy2uKsz+0wsiAKNridQEcA==", + "dev": true, + "dependencies": { + "@codegenius/clear-plugin": "^0.0.7", + "@codegenius/create-plugin": "^0.0.3", + "@codegenius/depcheck-plugin": "^0.0.3", + "@codegenius/format-plugin": "^0.0.4", + "@codegenius/git-user-plugin": "^0.0.3", + "@codegenius/hooks-plugin": "^0.1.1", + "@codegenius/impsort-plugin": "^0.0.4", + "@codegenius/lighthouse-plugin": "^0.0.2", + "@codegenius/quantity-plugin": "^0.0.2", + "@codegenius/registry-plugin": "^0.0.3", + "@codegenius/template-plugin": "^0.0.3", + "@codegenius/verify-plugin": "^0.0.2", "ajv": "^8.12.0", "cac": "^6.7.14", "enquirer": "^2.4.1", @@ -2353,9 +2353,36 @@ } }, "node_modules/code-genius/node_modules/@codegenius/format-plugin": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@codegenius/format-plugin/-/format-plugin-0.0.4.tgz", + "integrity": "sha512-VEDHaZMu3oGBtACOYZ82Rt90xJMWxMjgg57Bu6/8l8pY7y5wTiriFH7rKVTanLFZNLg7hHB8/HZ6KOOt2ZBk3w==", + "dev": true, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/code-genius/node_modules/@codegenius/git-user-plugin": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/git-user-plugin/-/git-user-plugin-0.0.3.tgz", + "integrity": "sha512-NXc3oyFpIKycQWcBNvJr+bayQhmDJOU5kCcnaN5pc/X9ctfwBr6gVa9iXwNmZ66qa/2FvN+3ihBc//WV1hLJNw==", + "dev": true, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/code-genius/node_modules/@codegenius/impsort-plugin": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@codegenius/impsort-plugin/-/impsort-plugin-0.0.4.tgz", + "integrity": "sha512-gRZaOyJlo9u6BI8LAFQUdoi8quPOHhi2s7tdl7+WqGbzfewHOHv7xmVqIJUOm/aIxx0Ho5FgYkaUy98LUmsuYw==", + "dev": true, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/code-genius/node_modules/@codegenius/verify-plugin": { "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/format-plugin/-/format-plugin-0.0.2.tgz", - "integrity": "sha512-GX0LbrwzCtau3LijmU8jmoiC17e4FIXG3Zv265v0ZwLaXzHWM0//1F5pLhu3yMG/jjBSojfPnJC3eT41gfRFlw==", + "resolved": "https://registry.npmjs.org/@codegenius/verify-plugin/-/verify-plugin-0.0.2.tgz", + "integrity": "sha512-uT2Hy3vfw5zz8O3tXptrGPtBnEJH1wUimXPxWew8As2bfI1cUze3m9wOaEh9T+7yOXKDSWB0uBRVzMcB/pHeLQ==", "dev": true, "engines": { "node": ">=14.17" @@ -8372,21 +8399,21 @@ } }, "@codegenius/clear-plugin": { - "version": "0.0.4", - "resolved": "https://registry.npmjs.org/@codegenius/clear-plugin/-/clear-plugin-0.0.4.tgz", - "integrity": "sha512-Nh/QmEg26K6YcCMoMdgleP3+l/VYsuR5mXtKLdRCwoAe10YhLehcPCV2qO5GGndlCL/amqiueerYrFWuZzsPjw==", + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@codegenius/clear-plugin/-/clear-plugin-0.0.7.tgz", + "integrity": "sha512-kyI6v3zhYzbxM+9AW7Ttk5MvMP6/K1F9qyuFqy2OxEGTbOEZDXijdxOz6xFLF7090cUnbJOYkrmpVzqTXpCM5Q==", "dev": true }, "@codegenius/create-plugin": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/create-plugin/-/create-plugin-0.0.2.tgz", - "integrity": "sha512-xX5DwMcRPcXNNbRZlgZ4bxioOSwMRwIyldY61B9QWYpuZVnOmix5Pdhbip2sHC6Q6m9DsWVd0TtrC/pmHrsTQw==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/create-plugin/-/create-plugin-0.0.3.tgz", + "integrity": "sha512-UKtn2comMJicJjewwk8LgqiJJfALLdDNnkcBrixhAwx7zxUU0g/SOx7cfRbm0XP6KVg6aS8jx8TTlQB/JzxvTA==", "dev": true }, "@codegenius/depcheck-plugin": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/depcheck-plugin/-/depcheck-plugin-0.0.2.tgz", - "integrity": "sha512-AQtbhIgZTSYbiqQCdxclP0uDYKPFZZUN6Pzbk7XBVSdzxjA2959cGZ/e4Ya+JtaWc81ek79Nx/R47N2aBVvmLA==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/depcheck-plugin/-/depcheck-plugin-0.0.3.tgz", + "integrity": "sha512-RuCwuuTmlhSaGDIZFvCbv2fCoH9wvEQJ1qfrB/ngsylSF8XrFN0lUBnOqIUWCfDI84l11eRn69i4eRj5itOPPw==", "dev": true }, "@codegenius/format-plugin": { @@ -8402,9 +8429,9 @@ "dev": true }, "@codegenius/hooks-plugin": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@codegenius/hooks-plugin/-/hooks-plugin-0.1.0.tgz", - "integrity": "sha512-y0FOq4BaFNf/aiqTXZ1qXDj2S+EEwgEGibexaK+mYD5dGCajvh9XTE0mBXZ6PXmZraM+rUd0wcv9VdUGIv8wHQ==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@codegenius/hooks-plugin/-/hooks-plugin-0.1.1.tgz", + "integrity": "sha512-bHAdr28JH3faE24W734jm13aRitdv8b19DHzIdKNAqtwk57XKHZBDv1QKD8d8+exfdorBXjLuHcEcGst+qK5cQ==", "dev": true }, "@codegenius/impsort-plugin": { @@ -8414,27 +8441,27 @@ "dev": true }, "@codegenius/lighthouse-plugin": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@codegenius/lighthouse-plugin/-/lighthouse-plugin-0.0.1.tgz", - "integrity": "sha512-tot0x3gMeQ14IbMnWeePV0pehWrXKYdCj6FvauybGYtEeadVT0Xt08bmxt43QwYuyqdpuu5uJmgnN/OXjjS6rg==", + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@codegenius/lighthouse-plugin/-/lighthouse-plugin-0.0.2.tgz", + "integrity": "sha512-OWui/G6uRauNCJpvHJhgvX7Du8CyuEu8TB1KnioQ+T7EoE8xjayfZFe08CRuiYZHSTxB8Rltq6LodcP9GNBxBg==", "dev": true }, "@codegenius/quantity-plugin": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/@codegenius/quantity-plugin/-/quantity-plugin-0.0.1.tgz", - "integrity": "sha512-aUEgJ2m25HAEm7Dv7R612nkS6I4CJCNKJqgei5vgKjbdxMP8qm5tqGwjQE7rd0h2p0moCroSf63+rqVp6hZKXg==", + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@codegenius/quantity-plugin/-/quantity-plugin-0.0.2.tgz", + "integrity": "sha512-5rYhQh0zbYfP9W3QZeW8BVB20dPdEFcVmuFKYITVhZ2N9Cj09uSWHwqpsh7XpeRFEOVx/Ua460DiK/JGbYTA2A==", "dev": true }, "@codegenius/registry-plugin": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/registry-plugin/-/registry-plugin-0.0.2.tgz", - "integrity": "sha512-LPNBMvxp4pJ8sqV2CFr8VwtM5FwZh+yKx1/Pl5yeRbU11WJSMsMmwH8fB2PS25gJ3k5hXw8d00dHhdxev0LbbQ==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/registry-plugin/-/registry-plugin-0.0.3.tgz", + "integrity": "sha512-OMzevh/pbbA9Hr1jGBqaUiDOayCZt5dCBkfN6PgS7GB+qA35b/9MXNT7xLvHg0/PujAJCRXwh/zbwEAHJdr5iA==", "dev": true }, "@codegenius/template-plugin": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/template-plugin/-/template-plugin-0.0.2.tgz", - "integrity": "sha512-DpcRC6rOg6w1LlnhgEWp1ObgCJa/B0rxWU5AUaGhENJWf3m47Lsca5mPk5sfHXaKZdo2HG/RpBe5aaHdoP12zA==", + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/template-plugin/-/template-plugin-0.0.3.tgz", + "integrity": "sha512-Ic4mPgXX0nsGIHlRCPHB8G04889dTUI9ttM+1cFJZJsKLRxqCwf7OMP12nW2YEhCS6FSwfO7Nk0vn2HVK41EYw==", "dev": true }, "@codegenius/verify-plugin": { @@ -9704,23 +9731,23 @@ "dev": true }, "code-genius": { - "version": "0.4.32", - "resolved": "https://registry.npmjs.org/code-genius/-/code-genius-0.4.32.tgz", - "integrity": "sha512-afk28Joh8DheOmYjfCZJP1RVYZWbTdCHihTOPFOcS7QSmeU6EKFyry6f2e4HQcd8DjJfJ72zIuB8NKNVmp128w==", - "dev": true, - "requires": { - "@codegenius/clear-plugin": "^0.0.4", - "@codegenius/create-plugin": "^0.0.2", - "@codegenius/depcheck-plugin": "^0.0.2", - "@codegenius/format-plugin": "^0.0.2", - "@codegenius/git-user-plugin": "^0.0.2", - "@codegenius/hooks-plugin": "^0.1.0", - "@codegenius/impsort-plugin": "^0.0.2", - "@codegenius/lighthouse-plugin": "^0.0.1", - "@codegenius/quantity-plugin": "^0.0.1", - "@codegenius/registry-plugin": "^0.0.2", - "@codegenius/template-plugin": "^0.0.2", - "@codegenius/verify-plugin": "^0.0.1", + "version": "0.4.36", + "resolved": "https://registry.npmjs.org/code-genius/-/code-genius-0.4.36.tgz", + "integrity": "sha512-3Z4sMKxJBtdTdrLMjVN1GrYyieCPQPAde0V6zeu7DKTmI8Q4dFJVNRpgDWQMIUYuFy2uKsz+0wsiAKNridQEcA==", + "dev": true, + "requires": { + "@codegenius/clear-plugin": "^0.0.7", + "@codegenius/create-plugin": "^0.0.3", + "@codegenius/depcheck-plugin": "^0.0.3", + "@codegenius/format-plugin": "^0.0.4", + "@codegenius/git-user-plugin": "^0.0.3", + "@codegenius/hooks-plugin": "^0.1.1", + "@codegenius/impsort-plugin": "^0.0.4", + "@codegenius/lighthouse-plugin": "^0.0.2", + "@codegenius/quantity-plugin": "^0.0.2", + "@codegenius/registry-plugin": "^0.0.3", + "@codegenius/template-plugin": "^0.0.3", + "@codegenius/verify-plugin": "^0.0.2", "ajv": "^8.12.0", "cac": "^6.7.14", "enquirer": "^2.4.1", @@ -9732,9 +9759,27 @@ }, "dependencies": { "@codegenius/format-plugin": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@codegenius/format-plugin/-/format-plugin-0.0.4.tgz", + "integrity": "sha512-VEDHaZMu3oGBtACOYZ82Rt90xJMWxMjgg57Bu6/8l8pY7y5wTiriFH7rKVTanLFZNLg7hHB8/HZ6KOOt2ZBk3w==", + "dev": true + }, + "@codegenius/git-user-plugin": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/@codegenius/git-user-plugin/-/git-user-plugin-0.0.3.tgz", + "integrity": "sha512-NXc3oyFpIKycQWcBNvJr+bayQhmDJOU5kCcnaN5pc/X9ctfwBr6gVa9iXwNmZ66qa/2FvN+3ihBc//WV1hLJNw==", + "dev": true + }, + "@codegenius/impsort-plugin": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@codegenius/impsort-plugin/-/impsort-plugin-0.0.4.tgz", + "integrity": "sha512-gRZaOyJlo9u6BI8LAFQUdoi8quPOHhi2s7tdl7+WqGbzfewHOHv7xmVqIJUOm/aIxx0Ho5FgYkaUy98LUmsuYw==", + "dev": true + }, + "@codegenius/verify-plugin": { "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@codegenius/format-plugin/-/format-plugin-0.0.2.tgz", - "integrity": "sha512-GX0LbrwzCtau3LijmU8jmoiC17e4FIXG3Zv265v0ZwLaXzHWM0//1F5pLhu3yMG/jjBSojfPnJC3eT41gfRFlw==", + "resolved": "https://registry.npmjs.org/@codegenius/verify-plugin/-/verify-plugin-0.0.2.tgz", + "integrity": "sha512-uT2Hy3vfw5zz8O3tXptrGPtBnEJH1wUimXPxWew8As2bfI1cUze3m9wOaEh9T+7yOXKDSWB0uBRVzMcB/pHeLQ==", "dev": true } } diff --git a/package.json b/package.json index 9c42c14..8c6bd30 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@rollup/plugin-typescript": "^11.1.5", "@types/fs-extra": "^11.0.2", "@typescript-eslint/eslint-plugin": "^6.7.4", - "code-genius": "^0.4.32", + "code-genius": "^0.4.36", "dotenv-cli": "^7.3.0", "eslint-plugin-simple-import-sort": "^10.0.0", "esno": "^0.17.0", diff --git a/scripts.config.json b/scripts.config.json index b020c81..35d48d6 100644 --- a/scripts.config.json +++ b/scripts.config.json @@ -1,19 +1,19 @@ { "scripts": [ { - "cmd": "prepare", - "script": "npx codeg hooks", - "desc": "自动执行脚本" + "command": "npx codeg hooks", + "display": "prepare", + "description": "自动执行脚本" }, { - "cmd": "build", - "script": "rollup -c", - "desc": "构建脚本" + "command": "rollup -c", + "display": "build", + "description": "构建脚本" }, { - "cmd": "release", - "script": "dotenv release-it --ci", - "desc": "发布脚本" + "command": "dotenv release-it --ci", + "display": "release", + "description": "发布脚本" } ] } \ No newline at end of file diff --git a/src/index.ts b/src/index.ts index 9357782..ddc093b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -60,7 +60,9 @@ const npmRegistry = async (registry: string) => { const npmRegistryInstaller = () => { return { - name: "npmRegistryInstaller", + name: "registry", + describe: "切换 NPM 镜像地址", + command: "registry", setup: (cli: CAC) => { cli .command("registry", "切换 NPM 镜像地址")