@revenuecat/purchases-ui-js 0.1.21 → 1.0.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@revenuecat/purchases-ui-js",
3
3
  "description": "Web components for Paywalls. Powered by RevenueCat",
4
4
  "private": false,
5
- "version": "0.1.21",
5
+ "version": "1.0.1",
6
6
  "author": {
7
7
  "name": "RevenueCat, Inc."
8
8
  },
@@ -24,10 +24,12 @@
24
24
  ],
25
25
  "scripts": {
26
26
  "dev": "vite dev",
27
- "build": "vite build && npm run package",
28
- "package": "svelte-kit sync && svelte-package && publint",
27
+ "build": "npm run build:kit && npm run build:components && publint",
28
+ "build:components": "vite build --config vite.components.config.ts",
29
+ "build:kit": "vite build && npm run package",
30
+ "package": "svelte-kit sync && svelte-package && npm run build:components",
29
31
  "preview": "vite preview",
30
- "prepublishOnly": "npm run package",
32
+ "prepublishOnly": "npm run package && publint",
31
33
  "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
32
34
  "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
33
35
  "storybook": "storybook dev -p 6006",
@@ -55,6 +57,9 @@
55
57
  "types": "./dist/index.d.ts",
56
58
  "svelte": "./dist/index.js",
57
59
  "default": "./dist/index.js"
60
+ },
61
+ "./web-components": {
62
+ "default": "./dist/web-components/index.js"
58
63
  }
59
64
  },
60
65
  "peerDependencies": {
@@ -92,6 +97,7 @@
92
97
  "typescript": "^5.7.3",
93
98
  "typescript-eslint": "^8.20.0",
94
99
  "vite": "^6.0.7",
100
+ "vite-plugin-dts": "^4.5.3",
95
101
  "vitest": "^2.1.8"
96
102
  },
97
103
  "lint-staged": {