@thorprovider/create-thor-app 4.2.1 → 5.1.0

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 CHANGED
@@ -1,13 +1,26 @@
1
1
  ---
2
2
  title: "@thorprovider/create-thor-app"
3
- purpose: "Verified entry point for the Thor Commerce scaffolding CLI"
3
+ purpose: "ABANDONED — Deprecated scaffolding CLI. Do not use for new work."
4
4
  lastReviewed: "2026-05-28"
5
5
  ---
6
6
 
7
+ > **⚠️ ABANDONED**
8
+ >
9
+ > `@thorprovider/create-thor-app` **ya no se usa**. No lo utilices para generar proyectos nuevos ni consultes sus templates como referencia.
10
+ >
11
+ > - **App de referencia canónica:** `projects/electrostore` (host SSR sobre `@thorprovider/runtime` + `@thorprovider/blocks` + `@thorprovider/adapters`).
12
+ > - Si un agente o persona encuentra este paquete, debe ignorarlo y mirar `projects/electrostore` en su lugar.
13
+
7
14
  # @thorprovider/create-thor-app
8
15
 
9
16
  CLI for scaffolding a new Thor Commerce application from the current template.
10
17
 
18
+ ## Deprecation notice
19
+
20
+ This package is **abandoned**. The Thor Commerce monorepo is now the owner of its own
21
+ reference apps (`projects/electrostore`), so no scaffolding CLI is needed. The content
22
+ below documents the historical implementation and is kept only for audit purposes.
23
+
11
24
  ## Verified facts
12
25
 
13
26
  - Package name: `@thorprovider/create-thor-app`
package/dist/index.js CHANGED
@@ -440,7 +440,7 @@ L5: this app \u2192 Next.js app + local providers
440
440
  - Import commerce access from \`@/lib/commerce\`
441
441
  - Use \`next/link\` and \`next/image\` directly
442
442
  - Local providers live in \`components/providers/\`
443
- - Do not import \`@thorprovider/components\` or \`@thorprovider/providers\`
443
+ - Do not import \`@thorprovider/components\`
444
444
  - Do not import backend SDKs directly
445
445
 
446
446
  ## Frozen Files
@@ -590,7 +590,6 @@ description: Validate generated code against the current storefront rules.
590
590
 
591
591
  - [ ] Types imported from \`@thorprovider/types\`
592
592
  - [ ] No \`@thorprovider/components\` imports
593
- - [ ] No \`@thorprovider/providers\` imports
594
593
  - [ ] No backend SDK imports
595
594
  - [ ] No raw \`fetch(COMMERCE_API_URL...)\`
596
595
  - [ ] Prices rendered with \`formatPrice()\`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/create-thor-app",
3
- "version": "4.2.1",
3
+ "version": "5.1.0",
4
4
  "description": "CLI to scaffold a new Thor Commerce V0-native application",
5
5
  "type": "module",
6
6
  "bin": "./dist/index.js",
@@ -19,10 +19,6 @@
19
19
  "group": ["@thorprovider/components", "@thorprovider/components/*"],
20
20
  "message": "This template does NOT use @thorprovider/components. Use shadcn/ui components from @/components/ui/ instead."
21
21
  },
22
- {
23
- "group": ["@thorprovider/providers", "@thorprovider/providers/*"],
24
- "message": "This template does NOT use @thorprovider/providers. Providers are local code in @/components/providers/ and @/lib/."
25
- },
26
22
  {
27
23
  "group": ["@medusajs/*", "@shopify/*", "@bigcommerce/*"],
28
24
  "message": "Never import backend SDKs directly. Use the commerce singleton from @/lib/commerce instead."
@@ -19,7 +19,6 @@ V0-native storefront template for Thor Commerce Builder. Lean scaffold designed
19
19
 
20
20
  **NOT used** (by design):
21
21
  - `@thorprovider/components` — V0 creates UI from shadcn/ui (unique UI per client)
22
- - `@thorprovider/providers` — providers are local code (V0 can read source)
23
22
 
24
23
  ## Quick Start
25
24
 
@@ -144,8 +144,8 @@
144
144
  {
145
145
  "id": "no-thorprovider-components-import",
146
146
  "filePattern": "**/*.{ts,tsx}",
147
- "pattern": "from\\s+['\"]@thorprovider/components['\"]|from\\s+['\"]@thorprovider/providers['\"]",
148
- "description": "Do not import from @thorprovider/components or @thorprovider/providers — use local providers from @/components/providers/ and shadcn/ui for UI"
147
+ "pattern": "from\\s+['\"]@thorprovider/components['\"]",
148
+ "description": "Do not import from @thorprovider/components — use shadcn/ui for UI"
149
149
  },
150
150
  {
151
151
  "id": "no-alternate-backend-stacks-in-app",
@@ -64,4 +64,3 @@ import { Button } from '@/components/ui/button';
64
64
  | Package | Why |
65
65
  |---------|-----|
66
66
  | `@thorprovider/components` | V0 creates UI from shadcn/ui — unique UI per client |
67
- | `@thorprovider/providers` | Providers are local code — V0 reads source directly |
@@ -14,7 +14,6 @@ Non-negotiable constraints. Breaking these causes build failures, runtime crashe
14
14
  |------|-----|-------------|
15
15
  | Import types from `@thorprovider/types` | Single source of truth for all domain objects | Type drift, adapter incompatibility |
16
16
  | Never import `@thorprovider/components` | Doesn't exist in this template | Build failure |
17
- | Never import `@thorprovider/providers` | Providers are local code in `components/providers/` | Build failure |
18
17
  | Never import backend SDKs (`@medusajs/*`, `@shopify/*`) | Backend is swappable via adapters | Vendor lock-in |
19
18
  | Never raw `fetch(COMMERCE_API_URL + '...')` | Bypasses adapter layer | No retry, no credential safety |
20
19
  | Always `formatPrice(money)` | `Money.amount` is a string like "29.99" | Broken display |
@@ -80,7 +79,7 @@ Never modify these — they are infrastructure:
80
79
 
81
80
  ## Pre-Commit Checklist
82
81
 
83
- - [ ] No `@thorprovider/components` or `@thorprovider/providers` imports?
82
+ - [ ] No `@thorprovider/components` imports?
84
83
  - [ ] No backend SDK imports (`@medusajs/*`, `@shopify/*`)?
85
84
  - [ ] No raw `fetch(COMMERCE_API_URL...)` calls?
86
85
  - [ ] No env-based gating that disables storefront rendering?
@@ -10,9 +10,8 @@
10
10
  * const instance = createCommerceClient(config) // config injected by layout.tsx
11
11
  */
12
12
 
13
- import { createProvider } from '@thorprovider/adapters'
13
+ import { createProvider, isSupportedProviderType } from '@thorprovider/adapters'
14
14
  import type { ProviderTypeString } from '@thorprovider/types'
15
- import { isSupportedProviderType } from '@thorprovider/types'
16
15
 
17
16
  /** Real-backend provider identifiers (must stay in sync with env.ts realProviderSchema) */
18
17
  const REAL_BACKEND_PROVIDERS = new Set(['medusa', 'shopify', 'bigcommerce'])
@@ -11,9 +11,8 @@
11
11
 
12
12
  import 'server-only'
13
13
 
14
- import { createProvider } from '@thorprovider/adapters'
14
+ import { createProvider, isSupportedProviderType } from '@thorprovider/adapters'
15
15
  import type { ProviderTypeString } from '@thorprovider/types'
16
- import { isSupportedProviderType } from '@thorprovider/types'
17
16
  import { getConfiguredProvider, isRealBackendProvider, shouldUseMockProvider } from './env'
18
17
 
19
18
  let _commerce: ReturnType<typeof createProvider> | undefined
@@ -14,8 +14,8 @@
14
14
  "test:e2e:report": "playwright show-report"
15
15
  },
16
16
  "dependencies": {
17
- "@thorprovider/adapters": "^4.2.2",
18
- "@thorprovider/types": "^3.14.1",
17
+ "@thorprovider/adapters": "^5.1.0",
18
+ "@thorprovider/types": "^6.1.0",
19
19
  "clsx": "^2.1.1",
20
20
  "next": "16.0.10",
21
21
  "next-themes": "^0.4.6",