@beworke/pixel 0.1.0-rc.6 → 0.1.0-rc.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.
- package/README.md +12 -12
- package/RELEASE_CANDIDATE.md +19 -13
- package/dist/{StorageFactory-CPghDPBj.d.mts → StorageFactory-Cq29vF32.d.mts} +2 -2
- package/dist/{StorageFactory-tjfzk57c.d.ts → StorageFactory-DeMaZ8wk.d.ts} +2 -2
- package/dist/config/index.cjs.js +1 -1
- package/dist/config/index.cjs.js.map +1 -1
- package/dist/config/index.d.mts +4 -4
- package/dist/config/index.d.ts +4 -4
- package/dist/config/index.esm.js +1 -1
- package/dist/config/index.esm.js.map +1 -1
- package/dist/events/index.cjs.js.map +1 -1
- package/dist/events/index.d.mts +2 -2
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.esm.js.map +1 -1
- package/dist/examples/html-script/README.md +20 -76
- package/dist/examples/html-script/RELEASE_CANDIDATE.md +14 -13
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-autocomplete.html +1 -1
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-disabled.html +1 -1
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-card-fields.html +1 -1
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-data-track.html +1 -1
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-dedupe.html +1 -1
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-manual.html +1 -1
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-rules-card.html +1 -1
- package/dist/examples/html-script/add-payment-info/example-add-payment-info-security.html +1 -1
- package/dist/examples/html-script/add-to-cart/README.md +6 -3
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-attribute.html +3 -2
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-auto.html +3 -2
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-click.html +3 -2
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-dedupe.html +3 -2
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-link.html +597 -0
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-manual.html +3 -2
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-order-bump.html +3 -2
- package/dist/examples/html-script/add-to-cart/example-add-to-cart-text.html +3 -2
- package/dist/examples/html-script/behavior/example-behavior-engagement.html +1 -1
- package/dist/examples/html-script/behavior/example-behavior-heartbeat.html +1 -1
- package/dist/examples/html-script/behavior/example-behavior-runtime-intelligence.html +1 -1
- package/dist/examples/html-script/behavior/example-behavior-viewport.html +1 -1
- package/dist/examples/html-script/behavior/example-behavior.html +1 -1
- package/dist/examples/html-script/example-basic.html +1 -1
- package/dist/examples/html-script/example-checkout-commerce.html +1 -1
- package/dist/examples/html-script/example-conversion.html +1 -1
- package/dist/examples/html-script/example-integration.html +1 -1
- package/dist/examples/html-script/example-landing-commerce.html +42 -1
- package/dist/examples/html-script/example-runtime-diagnostics.html +1 -1
- package/dist/examples/html-script/example-transport.html +6 -1
- package/dist/examples/html-script/full-funnel/README.md +1 -1
- package/dist/examples/html-script/full-funnel/checkout.html +1 -1
- package/dist/examples/html-script/full-funnel/downsell.html +1 -1
- package/dist/examples/html-script/full-funnel/landing.html +54 -2
- package/dist/examples/html-script/full-funnel/thank-you.html +1 -1
- package/dist/examples/html-script/full-funnel/upsell.html +1 -1
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-attribute.html +1 -1
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-auto.html +1 -1
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-click.html +1 -1
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-manual.html +1 -1
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-snapshot.html +1 -1
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-submit.html +1 -1
- package/dist/examples/html-script/initiate-checkout/example-initiate-checkout-text.html +1 -1
- package/dist/examples/html-script/lead/example-lead-trigger-attribute.html +1 -1
- package/dist/examples/html-script/lead/example-lead-trigger-auto.html +1 -1
- package/dist/examples/html-script/lead/example-lead-trigger-click.html +1 -1
- package/dist/examples/html-script/release-candidate.html +1 -1
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-attribute.html +1 -1
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-css.html +1 -1
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-dedupe.html +1 -1
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-manual.html +1 -1
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-multi.html +1 -1
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-state.html +1 -1
- package/dist/examples/html-script/remove-from-cart/example-remove-from-cart-text.html +1 -1
- package/dist/examples/html-script/search/example-search-attribute.html +1 -1
- package/dist/examples/html-script/search/example-search-button-sync.html +1 -1
- package/dist/examples/html-script/search/example-search-dedupe.html +1 -1
- package/dist/examples/html-script/search/example-search-input.html +1 -1
- package/dist/examples/html-script/search/example-search-manual.html +1 -1
- package/dist/examples/html-script/search/example-search-submit.html +1 -1
- package/dist/examples/html-script/search/example-search-text.html +1 -1
- package/dist/examples/html-script/url-context/example-url-context-allowed-domains.html +38 -9
- package/dist/examples/html-script/url-context/example-url-context-landing.html +53 -13
- package/dist/examples/html-script/url-context/example-url-context-upsell.html +48 -10
- package/dist/examples/html-script/url-context/example-url-context.html +51 -17
- package/dist/examples/html-script/view-content/example-view-content-attribute.html +1 -1
- package/dist/examples/html-script/view-content/example-view-content-css.html +1 -1
- package/dist/examples/html-script/view-content/example-view-content-dedupe.html +1 -1
- package/dist/examples/html-script/view-content/example-view-content-empty.html +1 -1
- package/dist/examples/html-script/view-content/example-view-content-manual.html +1 -1
- package/dist/examples/html-script/view-content/example-view-content-product-card.html +1 -1
- package/dist/examples/html-script/view-content/example-view-content-text.html +1 -1
- package/dist/examples/release-candidate/README.md +2 -1
- package/dist/examples/v2/README.md +15 -15
- package/dist/{index-CQAyT5Od.d.ts → index-B8u_3PGG.d.ts} +21 -2
- package/dist/{index-JlKPz4pp.d.mts → index-BxT2d-TK.d.mts} +21 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +19 -782
- package/dist/index.d.ts +19 -782
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/{pixel-BxZZx8l5.d.ts → pixel-2uL4LSyC.d.ts} +126 -5
- package/dist/{pixel-CKc4OQUx.d.mts → pixel-DMwpppf_.d.mts} +126 -5
- package/dist/{pixel-default-config-aAOujzwp.d.ts → pixel-default-config-BDPUVHse.d.ts} +1 -1
- package/dist/{pixel-default-config-CJl-eypl.d.mts → pixel-default-config-C5uLt52W.d.mts} +1 -1
- package/dist/runtime/index.cjs.js +1 -1
- package/dist/runtime/index.cjs.js.map +1 -1
- package/dist/runtime/index.d.mts +6 -6
- package/dist/runtime/index.d.ts +6 -6
- package/dist/runtime/index.esm.js +1 -1
- package/dist/runtime/index.esm.js.map +1 -1
- package/dist/services/index.cjs.js +1 -1
- package/dist/services/index.cjs.js.map +1 -1
- package/dist/services/index.d.mts +7 -7
- package/dist/services/index.d.ts +7 -7
- package/dist/services/index.esm.js +1 -1
- package/dist/services/index.esm.js.map +1 -1
- package/dist/{types-BP8dz1gP.d.mts → types-6HF3UlsL.d.mts} +2 -2
- package/dist/{types-C75pQP31.d.ts → types-BqUEoZo0.d.ts} +2 -2
- package/dist/{types-DMhzHSVC.d.mts → types-CgrabttM.d.mts} +2 -2
- package/dist/{types-D_SsCur9.d.ts → types-fFcQ1apy.d.ts} +2 -2
- package/dist/{url-context-BjAsQoVl.d.mts → url-context-Ck2LK18V.d.mts} +4 -2
- package/dist/{url-context-BjAsQoVl.d.ts → url-context-Ck2LK18V.d.ts} +4 -2
- package/dist/v2/global.global.js +1 -1
- package/dist/v2/global.global.js.map +1 -1
- package/dist/v2/index.cjs.js +1 -1
- package/dist/v2/index.cjs.js.map +1 -1
- package/dist/v2/index.d.mts +793 -9
- package/dist/v2/index.d.ts +793 -9
- package/dist/v2/index.esm.js +1 -1
- package/dist/v2/index.esm.js.map +1 -1
- package/docs/public/README.md +13 -11
- package/docs/public/api/pixel.md +1 -1
- package/docs/public/configuration/commerce.md +1 -1
- package/docs/public/getting-started/installation.md +6 -3
- package/docs/public/getting-started/react-nextjs.md +3 -3
- package/docs/public/getting-started/script-tag.md +1 -1
- package/docs/public/guides/funnel-checkout.md +1 -1
- package/docs/public/guides/funnel-full.md +3 -3
- package/docs/public/guides/funnel-landing.md +1 -1
- package/docs/public/limitations.md +1 -1
- package/docs/public/release-candidate/validation.md +22 -17
- package/package.json +8 -12
package/docs/public/README.md
CHANGED
|
@@ -4,13 +4,13 @@ Documentação para desenvolvedores que implementam funis e páginas com `@bewor
|
|
|
4
4
|
|
|
5
5
|
**Versão de referência:** `0.1.0-rc.6` · **Etapas concluídas:** 1–20
|
|
6
6
|
|
|
7
|
-
> Esta pasta é a documentação **pública**. Arquitetura interna, prompts de etapas e relatórios de engenharia ficam
|
|
7
|
+
> Esta pasta é a documentação **pública**. Arquitetura interna, prompts de etapas e relatórios de engenharia ficam em `PLAN_PIXEL/` (`ARCHITECTURE.md`, `PIXEL_V2_*`).
|
|
8
8
|
|
|
9
9
|
## Onde ler (importante)
|
|
10
10
|
|
|
11
11
|
| Contexto | URL / caminho |
|
|
12
12
|
|----------|----------------|
|
|
13
|
-
| **GitHub (browser)** | https://github.com/techionext/Pixel-Global/tree/main/docs/public |
|
|
13
|
+
| **GitHub (browser)** | https://github.com/techionext/Pixel-Global/tree/main/packages/pixel/docs/public |
|
|
14
14
|
| **Pacote npm instalado** | `node_modules/@beworke/pixel/docs/public/` |
|
|
15
15
|
| **npmjs.com** | Só renderiza o `README.md` do pacote — **não** abre `.md` individuais |
|
|
16
16
|
|
|
@@ -49,15 +49,17 @@ Instalação: `npm install @beworke/pixel@rc` (público, sem token).
|
|
|
49
49
|
|
|
50
50
|
## Exemplos públicos
|
|
51
51
|
|
|
52
|
-
Exemplos em `
|
|
52
|
+
Exemplos em `apps/playground-html/public/` usam **somente API pública** (sem `getDebugServices`, sem hooks de debug).
|
|
53
53
|
|
|
54
|
-
| Exemplo | Caminho |
|
|
55
|
-
|
|
56
|
-
| Landing (HTML) | `
|
|
57
|
-
| Checkout (HTML) | `
|
|
58
|
-
| Next.js (App Router) | `
|
|
54
|
+
| Exemplo | Caminho no monorepo |
|
|
55
|
+
|---------|---------------------|
|
|
56
|
+
| Landing (HTML) | `apps/playground-html/public/html/landing.html` |
|
|
57
|
+
| Checkout (HTML) | `apps/playground-html/public/html/checkout.html` |
|
|
58
|
+
| Next.js (App Router) | `apps/playground-next/` (hooks locais, não exportados pelo SDK) |
|
|
59
59
|
|
|
60
|
-
Playgrounds internos de engenharia: `
|
|
60
|
+
Playgrounds internos de engenharia: `apps/playground-html/` (podem usar APIs `@internal`).
|
|
61
|
+
|
|
62
|
+
> **Legado:** na estrutura anterior ao monorepo, estes caminhos eram `examples/public/`, `examples/nextjs/` e `examples/html-script/`.
|
|
61
63
|
|
|
62
64
|
## Privacidade e limitações
|
|
63
65
|
|
|
@@ -71,5 +73,5 @@ Playgrounds internos de engenharia: `examples/html-script/` (podem usar APIs `@i
|
|
|
71
73
|
|
|
72
74
|
| Documento | Conteúdo |
|
|
73
75
|
|-----------|----------|
|
|
74
|
-
| [Validação do pacote](./release-candidate/validation.md) | `
|
|
75
|
-
| [RELEASE_CANDIDATE.md](../../RELEASE_CANDIDATE.md) | Notas oficiais do RC
|
|
76
|
+
| [Validação do pacote](./release-candidate/validation.md) | `pack:pixel`, smoke, checklist |
|
|
77
|
+
| [RELEASE_CANDIDATE.md](../../RELEASE_CANDIDATE.md) | Notas oficiais do RC |
|
package/docs/public/api/pixel.md
CHANGED
|
@@ -62,4 +62,4 @@ Estes existem no código para playgrounds internos:
|
|
|
62
62
|
- `simulateTransport*`, `manualTransportReplay`, etc.
|
|
63
63
|
- `getDebugDedupeKeys`, `getDebugIntegrationState`, …
|
|
64
64
|
|
|
65
|
-
Veja `
|
|
65
|
+
Veja `apps/playground-html/` apenas para engenharia interna.
|
|
@@ -31,7 +31,7 @@ node -e "console.log(require('@beworke/pixel/package.json').version)"
|
|
|
31
31
|
|
|
32
32
|
| Contexto | Caminho |
|
|
33
33
|
|----------|---------|
|
|
34
|
-
| **Browser (GitHub)** | https://github.com/techionext/Pixel-Global/tree/main/docs/public |
|
|
34
|
+
| **Browser (GitHub)** | https://github.com/techionext/Pixel-Global/tree/main/packages/pixel/docs/public |
|
|
35
35
|
| **Após npm install** | `node_modules/@beworke/pixel/docs/public/` |
|
|
36
36
|
|
|
37
37
|
O site **npmjs.com não abre** arquivos `.md` individuais (ex.: `npmjs.com/package/@beworke/docs/...` → 404). Isso é normal.
|
|
@@ -44,12 +44,15 @@ npm install ./beworke-pixel-0.1.0-rc.6.tgz
|
|
|
44
44
|
|
|
45
45
|
## Validar instalação limpa
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Na raiz do monorepo:
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
|
-
|
|
50
|
+
pnpm pack:pixel
|
|
51
|
+
pnpm validate:pixel-package
|
|
51
52
|
```
|
|
52
53
|
|
|
54
|
+
O tarball fica em `artifacts/` (não use `pnpm --filter @beworke/pixel pack` como fluxo principal).
|
|
55
|
+
|
|
53
56
|
## Imports recomendados
|
|
54
57
|
|
|
55
58
|
```typescript
|
|
@@ -4,7 +4,7 @@ O SDK não exporta hooks React. O padrão recomendado é um hook **local** no ap
|
|
|
4
4
|
|
|
5
5
|
## Hook local (`usePixel`)
|
|
6
6
|
|
|
7
|
-
Referência: `
|
|
7
|
+
Referência: `apps/playground-next/lib/use-pixel.ts`
|
|
8
8
|
|
|
9
9
|
```typescript
|
|
10
10
|
'use client';
|
|
@@ -36,7 +36,7 @@ export function usePixel() {
|
|
|
36
36
|
|
|
37
37
|
## Config por página/funil
|
|
38
38
|
|
|
39
|
-
Centralize em `createPixelConfig()` (`
|
|
39
|
+
Centralize em `createPixelConfig()` (`apps/playground-next/lib/pixel-config.ts`):
|
|
40
40
|
|
|
41
41
|
- `identity.funnelId`, `funnelStepId`, `pageId` por etapa do funil
|
|
42
42
|
- `commerce.catalog` para produtos da oferta
|
|
@@ -50,6 +50,6 @@ Centralize em `createPixelConfig()` (`examples/nextjs/lib/pixel-config.ts`):
|
|
|
50
50
|
|
|
51
51
|
## Checkout
|
|
52
52
|
|
|
53
|
-
`
|
|
53
|
+
`apps/playground-next/app/checkout/page.tsx` demonstra `initiateCheckout`, `addPaymentInfo`, `purchase` com catálogo commerce.
|
|
54
54
|
|
|
55
55
|
Guia: [Funil checkout](../guides/funnel-checkout.md).
|
|
@@ -10,7 +10,7 @@ Rastrear início de checkout, carrinho, pagamento e compra.
|
|
|
10
10
|
- `identity.checkoutId`, `funnelStepId`
|
|
11
11
|
- Transport API habilitado
|
|
12
12
|
|
|
13
|
-
Ver `
|
|
13
|
+
Ver `apps/playground-next/lib/pixel-config.ts` e `apps/playground-html/public/html/checkout.html`.
|
|
14
14
|
|
|
15
15
|
## API manual (ordem recomendada)
|
|
16
16
|
|
|
@@ -57,8 +57,8 @@ Uma instância `Pixel` por aba; `destroy()` ao desmontar componentes React entre
|
|
|
57
57
|
|
|
58
58
|
| Etapa | Exemplo |
|
|
59
59
|
|-------|---------|
|
|
60
|
-
| Landing | `
|
|
61
|
-
| Checkout | `
|
|
62
|
-
| Full (Next) | `
|
|
60
|
+
| Landing | `apps/playground-html/public/html/landing.html` |
|
|
61
|
+
| Checkout | `apps/playground-html/public/html/checkout.html` |
|
|
62
|
+
| Full (Next) | `apps/playground-next/` |
|
|
63
63
|
|
|
64
64
|
Guias individuais: [landing](./funnel-landing.md), [checkout](./funnel-checkout.md), [upsell](./funnel-upsell.md), [downsell](./funnel-downsell.md), [thank-you](./funnel-thank-you.md).
|
|
@@ -65,4 +65,4 @@ Opcional: `modules.conversion.auto` + detector `lead` com seletores do formulár
|
|
|
65
65
|
| Sessão zera no reload | Sem `storage.persistence.session` | Configurar `sessionStorage` |
|
|
66
66
|
| Duplo `PAGE_VIEW` | Dois `init()` | Singleton / cleanup `destroy()` |
|
|
67
67
|
|
|
68
|
-
Exemplo: `
|
|
68
|
+
Exemplo: `apps/playground-html/public/html/landing.html`
|
|
@@ -29,4 +29,4 @@ Versão: `0.1.0-rc.5` · Etapas 1–20 concluídas.
|
|
|
29
29
|
|
|
30
30
|
670 testes automatizados (2 skipped). Smoke real requer endpoint configurado.
|
|
31
31
|
|
|
32
|
-
Veja também [RELEASE_CANDIDATE.md](../../RELEASE_CANDIDATE.md) e [PIXEL_V2_VALIDATION_MATRIX.md](
|
|
32
|
+
Veja também [RELEASE_CANDIDATE.md](../../RELEASE_CANDIDATE.md) e [PIXEL_V2_VALIDATION_MATRIX.md](../../../../PLAN_PIXEL/PIXEL_V2_VALIDATION_MATRIX.md).
|
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
# Validação do Release Candidate
|
|
2
2
|
|
|
3
|
-
## Comandos (
|
|
3
|
+
## Comandos (raiz do monorepo)
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
pnpm type-check
|
|
7
|
+
pnpm test
|
|
8
|
+
pnpm build
|
|
9
|
+
pnpm --filter @beworke/pixel test:smoke:real
|
|
10
|
+
pnpm --filter @beworke/pixel test:transport
|
|
11
|
+
pnpm --filter @beworke/pixel test:integration
|
|
12
|
+
|
|
13
|
+
pnpm pack:pixel
|
|
14
|
+
pnpm validate:pixel-package
|
|
15
|
+
pnpm smoke:pixel-package
|
|
16
|
+
pnpm validate:public-docs
|
|
17
|
+
pnpm validate:public-examples
|
|
17
18
|
```
|
|
18
19
|
|
|
20
|
+
O fluxo oficial de empacotamento é **`pnpm pack:pixel`** (tarball em `artifacts/`).
|
|
21
|
+
Não use `pnpm --filter @beworke/pixel pack` como fluxo principal.
|
|
22
|
+
|
|
19
23
|
## Tarball
|
|
20
24
|
|
|
21
|
-
Nome esperado: `beworke-pixel-0.1.0-rc.
|
|
25
|
+
Nome esperado: `artifacts/beworke-pixel-0.1.0-rc.6.tgz`
|
|
26
|
+
Manifesto: `artifacts/latest-package.json` (caminho relativo portátil).
|
|
22
27
|
|
|
23
28
|
Instalação em projeto limpo:
|
|
24
29
|
|
|
25
30
|
```bash
|
|
26
|
-
npm install /caminho/para/beworke-pixel-0.1.0-rc.
|
|
31
|
+
npm install /caminho/para/artifacts/beworke-pixel-0.1.0-rc.6.tgz
|
|
27
32
|
```
|
|
28
33
|
|
|
29
34
|
## Checklist rápido
|
|
@@ -31,7 +36,7 @@ npm install /caminho/para/beworke-pixel-0.1.0-rc.5.tgz
|
|
|
31
36
|
- [ ] Exports `.`, `./global`, `./v2`, `./config`, `./events`, `./services`, `./runtime`, `./logger`
|
|
32
37
|
- [ ] `window.PixelV2` no build global
|
|
33
38
|
- [ ] Exemplos públicos sem `@internal` / sem import de `src/`
|
|
34
|
-
- [ ] Links em `docs/public/` válidos
|
|
35
|
-
- [ ] README aponta para `docs/public/`
|
|
39
|
+
- [ ] Links em `packages/pixel/docs/public/` válidos
|
|
40
|
+
- [ ] README aponta para `packages/pixel/docs/public/`
|
|
36
41
|
|
|
37
|
-
Documentos
|
|
42
|
+
Documentos: [RELEASE_CANDIDATE.md](../../../RELEASE_CANDIDATE.md), [PIXEL_V2_PUBLIC_RC_RELEASE_CHECKLIST.md](../../../../../PLAN_PIXEL/PIXEL_V2_PUBLIC_RC_RELEASE_CHECKLIST.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beworke/pixel",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.7",
|
|
4
4
|
"description": "Pixel v2 — SDK de analytics e conversão para API própria e destinos browser",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -54,15 +54,14 @@
|
|
|
54
54
|
],
|
|
55
55
|
"scripts": {
|
|
56
56
|
"dev": "tsup --watch",
|
|
57
|
-
"build": "tsup",
|
|
57
|
+
"build": "tsup && node ../../scripts/copy-packaged-examples.mjs",
|
|
58
58
|
"test": "vitest run",
|
|
59
59
|
"test:watch": "vitest",
|
|
60
|
-
"test:smoke:real": "node
|
|
61
|
-
"validate:rc-package": "node
|
|
62
|
-
"validate:public-docs": "node
|
|
63
|
-
"validate:public-examples": "node
|
|
60
|
+
"test:smoke:real": "node ../../scripts/run-smoke-real.mjs",
|
|
61
|
+
"validate:rc-package": "node ../../scripts/validate-rc-package.mjs",
|
|
62
|
+
"validate:public-docs": "node ../../scripts/validate-public-docs.mjs",
|
|
63
|
+
"validate:public-examples": "node ../../scripts/validate-public-examples.mjs",
|
|
64
64
|
"publish:rc": "npm publish --tag rc --tag latest",
|
|
65
|
-
"validate:15b": "node ./scripts/validate-15b.mjs",
|
|
66
65
|
"test:integration": "vitest run src/integration",
|
|
67
66
|
"test:transport": "vitest run src/transport",
|
|
68
67
|
"test:full-funnel": "vitest run src/modules/core/url-context src/integration/stage-15b-module-matrix.test.ts",
|
|
@@ -72,9 +71,7 @@
|
|
|
72
71
|
"format": "prettier --write src/**/*.{ts,tsx,js,jsx,json,css,md}",
|
|
73
72
|
"type-check": "tsc --noEmit",
|
|
74
73
|
"prepublishOnly": "pnpm build",
|
|
75
|
-
"
|
|
76
|
-
"version": "changeset version",
|
|
77
|
-
"release": "pnpm build && changeset publish"
|
|
74
|
+
"clean": "rimraf dist coverage"
|
|
78
75
|
},
|
|
79
76
|
"keywords": [
|
|
80
77
|
"pixel",
|
|
@@ -92,9 +89,7 @@
|
|
|
92
89
|
"publishConfig": {
|
|
93
90
|
"access": "public"
|
|
94
91
|
},
|
|
95
|
-
"packageManager": "pnpm@10.7.1",
|
|
96
92
|
"devDependencies": {
|
|
97
|
-
"@changesets/cli": "^2.29.7",
|
|
98
93
|
"@types/node": "^20.0.0",
|
|
99
94
|
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
100
95
|
"@typescript-eslint/parser": "^6.0.0",
|
|
@@ -103,6 +98,7 @@
|
|
|
103
98
|
"eslint-plugin-prettier": "^5.0.0",
|
|
104
99
|
"happy-dom": "^20.6.3",
|
|
105
100
|
"prettier": "^3.0.0",
|
|
101
|
+
"rimraf": "^6.0.1",
|
|
106
102
|
"tsup": "^8.5.0",
|
|
107
103
|
"typescript": "^5.0.0",
|
|
108
104
|
"vitest": "^4.0.18"
|