@sazito/checkout 0.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/package.json ADDED
@@ -0,0 +1,98 @@
1
+ {
2
+ "name": "@sazito/checkout",
3
+ "version": "0.1.0",
4
+ "description": "Headless checkout engine + React UI for the Sazito platform, powered by @sazito/client-sdk",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/sazito/client-sdk.git",
9
+ "directory": "packages/checkout"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/sazito/client-sdk/issues"
13
+ },
14
+ "homepage": "https://github.com/sazito/client-sdk/tree/main/packages/checkout#readme",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "sideEffects": [
19
+ "*.css"
20
+ ],
21
+ "type": "module",
22
+ "engines": {
23
+ "node": ">=18"
24
+ },
25
+ "exports": {
26
+ "./core": {
27
+ "import": {
28
+ "types": "./dist/core/index.d.ts",
29
+ "default": "./dist/core/index.js"
30
+ },
31
+ "require": {
32
+ "types": "./dist/core/index.d.cts",
33
+ "default": "./dist/core/index.cjs"
34
+ },
35
+ "default": "./dist/core/index.js"
36
+ },
37
+ "./react": {
38
+ "import": {
39
+ "types": "./dist/react/index.d.ts",
40
+ "default": "./dist/react/index.js"
41
+ },
42
+ "require": {
43
+ "types": "./dist/react/index.d.cts",
44
+ "default": "./dist/react/index.cjs"
45
+ },
46
+ "default": "./dist/react/index.js"
47
+ },
48
+ "./next": {
49
+ "import": {
50
+ "types": "./dist/next/index.d.ts",
51
+ "default": "./dist/next/index.js"
52
+ },
53
+ "require": {
54
+ "types": "./dist/next/index.d.cts",
55
+ "default": "./dist/next/index.cjs"
56
+ },
57
+ "default": "./dist/next/index.js"
58
+ },
59
+ "./styles.css": "./dist/styles.css"
60
+ },
61
+ "typesVersions": {
62
+ "*": {
63
+ "core": ["dist/core/index.d.ts"],
64
+ "react": ["dist/react/index.d.ts"],
65
+ "next": ["dist/next/index.d.ts"]
66
+ }
67
+ },
68
+ "files": [
69
+ "dist",
70
+ "README.md",
71
+ "LICENSE"
72
+ ],
73
+ "scripts": {
74
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && rollup -c && node -e \"require('fs').copyFileSync('src/styles.css','dist/styles.css')\"",
75
+ "typecheck": "tsc --noEmit",
76
+ "test": "vitest run",
77
+ "test:watch": "vitest",
78
+ "release:check": "pnpm run typecheck && pnpm run test && pnpm run build",
79
+ "prepublishOnly": "pnpm run release:check"
80
+ },
81
+ "peerDependencies": {
82
+ "@sazito/client-sdk": "^1.2.3",
83
+ "react": "^18.0.0",
84
+ "react-dom": "^18.0.0"
85
+ },
86
+ "devDependencies": {
87
+ "@rollup/plugin-node-resolve": "^15.2.3",
88
+ "@rollup/plugin-typescript": "^11.1.5",
89
+ "@sazito/client-sdk": "workspace:*",
90
+ "@types/react": "^18.2.42",
91
+ "@types/react-dom": "^18.2.17",
92
+ "rollup": "^4.6.1",
93
+ "rollup-plugin-dts": "^6.1.0",
94
+ "tslib": "^2.6.2",
95
+ "typescript": "^5.3.2",
96
+ "vitest": "^2.1.8"
97
+ }
98
+ }