We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 731ba24 commit 15d9dc5Copy full SHA for 15d9dc5
.changeset/pretty-worlds-scream.md
@@ -0,0 +1,5 @@
1
+---
2
+"@squarecloud/api": patch
3
4
+
5
+Fix CommonJS require not working.
package.json
@@ -2,9 +2,19 @@
"name": "@squarecloud/api",
"version": "3.7.6",
"description": "A NodeJS wrapper for Square Cloud API",
- "main": "lib/index.js",
6
- "types": "lib/index.d.ts",
7
- "module": "lib/index.mjs",
+ "exports": {
+ ".": {
+ "import": {
8
+ "types": "./lib/index.d.ts",
9
+ "default": "./lib/index.js"
10
+ },
11
+ "require": {
12
+ "types": "./lib/index.d.cts",
13
+ "default": "./lib/index.cjs"
14
15
16
+ }
17
18
"packageManager": "pnpm@10.9.0",
19
"type": "module",
20
"scripts": {
0 commit comments