diff --git a/.gitignore b/.gitignore index 3d1be04..e0a4bbe 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules -# dist +dist logs *.log diff --git a/README.md b/README.md index 9d20ddd..caab28c 100644 --- a/README.md +++ b/README.md @@ -372,7 +372,7 @@ git cz ``` -Install Husky(Method.1): +Install Husky: ```shell pnpm install husky -D @@ -393,11 +393,6 @@ pnpm install husky -D ```shell pnpm run prepare -``` - -Install Husky(Method.2): - -```shell pnpx husky install ``` @@ -529,6 +524,21 @@ nrm ls # View all sources list nrm use npm # Checkout some source +npm login +# Login your account +``` + +> .npmignore +```ini +node_modules +dist +logs +*.log + +.vscode/* +.vs/* +!.vscode/extensions.json +.idea ``` > package.json diff --git a/package.json b/package.json index 68f6ff4..df281b0 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "eslint-import-resolver-alias": "^1.1.2", "eslint-plugin-import": "^2.28.0", "eslint-plugin-prettier": "^5.0.0", + "husky": "^8.0.3", "lint-staged": "^14.0.0", "prettier": "^3.0.2", "standard-version": "^9.5.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a1739fc..d4bb96f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,6 +35,9 @@ devDependencies: eslint-plugin-prettier: specifier: ^5.0.0 version: 5.0.0(eslint-config-prettier@9.0.0)(eslint@8.47.0)(prettier@3.0.2) + husky: + specifier: ^8.0.3 + version: 8.0.3 lint-staged: specifier: ^14.0.0 version: 14.0.0 @@ -2209,6 +2212,12 @@ packages: engines: {node: '>=14.18.0'} dev: true + /husky@8.0.3: + resolution: {integrity: sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==} + engines: {node: '>=14'} + hasBin: true + dev: true + /iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'}