@commercelayer/react-components 4.21.0-beta.1 → 4.21.0-beta.2

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
@@ -1,19 +1,20 @@
1
1
  {
2
2
  "name": "@commercelayer/react-components",
3
- "version": "4.21.0-beta.1",
3
+ "version": "4.21.0-beta.2",
4
4
  "description": "The Official Commerce Layer React Components",
5
5
  "type": "module",
6
- "module": "lib/index.js",
7
- "types": "lib/index.d.ts",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
8
  "files": [
9
- "lib",
9
+ "dist",
10
10
  "package.json",
11
11
  "README.md"
12
12
  ],
13
13
  "exports": {
14
+ "./package.json": "./package.json",
14
15
  ".": {
15
- "require": "./lib/index.cjs",
16
- "import": "./lib/index.js"
16
+ "import": "./dist/index.js",
17
+ "default": "./dist/index.cjs"
17
18
  }
18
19
  },
19
20
  "engines": {
@@ -61,6 +62,7 @@
61
62
  "rapid-form": "2.1.0"
62
63
  },
63
64
  "devDependencies": {
65
+ "@arethetypeswrong/cli": "^0.17.4",
64
66
  "@commercelayer/js-auth": "^6.7.1",
65
67
  "@faker-js/faker": "^9.5.1",
66
68
  "@playwright/test": "^1.50.1",
@@ -96,13 +98,15 @@
96
98
  "scripts": {
97
99
  "lint": "biome lint --error-on-warnings ./src",
98
100
  "lint:fix": "pnpm biome lint --write ./src",
101
+ "lint:tsc": "tsc",
99
102
  "test": "pnpm audit --audit-level high && (pnpm audit || exit 0) && pnpm lint && vitest run --silent",
100
103
  "coverage": "vitest run --coverage",
101
104
  "test:e2e": "NODE_ENV=test playwright test",
102
105
  "test:e2e:coverage": "nyc pnpm test:e2e && pnpm coverage:report",
103
106
  "coverage:report": "nyc report --reporter=html",
104
- "build": "tsup",
107
+ "build": "tsup && pnpm lint:tsc",
105
108
  "build:dev": "tsc -b tsconfig.prod.json tsconfig.prod.esm.json --verbose && tsc-alias -p tsconfig.prod.json && tsc-alias -p tsconfig.prod.esm.json",
106
- "dev": "NODE_OPTIONS='--inspect' next dev"
109
+ "dev": "NODE_OPTIONS='--inspect' next dev",
110
+ "check-exports": "attw --pack ."
107
111
  }
108
112
  }