@dnotrever2/super-kit 0.1.3 → 0.1.7

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.
Files changed (2) hide show
  1. package/README.md +21 -7
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -640,14 +640,23 @@ ls dist/super-kit.js dist/super-kit.cjs dist/index.d.ts
640
640
  ### Publish
641
641
 
642
642
  ```bash
643
- make publish TYPE=patch # bumps version, builds, publishes to npm
643
+ make publish # verifies npm auth, builds, publishes current package version
644
644
  ```
645
645
 
646
646
  #### Configuração inicial (uma vez por máquina)
647
647
 
648
648
  O `make publish` exige autenticação no npm. Siga os passos abaixo:
649
649
 
650
- **1. Criar um token de autenticação**
650
+ **1. Entrar no npm**
651
+
652
+ ```bash
653
+ npm login
654
+ npm whoami
655
+ ```
656
+
657
+ O `npm whoami` deve mostrar o usuário que tem permissão para publicar o pacote.
658
+
659
+ **2. Alternativa com token**
651
660
 
652
661
  Acesse **npmjs.com → seu perfil → Access Tokens → Generate New Token**.
653
662
 
@@ -658,20 +667,25 @@ Escolha **Granular Access Token** e configure:
658
667
 
659
668
  > Atenção: o token só é exibido uma vez. Copie antes de sair da página.
660
669
 
661
- **2. Configurar o token localmente**
662
-
663
- Crie o arquivo `.npmrc` na raiz do projeto:
670
+ Configure o token no `.npmrc` do usuário ou no `.npmrc` local do projeto:
664
671
 
665
672
  ```
666
673
  //registry.npmjs.org/:_authToken=npm_SEU_TOKEN_AQUI
667
674
  ```
668
675
 
669
- O `.npmrc` está no `.gitignore` nunca será commitado.
676
+ Se existir `.npmrc` na raiz do projeto, ele tem prioridade sobre o login feito em `~/.npmrc`.
670
677
 
671
678
  **3. Publicar**
672
679
 
673
680
  ```bash
674
- make publish TYPE=patch # ou minor / major
681
+ make publish
682
+ ```
683
+
684
+ Para incrementar a versão antes de publicar:
685
+
686
+ ```bash
687
+ make version TYPE=patch # ou minor / major
688
+ make publish
675
689
  ```
676
690
 
677
691
  ### Add a new component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnotrever2/super-kit",
3
- "version": "0.1.3",
3
+ "version": "0.1.7",
4
4
  "description": "React component kit for reusable application primitives.",
5
5
  "type": "module",
6
6
  "private": false,