Skip to content

Commit 3a774f9

Browse files
committed
fix export resolution
1 parent 2e0d66e commit 3a774f9

File tree

17 files changed

+5696
-510
lines changed

17 files changed

+5696
-510
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
File renamed without changes.

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"**/lib": true,
1414
"**/node_modules": true,
1515
"**/coverage": true,
16-
"**/dist": true,
16+
"**/dist": false,
1717
"**/tsconfig.tsbuildinfo": true,
1818
"**/yarn-error.log": true
1919
}
File renamed without changes.

package.json

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
{
2-
"name": "openapi-typescript-fetch",
3-
"description": "A typed fetch client for openapi-typescript",
4-
"version": "1.1.3",
2+
"name": "@cuppachino/openapi-into-fetch",
3+
"description": "An updated fork of ajaishankar's openapi-typescript-fetch",
4+
"version": "2.0.0",
5+
"private": "false",
6+
"publishConfig": {
7+
"access": "public"
8+
},
59
"engines": {
610
"node": ">= 12.0.0",
711
"npm": ">= 7.0.0"
812
},
913
"author": "Ajai Shankar",
1014
"license": "MIT",
15+
"type": "module",
1116
"main": "./dist/cjs/index.js",
1217
"module": "./dist/esm/index.js",
1318
"exports": {
14-
"browser": "./dist/esm/index.js",
19+
"types": "./dist/index.d.ts",
1520
"import": "./dist/esm/index.js",
16-
"require": "./dist/cjs/index.js"
21+
"require": "./dist/cjs/index.cjs",
22+
"browser": "./dist/esm/index.js",
23+
"default": "./dist/cjs/index.cjs"
1724
},
1825
"files": [
1926
"dist"
@@ -37,20 +44,23 @@
3744
},
3845
"homepage": "https://github.com/ajaishankar/openapi-typescript-fetch#readme",
3946
"devDependencies": {
40-
"msw": "^0.35.0",
41-
"@typescript-eslint/eslint-plugin": "^4.30.0",
42-
"@typescript-eslint/parser": "^4.31.0",
47+
"@changesets/cli": "^2.26.1",
48+
"@types/jest": "^29.5.0",
49+
"@types/node": "^18.15.5",
50+
"@typescript-eslint/eslint-plugin": "^4.33.0",
51+
"@typescript-eslint/parser": "^4.33.0",
52+
"codecov": "^3.8.3",
4353
"eslint": "^7.32.0",
44-
"eslint-config-prettier": "^8.3.0",
45-
"eslint-plugin-prettier": "^4.0.0",
46-
"codecov": "^3.8.2",
47-
"jest": "^27.2.5",
48-
"@types/jest": "^27.0.0",
49-
"prettier": "^2.4.0",
50-
"rimraf": "^3.0.0",
51-
"ts-node": "^10.0.0",
52-
"ts-jest": "^27.0.0",
53-
"typescript": "^4.4.3",
54+
"eslint-config-prettier": "^8.8.0",
55+
"eslint-plugin-prettier": "^4.2.1",
56+
"jest": "^29.5.0",
57+
"jest-environment-jsdom": "^29.5.0",
58+
"msw": "^0.35.0",
59+
"prettier": "^2.8.6",
60+
"rimraf": "^3.0.2",
61+
"ts-jest": "^29.0.5",
62+
"ts-node": "^10.9.1",
63+
"typescript": "^5.0.2",
5464
"whatwg-fetch": "^3.6.2"
5565
},
5666
"prettier": {
@@ -59,13 +69,13 @@
5969
"semi": false
6070
},
6171
"scripts": {
62-
"clean": "rimraf './dist'",
63-
"build": "npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json",
72+
"clean": "rimraf ./dist",
73+
"build": "npm run clean && tsc --project tsconfig.json && tsc --project tsconfig.cjs.json && node ./scripts/os.js",
6474
"lint": "eslint .",
65-
"prepare": "npm run build",
66-
"test": "npm run build && jest",
75+
"test": "tsc --noEmit --project tsconfig.json && jest",
76+
"version-package": "changeset version && pnpm lint",
77+
"release": "pnpm build && pnpm test && changeset publish",
6778
"test:coverage": "npm run build && jest --no-cache --coverage && codecov",
68-
"test:coverage:local": "npm run build && jest --no-cache --collectCoverage",
69-
"typecheck": "tsc --noEmit --project tsconfig.json"
79+
"test:coverage:local": "npm run build && jest --no-cache --collectCoverage"
7080
}
7181
}

0 commit comments

Comments
 (0)