cm-tunnel 1.7.0 → 1.7.1

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 +4 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -29,6 +29,7 @@ Sem Express, sem configurar servidor: aponte as pastas `public` e `api` (ou uma
29
29
  - [Problemas comuns](#problemas-comuns)
30
30
  - [FAQ](#faq)
31
31
  - [Desenvolvimento](#desenvolvimento)
32
+ - [Arquitetura e dívida técnica](https://github.com/cmstudioapps/cm-tunnel/blob/main/ARCHITECTURE.md)
32
33
  - [Licença](#licença)
33
34
 
34
35
  ---
@@ -828,11 +829,14 @@ Sim, desde que o binário `cloudflared` esteja no `PATH`. `npx` e `npm run` são
828
829
 
829
830
  ## Desenvolvimento
830
831
 
832
+ > Arquitetura interna, fluxos, decisões e dívida técnica: [ARCHITECTURE.md](https://github.com/cmstudioapps/cm-tunnel/blob/main/ARCHITECTURE.md)
833
+
831
834
  ```bash
832
835
  npm install
833
836
  npm test # roda a suíte
834
837
  npm run lint
835
838
  npm run build # gera dist/ e deixa dist/cli.js executável
839
+ npm run check:self # impede self-dependency e node_modules/cm-tunnel
836
840
  ```
837
841
 
838
842
  Estrutura principal:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-tunnel",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Exponha seu servidor HTTP local para a internet através do Cloudflare ou LocalTunnel de forma simples",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -21,8 +21,9 @@
21
21
  "test": "vitest run",
22
22
  "test:watch": "vitest",
23
23
  "lint": "tsc --noEmit",
24
+ "check:self": "node -e \"const fs=require('fs');const p=require('./package.json');if(p.dependencies&&p.dependencies['cm-tunnel']){console.error('Erro: cm-tunnel nao pode depender de si mesmo');process.exit(1)}if(fs.existsSync('node_modules/cm-tunnel')){console.error('Erro: node_modules/cm-tunnel aninhado');process.exit(1)}console.log('ok: sem self-dependency')\"",
24
25
  "format": "prettier --write \"src/**/*.ts\" \"examples/**/*.ts\" \"tests/**/*.ts\"",
25
- "prepublishOnly": "npm run lint && npm run test && npm run build"
26
+ "prepublishOnly": "npm run lint && npm run test && npm run check:self && npm run build"
26
27
  },
27
28
  "keywords": [
28
29
  "tunnel",
@@ -54,7 +55,6 @@
54
55
  "dependencies": {
55
56
  "@ngrok/ngrok": "^1.7.0",
56
57
  "bancoz": "^2.2.8",
57
- "cm-tunnel": "^1.5.0",
58
58
  "http-proxy": "^1.18.1",
59
59
  "localtunnel": "^2.0.2",
60
60
  "prompts": "^2.4.2"