@useshortcut/client 2.0.0 → 2.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@useshortcut/client",
3
- "version": "2.0.0",
4
- "description": "A Promise based library to the Shortcut REST API",
3
+ "version": "2.2.0",
4
+ "description": "A library for interacting with the Shortcut REST API",
5
5
  "homepage": "https://github.com/useshortcut/shortcut-client-js",
6
6
  "bugs": {
7
7
  "url": "https://github.com/useshortcut/shortcut-client-js/issues"
@@ -15,14 +15,8 @@
15
15
  "type": "commonjs",
16
16
  "exports": {
17
17
  ".": {
18
- "import": {
19
- "types": "./lib/index.d.mts",
20
- "default": "./lib/index.mjs"
21
- },
22
- "require": {
23
- "types": "./lib/index.d.ts",
24
- "default": "./lib/index.js"
25
- }
18
+ "import": "./lib/index.mjs",
19
+ "require": "./lib/index.js"
26
20
  }
27
21
  },
28
22
  "main": "./lib/index.js",
@@ -32,7 +26,7 @@
32
26
  "lib"
33
27
  ],
34
28
  "scripts": {
35
- "build": "yarn build:client && yarn build:add-typedoc-comments && tsup",
29
+ "build": "yarn build:client && yarn build:add-typedoc-comments && tsdown",
36
30
  "build:add-typedoc-comments": "npx jscodeshift -t scripts/add-typedoc-comments.ts --extensions=ts --parser=ts src/generated/**",
37
31
  "build:client": "swagger-typescript-api generate --path ./schema/shortcut.swagger.json --output ./src/generated --clean-output --axios --modular --templates ./templates",
38
32
  "build:docs": "typedoc ./src --exclude 'src/__tests__/**'",
@@ -80,7 +74,7 @@
80
74
  "swagger-cli": "^4.0.4",
81
75
  "swagger-typescript-api": "^13.2.0",
82
76
  "ts-jest": "^29.3.4",
83
- "tsup": "^8.5.0",
77
+ "tsdown": "^0.12.7",
84
78
  "typedoc": "0.28.5",
85
79
  "typedoc-plugin-merge-modules": "7.0.0",
86
80
  "typescript": "^5.8.3"
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
-
16
- // src/generated/data-contracts.ts
17
- var data_contracts_exports = {};
18
- module.exports = __toCommonJS(data_contracts_exports);
File without changes